	.file	"extr_benchmark-pump.c_maybe_connect_some.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	maybe_connect_some, @function
maybe_connect_some:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR max_connect_socket[rip]
	cmp	rsi, QWORD PTR TARGET_CONNECTIONS[rip]
	jge	.L13
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbx, connect_addr[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	rsi, QWORD PTR pipe_write_handles[rip]
	xor	edx, edx
	mov	rbp, rsi
	call	uv_pipe_init@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	ASSERT@PLT
	xor	eax, eax
	call	req_alloc@PLT
	mov	ecx, DWORD PTR connect_cb[rip]
	mov	edx, DWORD PTR TEST_PIPENAME[rip]
	mov	rsi, rbp
	mov	rdi, rax
	call	uv_pipe_connect@PLT
	mov	rsi, QWORD PTR max_connect_socket[rip]
	cmp	rsi, QWORD PTR TARGET_CONNECTIONS[rip]
	jge	.L1
.L2:
	mov	rax, QWORD PTR MAX_SIMULTANEOUS_CONNECTS[rip]
	add	rax, QWORD PTR write_sockets[rip]
	cmp	rax, rsi
	jle	.L1
	lea	rax, 1[rsi]
	sal	rsi, 2
	mov	rcx, QWORD PTR TCP[rip]
	cmp	QWORD PTR type[rip], rcx
	mov	QWORD PTR max_connect_socket[rip], rax
	mov	edi, DWORD PTR loop[rip]
	jne	.L3
	add	rsi, QWORD PTR tcp_write_handles[rip]
	mov	rbp, rsi
	call	uv_tcp_init@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	ASSERT@PLT
	xor	eax, eax
	call	req_alloc@PLT
	mov	ecx, DWORD PTR connect_cb[rip]
	mov	rsi, rbp
	mov	rdx, rbx
	mov	rdi, rax
	call	uv_tcp_connect@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	ASSERT@PLT
	mov	rsi, QWORD PTR max_connect_socket[rip]
	cmp	rsi, QWORD PTR TARGET_CONNECTIONS[rip]
	jl	.L2
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	maybe_connect_some, .-maybe_connect_some
	.comm	write_sockets,8,8
	.comm	type,8,8
	.comm	tcp_write_handles,8,8
	.comm	pipe_write_handles,8,8
	.comm	max_connect_socket,8,8
	.comm	loop,4,4
	.comm	connect_cb,4,4
	.comm	connect_addr,4,4
	.comm	TEST_PIPENAME,4,4
	.comm	TCP,8,8
	.comm	TARGET_CONNECTIONS,8,8
	.comm	MAX_SIMULTANEOUS_CONNECTS,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_benchmark-pump.c_maybe_connect_some.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	maybe_connect_some, %function
maybe_connect_some:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L10
	ldr	r5, .L10+4
	ldr	r1, [r4]
	ldr	r3, [r5]
	sub	sp, sp, #12
	cmp	r1, r3
	bge	.L1
	ldr	r7, .L10+8
	ldr	r6, .L10+12
	ldr	r10, .L10+16
	ldr	r9, .L10+20
	ldr	r8, .L10+24
	ldr	fp, .L10+28
	b	.L2
.L3:
	ldr	r3, [fp]
	mov	r2, #0
	add	r1, r3, r1
	str	r1, [sp, #4]
	str	ip, [r4]
	bl	uv_pipe_init
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	bl	req_alloc
	ldr	r3, .L10+32
	ldr	r2, .L10+36
	ldr	r1, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	uv_pipe_connect
	ldr	r1, [r4]
	ldr	r3, [r5]
	cmp	r1, r3
	bge	.L1
.L2:
	ldr	r3, [r7]
	ldr	r2, [r6]
	add	ip, r1, #1
	add	r3, r3, r2
	cmp	r3, r1
	ble	.L1
	ldr	r2, [r9]
	ldr	r3, [r8]
	ldr	r0, [r10]
	cmp	r2, r3
	lsl	r1, r1, #2
	bne	.L3
	ldr	r3, .L10+40
	str	ip, [r4]
	ldr	r3, [r3]
	add	r1, r3, r1
	str	r1, [sp, #4]
	bl	uv_tcp_init
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	bl	req_alloc
	ldr	r3, .L10+32
	ldr	r1, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, .L10+44
	bl	uv_tcp_connect
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r1, [r4]
	ldr	r3, [r5]
	cmp	r1, r3
	blt	.L2
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	max_connect_socket
	.word	TARGET_CONNECTIONS
	.word	write_sockets
	.word	MAX_SIMULTANEOUS_CONNECTS
	.word	loop
	.word	type
	.word	TCP
	.word	pipe_write_handles
	.word	connect_cb
	.word	TEST_PIPENAME
	.word	tcp_write_handles
	.word	connect_addr
	.size	maybe_connect_some, .-maybe_connect_some
	.comm	write_sockets,4,4
	.comm	type,4,4
	.comm	tcp_write_handles,4,4
	.comm	pipe_write_handles,4,4
	.comm	max_connect_socket,4,4
	.comm	loop,4,4
	.comm	connect_cb,4,4
	.comm	connect_addr,4,4
	.comm	TEST_PIPENAME,4,4
	.comm	TCP,4,4
	.comm	TARGET_CONNECTIONS,4,4
	.comm	MAX_SIMULTANEOUS_CONNECTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
