	.file	"extr_benchmark-multi-accept.c_test_tcp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"client handle"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"  thread #%u: %.0f accepts/sec (%u total, %.1f%%)\n"
	.align 8
.LC5:
	.string	"accept%u: %.0f accepts/sec (%u total)\n"
	.text
	.p2align 4
	.type	test_tcp, @function
test_tcp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rdx, listen_addr[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR TEST_PORT[rip]
	call	uv_ip4_addr@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	xor	eax, eax
	call	uv_default_loop@PLT
	mov	esi, 28
	mov	edi, r12d
	mov	rbp, rax
	call	calloc@PLT
	mov	esi, 28
	mov	edi, ebx
	mov	r13, rax
	call	calloc@PLT
	xor	edi, edi
	test	r13, r13
	setne	dil
	mov	r14, rax
	mov	QWORD PTR 8[rsp], rax
	call	ASSERT@PLT
	xor	edi, edi
	test	r14, r14
	setne	dil
	call	ASSERT@PLT
	test	r12d, r12d
	je	.L2
	lea	edx, -1[r12]
	lea	r15, 4[r13]
	lea	rax, 0[0+rdx*8]
	sub	rax, rdx
	lea	r14, 32[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L3:
	xor	esi, esi
	mov	rdi, r15
	call	uv_sem_init@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	mov	esi, DWORD PTR server_cb[rip]
	lea	rdx, -4[r15]
	lea	rdi, 4[r15]
	call	uv_thread_create@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	add	r15, 28
	call	ASSERT@PLT
	cmp	r15, r14
	jne	.L3
.L2:
	mov	edi, DWORD PTR UV_TCP[rip]
	mov	rdx, r13
	mov	esi, r12d
	call	send_listen_handles@PLT
	test	ebx, ebx
	je	.L4
	lea	edx, -1[rbx]
	mov	rcx, QWORD PTR 8[rsp]
	lea	r14, listen_addr[rip]
	lea	rax, 0[0+rdx*8]
	sub	rax, rdx
	lea	r15, 24[rcx]
	lea	rax, 52[rcx+rax*4]
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR NUM_CONNECTS[rip]
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, rbp
	div	ebx
	mov	DWORD PTR -24[r15], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR [r15], rax
	call	uv_tcp_init@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	mov	rdx, r14
	mov	rsi, r15
	lea	rdi, -4[r15]
	mov	ecx, DWORD PTR cl_connect_cb[rip]
	call	uv_tcp_connect@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	lea	rsi, -8[r15]
	mov	rdi, rbp
	call	uv_idle_init@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	add	r15, 28
	call	ASSERT@PLT
	cmp	r15, QWORD PTR [rsp]
	jne	.L5
.L4:
	xor	eax, eax
	call	uv_hrtime@PLT
	mov	esi, DWORD PTR UV_RUN_DEFAULT[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	uv_run@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	xor	eax, eax
	call	uv_hrtime@PLT
	pxor	xmm0, xmm0
	sub	eax, ebx
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR [rsp], xmm0
	test	r12d, r12d
	je	.L6
	lea	edx, -1[r12]
	lea	rbx, 12[r13]
	mov	rbp, r13
	lea	rax, 0[0+rdx*8]
	sub	rax, rdx
	lea	r14, 40[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	call	uv_async_send@PLT
	lea	rdi, -4[rbx]
	call	uv_thread_join@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	ASSERT@PLT
	lea	rdi, -8[rbx]
	add	rbx, 28
	call	uv_sem_destroy@PLT
	cmp	r14, rbx
	jne	.L7
	mov	eax, DWORD PTR NUM_CONNECTS[rip]
	pxor	xmm1, xmm1
	mov	esi, r12d
	xor	r14d, r14d
	lea	rdi, .LC5[rip]
	lea	rbx, .LC4[rip]
	cvtsi2sd	xmm1, rax
	mov	eax, 2
	movapd	xmm0, xmm1
	divsd	xmm0, QWORD PTR [rsp]
	call	printf@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR 0[rbp]
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	mov	esi, r14d
	movsd	xmm2, QWORD PTR .LC3[rip]
	mov	rdi, rbx
	add	r14d, 1
	add	rbp, 28
	cvtsi2sd	xmm1, rax
	mov	eax, DWORD PTR NUM_CONNECTS[rip]
	cvtsi2sd	xmm0, rax
	mov	eax, 3
	mulsd	xmm2, xmm1
	movapd	xmm3, xmm1
	divsd	xmm3, QWORD PTR [rsp]
	divsd	xmm2, xmm0
	movapd	xmm0, xmm3
	call	printf@PLT
	cmp	r12d, r14d
	jne	.L13
.L18:
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
	mov	rdi, r13
	call	free@PLT
	xor	eax, eax
	call	MAKE_VALGRIND_HAPPY@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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	eax, DWORD PTR NUM_CONNECTS[rip]
	pxor	xmm1, xmm1
	xor	esi, esi
	lea	rdi, .LC5[rip]
	cvtsi2sd	xmm1, rax
	mov	eax, 2
	movapd	xmm0, xmm1
	divsd	xmm0, QWORD PTR [rsp]
	call	printf@PLT
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	test_tcp, .-test_tcp
	.comm	server_cb,4,4
	.comm	listen_addr,4,4
	.comm	cl_connect_cb,4,4
	.comm	UV_TCP,4,4
	.comm	UV_RUN_DEFAULT,4,4
	.comm	TEST_PORT,4,4
	.comm	NUM_CONNECTS,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1104006501
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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_benchmark-multi-accept.c_test_tcp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"client handle\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_ui2d
	.align	2
.LC2:
	.ascii	"  thread #%u: %.0f accepts/sec (%u total, %.1f%%)\012"
	.ascii	"\000"
	.global	__aeabi_dmul
	.align	2
.LC3:
	.ascii	"accept%u: %.0f accepts/sec (%u total)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_tcp, %function
test_tcp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r1, .L25
	sub	sp, sp, #44
	ldr	r2, .L25+4
	ldr	r1, [r1]
	ldr	r0, .L25+8
	mov	r4, r3
	str	r3, [sp, #20]
	bl	uv_ip4_addr
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	bl	uv_default_loop
	mov	r1, #28
	mov	r5, r0
	mov	r0, r4
	bl	calloc
	mov	r3, r0
	mov	r1, #28
	mov	r0, r6
	mov	r8, r3
	str	r3, [sp, #32]
	bl	calloc
	mov	r7, r0
	str	r0, [sp, #36]
	subs	r0, r8, #0
	movne	r0, #1
	bl	ASSERT
	subs	r0, r7, #0
	movne	r0, #1
	bl	ASSERT
	cmp	r4, #0
	beq	.L2
	mov	r3, r8
	rsb	r7, r4, r4, lsl #3
	add	r7, r8, r7, lsl #2
	ldr	r8, .L25+12
	add	r7, r7, #4
	add	r4, r3, #4
.L3:
	mov	r1, #0
	mov	r0, r4
	bl	uv_sem_init
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	sub	r2, r4, #4
	ldr	r1, [r8]
	add	r0, r4, #4
	bl	uv_thread_create
	clz	r0, r0
	add	r4, r4, #28
	lsr	r0, r0, #5
	bl	ASSERT
	cmp	r4, r7
	bne	.L3
.L2:
	ldr	r3, .L25+16
	ldr	r2, [sp, #32]
	ldr	r0, [r3]
	ldr	r1, [sp, #20]
	bl	send_listen_handles
	cmp	r6, #0
	ldreq	r3, .L25+20
	streq	r3, [sp, #16]
	beq	.L4
	ldr	r3, [sp, #36]
	ldr	r2, .L25+20
	rsb	r7, r6, r6, lsl #3
	add	r7, r3, r7, lsl #2
	ldr	r10, .L25+24
	ldr	r9, .L25+28
	ldr	r8, .L25+4
	str	r2, [sp, #16]
	add	r7, r7, #20
	add	r4, r3, #20
.L5:
	ldr	r3, [sp, #16]
	mov	r1, r6
	ldr	r0, [r3]
	bl	__aeabi_uidiv
	mov	r3, r0
	add	fp, r4, #4
	str	r3, [r4, #-20]
	mov	r1, fp
	str	r10, [r4, #4]
	mov	r0, r5
	bl	uv_tcp_init
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r2, r8
	ldr	r3, [r9]
	mov	r1, fp
	mov	r0, r4
	bl	uv_tcp_connect
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	sub	r1, r4, #4
	mov	r0, r5
	bl	uv_idle_init
	clz	r0, r0
	add	r4, r4, #28
	lsr	r0, r0, #5
	bl	ASSERT
	cmp	r4, r7
	bne	.L5
.L4:
	bl	uv_hrtime
	ldr	r3, .L25+32
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	uv_run
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	bl	uv_hrtime
	sub	r0, r0, r4
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L25+36
	bl	__aeabi_ddiv
	ldr	r2, [sp, #20]
	str	r0, [sp, #24]
	str	r1, [sp, #28]
	cmp	r2, #0
	beq	.L6
	ldr	r3, [sp, #32]
	rsb	r4, r2, r2, lsl #3
	mov	fp, r3
	add	r4, r3, r4, lsl #2
	add	r4, r4, #12
	add	r5, r3, #12
.L7:
	mov	r0, r5
	bl	uv_async_send
	sub	r0, r5, #4
	bl	uv_thread_join
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	sub	r0, r5, #8
	add	r5, r5, #28
	bl	uv_sem_destroy
	cmp	r4, r5
	bne	.L7
	ldr	r3, [sp, #16]
	mov	r10, #0
	ldr	r0, [r3]
	bl	__aeabi_ui2d
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_ddiv
	stm	sp, {r4-r5}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+40
	ldr	r1, [sp, #20]
	bl	printf
.L9:
	ldr	r0, [fp], #28
	bl	__aeabi_ui2d
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_ddiv
	mov	r2, #0
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L25+44
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	ldr	r3, [sp, #16]
	mov	r8, r0
	ldr	r0, [r3]
	mov	r9, r1
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r3, r7
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	mov	r2, r6
	mov	r1, r10
	stm	sp, {r4-r5}
	ldr	r0, .L25+48
	bl	printf
	ldr	r3, [sp, #20]
	add	r10, r10, #1
	cmp	r3, r10
	bne	.L9
.L10:
	ldr	r0, [sp, #36]
	bl	free
	ldr	r0, [sp, #32]
	bl	free
	bl	MAKE_VALGRIND_HAPPY
	mov	r0, #0
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, [sp, #16]
	ldr	r0, [r3]
	bl	__aeabi_ui2d
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_ddiv
	stm	sp, {r4-r5}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+40
	ldr	r1, [sp, #20]
	bl	printf
	b	.L10
.L26:
	.align	2
.L25:
	.word	TEST_PORT
	.word	listen_addr
	.word	.LC0
	.word	server_cb
	.word	UV_TCP
	.word	NUM_CONNECTS
	.word	.LC1
	.word	cl_connect_cb
	.word	UV_RUN_DEFAULT
	.word	1104006501
	.word	.LC3
	.word	1079574528
	.word	.LC2
	.size	test_tcp, .-test_tcp
	.comm	server_cb,4,4
	.comm	listen_addr,4,4
	.comm	cl_connect_cb,4,4
	.comm	UV_TCP,4,4
	.comm	UV_RUN_DEFAULT,4,4
	.comm	TEST_PORT,4,4
	.comm	NUM_CONNECTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
