	.file	"extr_t_tcp.c_paccept_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket"
.LC1:
	.string	"bind"
.LC2:
	.string	"getsockname"
.LC3:
	.string	"listen"
.LC4:
	.string	"expected connect to fail"
.LC5:
	.string	"connect failed"
.LC6:
	.string	"paccept"
.LC7:
	.string	"fnctl"
.LC8:
	.string	"fl 0x%x != 0x%x\n"
.LC9:
	.string	"fnctl setfl"
.LC10:
	.string	"fl non blocking after reset"
.LC11:
	.string	"read"
	.text
	.p2align 4
	.type	paccept_block, @function
paccept_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	edi, DWORD PTR AF_INET[rip]
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	or	esi, DWORD PTR SOCK_NONBLOCK[rip]
	call	socket@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L32
.L2:
	lea	r12, 16[rsp]
	xor	esi, esi
	mov	edx, 16
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	xor	edi, edi
	mov	DWORD PTR 28[rsp], eax
	call	htons@PLT
	mov	edi, DWORD PTR INADDR_LOOPBACK[rip]
	mov	DWORD PTR 24[rsp], eax
	call	htonl@PLT
	mov	edx, 16
	mov	rsi, r12
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], eax
	call	bind@PLT
	cmp	eax, -1
	je	.L33
.L3:
	lea	r15, 32[rsp]
	lea	rdx, 12[rsp]
	mov	edi, ebp
	mov	DWORD PTR 12[rsp], 16
	mov	rsi, r15
	call	getsockname@PLT
	cmp	eax, -1
	je	.L34
.L4:
	mov	esi, DWORD PTR SOMAXCONN[rip]
	mov	edi, ebp
	call	listen@PLT
	cmp	eax, -1
	je	.L35
.L5:
	mov	edi, DWORD PTR AF_INET[rip]
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	xor	edx, edx
	or	esi, DWORD PTR SOCK_NONBLOCK[rip]
	call	socket@PLT
	mov	r13d, eax
	cmp	eax, -1
	je	.L36
.L6:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	edi, r13d
	call	connect@PLT
	cmp	eax, -1
	jne	.L7
	mov	rax, QWORD PTR EINPROGRESS[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L8
.L7:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	FAIL@PLT
.L8:
	test	ebx, ebx
	mov	r8d, 0
	cmove	r8d, DWORD PTR SOCK_NONBLOCK[rip]
	mov	edi, ebp
	xor	edx, edx
	xor	esi, esi
	xor	ecx, ecx
	call	paccept@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	edi, r13d
	mov	r12d, eax
	call	connect@PLT
	cmp	eax, -1
	je	.L37
.L10:
	cmp	r12d, -1
	je	.L38
.L11:
	test	r14d, r14d
	jne	.L39
	mov	eax, DWORD PTR ding[rip]
	lea	rbp, 48[rsp]
	mov	QWORD PTR 56[rsp], 0
	mov	rdi, rbp
	mov	DWORD PTR 64[rsp], eax
	call	sigemptyset@PLT
	mov	edi, DWORD PTR SIGALRM[rip]
	xor	edx, edx
	mov	rsi, rbp
	call	sigaction@PLT
	mov	edi, 1
	call	alarm@PLT
	lea	rsi, 78[rsp]
	mov	edx, 10
	mov	edi, r12d
	call	read@PLT
	test	ebx, ebx
	jne	.L23
	cmp	eax, -1
	jne	.L22
	mov	rax, QWORD PTR EWOULDBLOCK[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L1
.L22:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	FAIL@PLT
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L39:
	.cfi_restore_state
	mov	esi, DWORD PTR F_GETFL[rip]
	xor	edx, edx
	mov	edi, r12d
	call	fcntl@PLT
	mov	ebx, eax
	cmp	eax, -1
	je	.L41
.L14:
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	mov	r8d, DWORD PTR O_RDWR[rip]
	or	r8d, edx
	cmp	r8d, ebx
	je	.L15
	mov	edx, r8d
	mov	esi, ebx
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	FAIL@PLT
	mov	edx, DWORD PTR O_NONBLOCK[rip]
.L15:
	not	edx
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	edi, r12d
	and	edx, ebx
	call	fcntl@PLT
	cmp	eax, -1
	je	.L42
.L16:
	mov	esi, DWORD PTR F_GETFL[rip]
	xor	edx, edx
	mov	edi, r12d
	call	fcntl@PLT
	test	DWORD PTR O_NONBLOCK[rip], eax
	jne	.L43
.L17:
	mov	eax, DWORD PTR ding[rip]
	lea	rbp, 48[rsp]
	mov	QWORD PTR 56[rsp], 0
	mov	rdi, rbp
	mov	DWORD PTR 64[rsp], eax
	call	sigemptyset@PLT
	mov	edi, DWORD PTR SIGALRM[rip]
	xor	edx, edx
	mov	rsi, rbp
	call	sigaction@PLT
	mov	edi, 1
	call	alarm@PLT
	lea	rsi, 78[rsp]
	mov	edx, 10
	mov	edi, r12d
	call	read@PLT
.L23:
	cmp	eax, -1
	jne	.L1
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L1
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L38:
	test	ebx, ebx
	mov	r8d, 0
	cmove	r8d, DWORD PTR SOCK_NONBLOCK[rip]
	mov	edi, ebp
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	call	paccept@PLT
	mov	r12d, eax
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR EISCONN[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L10
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L41:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	FAIL@PLT
	jmp	.L14
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	paccept_block, .-paccept_block
	.comm	errno,8,8
	.comm	ding,4,4
	.comm	SOMAXCONN,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_NONBLOCK,4,4
	.comm	SIGALRM,4,4
	.comm	O_RDWR,4,4
	.comm	O_NONBLOCK,4,4
	.comm	INADDR_LOOPBACK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	EWOULDBLOCK,8,8
	.comm	EISCONN,8,8
	.comm	EINTR,8,8
	.comm	EINPROGRESS,8,8
	.comm	AF_INET,4,4
	.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_t_tcp.c_paccept_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.align	2
.LC2:
	.ascii	"getsockname\000"
	.align	2
.LC3:
	.ascii	"listen\000"
	.align	2
.LC4:
	.ascii	"expected connect to fail\000"
	.align	2
.LC5:
	.ascii	"connect failed\000"
	.align	2
.LC6:
	.ascii	"paccept\000"
	.align	2
.LC7:
	.ascii	"fnctl\000"
	.align	2
.LC8:
	.ascii	"fl 0x%x != 0x%x\012\000"
	.align	2
.LC9:
	.ascii	"fnctl setfl\000"
	.align	2
.LC10:
	.ascii	"fl non blocking after reset\000"
	.align	2
.LC11:
	.ascii	"read\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	paccept_block, %function
paccept_block:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, .L44
	ldr	r9, .L44+4
	mov	r7, r1
	ldr	r3, [r9]
	ldr	r1, [r6]
	ldr	r5, .L44+8
	orr	r1, r1, r3
	ldr	r3, .L44+12
	sub	sp, sp, #76
	mov	r8, r0
	mov	r2, #0
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	socket
	cmn	r0, #1
	mov	r4, r0
	beq	.L32
.L2:
	mov	r0, #0
	ldr	r3, [r5]
	str	r0, [sp, #24]
	str	r3, [sp, #36]
	str	r0, [sp, #28]
	str	r0, [sp, #32]
	bl	htons
	ldr	r3, .L44+16
	str	r0, [sp, #32]
	ldr	r0, [r3]
	bl	htonl
	mov	r3, r0
	mov	r2, #16
	mov	r0, r4
	add	r1, sp, #24
	str	r3, [sp, #28]
	bl	bind
	cmn	r0, #1
	beq	.L33
.L3:
	mov	r3, #16
	mov	r0, r4
	add	r1, sp, #40
	add	r2, sp, #8
	str	r3, [sp, #8]
	bl	getsockname
	cmn	r0, #1
	beq	.L34
.L4:
	ldr	r3, .L44+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	listen
	cmn	r0, #1
	beq	.L35
.L5:
	ldr	r1, [r6]
	ldr	r3, [r9]
	mov	r2, #0
	ldr	r0, [r5]
	orr	r1, r1, r3
	bl	socket
	cmn	r0, #1
	mov	r6, r0
	beq	.L36
.L6:
	mov	r0, r6
	ldr	r2, [sp, #8]
	add	r1, sp, #40
	bl	connect
	cmn	r0, #1
	bne	.L7
	ldr	r2, .L44+24
	ldr	r3, .L44+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
.L7:
	ldr	r0, .L44+32
	bl	FAIL
.L8:
	cmp	r8, #0
	movne	r2, #0
	mov	r3, #0
	ldreq	r2, [r9]
	mov	r1, r3
	str	r2, [sp]
	mov	r0, r4
	mov	r2, r3
	bl	paccept
	ldr	r2, [sp, #8]
	mov	r5, r0
	add	r1, sp, #40
	mov	r0, r6
	bl	connect
	cmn	r0, #1
	beq	.L37
.L10:
	cmn	r5, #1
	beq	.L38
.L11:
	cmp	r7, #0
	bne	.L39
	ldr	r3, .L44+36
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r7, [sp, #16]
	str	r3, [sp, #20]
	bl	sigemptyset
	ldr	r3, .L44+40
	mov	r2, r7
	ldr	r0, [r3]
	add	r1, sp, #12
	bl	sigaction
	mov	r0, #1
	bl	alarm
	mov	r0, r5
	mov	r2, #10
	add	r1, sp, #56
	bl	read
	cmp	r8, #0
	bne	.L23
	cmn	r0, #1
	bne	.L22
	ldr	r2, .L44+24
	ldr	r3, .L44+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
.L22:
	ldr	r0, .L44+48
	bl	FAIL
.L1:
	ldr	r3, .L44+12
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L39:
	ldr	r7, .L44+52
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r7]
	bl	fcntl
	cmn	r0, #1
	mov	r4, r0
	beq	.L41
.L14:
	ldr	r6, .L44+56
	ldr	r2, .L44+60
	ldr	r3, [r6]
	ldr	r2, [r2]
	orr	r2, r3, r2
	cmp	r2, r4
	beq	.L15
	mov	r1, r4
	ldr	r0, .L44+64
	bl	FAIL
	ldr	r3, [r6]
.L15:
	ldr	r1, .L44+68
	mov	r0, r5
	ldr	r1, [r1]
	bic	r2, r4, r3
	bl	fcntl
	cmn	r0, #1
	beq	.L42
.L16:
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r7]
	bl	fcntl
	ldr	r3, [r6]
	tst	r0, r3
	bne	.L43
.L17:
	mov	r4, #0
	ldr	r3, .L44+36
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r4, [sp, #16]
	str	r3, [sp, #20]
	bl	sigemptyset
	ldr	r3, .L44+40
	mov	r2, r4
	add	r1, sp, #12
	ldr	r0, [r3]
	bl	sigaction
	mov	r0, #1
	bl	alarm
	mov	r0, r5
	mov	r2, #10
	add	r1, sp, #56
	bl	read
.L23:
	cmn	r0, #1
	bne	.L1
	ldr	r2, .L44+24
	ldr	r3, .L44+72
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	b	.L22
.L38:
	cmp	r8, #0
	movne	r2, #0
	mov	r3, #0
	ldreq	r2, [r9]
	mov	r0, r4
	str	r2, [sp]
	mov	r1, r3
	mov	r2, r3
	bl	paccept
	cmn	r0, #1
	mov	r5, r0
	bne	.L11
	ldr	r0, .L44+76
	bl	FAIL
	b	.L11
.L37:
	ldr	r2, .L44+24
	ldr	r3, .L44+80
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
	ldr	r0, .L44+84
	bl	FAIL
	b	.L10
.L36:
	ldr	r0, .L44+88
	bl	FAIL
	b	.L6
.L35:
	ldr	r0, .L44+92
	bl	FAIL
	b	.L5
.L34:
	ldr	r0, .L44+96
	bl	FAIL
	b	.L4
.L33:
	ldr	r0, .L44+100
	bl	FAIL
	b	.L3
.L32:
	ldr	r0, .L44+88
	bl	FAIL
	b	.L2
.L43:
	ldr	r0, .L44+104
	bl	FAIL
	b	.L17
.L42:
	ldr	r0, .L44+108
	bl	FAIL
	b	.L16
.L41:
	ldr	r0, .L44+112
	bl	FAIL
	b	.L14
.L40:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	SOCK_STREAM
	.word	SOCK_NONBLOCK
	.word	AF_INET
	.word	.LC12
	.word	INADDR_LOOPBACK
	.word	SOMAXCONN
	.word	errno
	.word	EINPROGRESS
	.word	.LC4
	.word	ding
	.word	SIGALRM
	.word	EWOULDBLOCK
	.word	.LC11
	.word	F_GETFL
	.word	O_NONBLOCK
	.word	O_RDWR
	.word	.LC8
	.word	F_SETFL
	.word	EINTR
	.word	.LC6
	.word	EISCONN
	.word	.LC5
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	.LC10
	.word	.LC9
	.word	.LC7
	.size	paccept_block, .-paccept_block
	.comm	errno,4,4
	.comm	ding,4,4
	.comm	SOMAXCONN,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_NONBLOCK,4,4
	.comm	SIGALRM,4,4
	.comm	O_RDWR,4,4
	.comm	O_NONBLOCK,4,4
	.comm	INADDR_LOOPBACK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	EWOULDBLOCK,4,4
	.comm	EISCONN,4,4
	.comm	EINTR,4,4
	.comm	EINPROGRESS,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
