	.file	"220454450.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 2
	.type	port, @object
	.size	port, 2
port:
	.value	12345
	.local	_read_one_byte_at_at_time
	.comm	_read_one_byte_at_at_time,1,1
	.align 16
	.type	alpha, @object
	.size	alpha, 27
alpha:
	.string	"abcdefghijklmnopqrstuvwxyz"
	.text
	.type	_sleep_msec, @function
_sleep_msec:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	eax, eax
	imul	rax, rax, 274877907
	shr	rax, 32
	shr	eax, 6
	mov	eax, eax
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	shr	eax, 6
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	mov	eax, eax
	imul	rax, rax, 1000000
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_sleep_msec, .-_sleep_msec
	.type	_recvn, @function
_recvn:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -56[rbp], ecx
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L4
.L9:
	mov	ecx, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	cmp	QWORD PTR -8[rbp], 0
	jns	.L7
	mov	QWORD PTR -40[rbp], -1
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L4:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	jmp	.L6
.L11:
	nop
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -40[rbp], rax
.L8:
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_recvn, .-_recvn
	.section	.rodata
.LC0:
	.string	"the_stack_data/220454450.c"
	.align 8
.LC1:
	.string	"(lsock = socket(args->domain, SOCK_STREAM, 0)) >= 0"
.LC2:
	.string	"r == 0"
	.align 8
.LC3:
	.string	"bind(lsock, (struct sockaddr*)&addr, sizeof(addr)) == 0"
.LC4:
	.string	"fchmod(lsock, 0000) == 0"
.LC5:
	.string	"fstat(lsock, &buf) == 0"
	.align 8
.LC6:
	.string	"(buf.st_mode & 0x000001ff) == 0000"
.LC7:
	.string	"fchmod(lsock, 0777) == 0"
	.align 8
.LC8:
	.string	"(buf.st_mode & 0x000001ff) == 0777"
.LC9:
	.string	"0"
.LC10:
	.string	"listen(lsock, 10) == 0"
	.align 8
.LC11:
	.string	"server: waiting for connection..."
.LC12:
	.string	"sock > 0"
.LC13:
	.string	"addrlen=%u/%zu\n"
	.align 8
.LC14:
	.string	"server: accepted connection: %d\n"
.LC15:
	.string	"server: send"
.LC16:
	.string	"(size_t)n == strlen(alpha)"
.LC17:
	.string	"server: finished"
	.text
	.type	_srv_thread_func, @function
_srv_thread_func:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	QWORD PTR -328[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	jns	.L13
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L13:
	mov	DWORD PTR -308[rbp], 1
	mov	DWORD PTR -296[rbp], 4
	mov	ecx, DWORD PTR -296[rbp]
	lea	rdx, -308[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 99
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L15
	lea	rax, -160[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -160[rbp], 2
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, 12345
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -158[rbp], ax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 109
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L15:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L18
	lea	rax, -272[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -272[rbp], 1
	mov	BYTE PTR -270[rbp], 0
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -272[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncat@PLT
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, 0
	mov	edi, eax
	call	fchmod@PLT
	test	eax, eax
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 121
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L19:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 122
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L20:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 511
	test	eax, eax
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 123
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L21:
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, 511
	mov	edi, eax
	call	fchmod@PLT
	test	eax, eax
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 125
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L22:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 126
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L23:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 511
	cmp	eax, 511
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 127
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L24:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 129
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L18:
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 133
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 136
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L26:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L27
	mov	DWORD PTR -308[rbp], 16
	lea	rdx, -308[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	accept4@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], 0
	jg	.L28
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 149
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L28:
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 16
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L27:
	mov	DWORD PTR -308[rbp], 110
	lea	rdx, -308[rbp]
	lea	rsi, -160[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	edi, eax
	mov	eax, 0
	call	accept4@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], 0
	jg	.L29
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 158
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L29:
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	ecx, 0
	mov	edx, 26
	lea	rsi, alpha[rip]
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 26
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 165
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L31:
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_srv_thread_func, .-_srv_thread_func
	.section	.rodata
	.align 8
.LC18:
	.string	"(sock = socket(args->domain, SOCK_STREAM | SOCK_CLOEXEC, 0)) >= 0"
.LC19:
	.string	"tmp_sock >= 0"
.LC20:
	.string	"close(sock) == 0"
.LC21:
	.string	"client: connect"
	.align 8
.LC22:
	.string	"connect(sock, (struct sockaddr*)&addr, sizeof(addr)) >= 0"
.LC23:
	.string	"client: recv"
.LC24:
	.string	"r == 1"
.LC25:
	.string	"n > 0"
.LC26:
	.string	"buf{%s} n=%zd\n"
.LC27:
	.string	"n == strlen(alpha)"
.LC28:
	.string	"memcmp(buf, alpha, n) == 0"
	.text
	.type	_cli_thread_func, @function
_cli_thread_func:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	DWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	esi, 524289
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], 0
	jns	.L35
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 182
	lea	rsi, .LC0[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L35:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L36
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 187
	lea	rsi, .LC0[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L36:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L37
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 188
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L37:
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -168[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L38
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	WORD PTR -128[rbp], 2
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, 12345
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -126[rbp], ax
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -168[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L55
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 199
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L38:
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L41
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -128[rbp], 1
	mov	BYTE PTR -126[rbp], 0
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -128[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncat@PLT
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -168[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L55
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 208
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L41:
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 212
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L55:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR _read_one_byte_at_at_time[rip]
	test	al, al
	je	.L43
	mov	QWORD PTR -160[rbp], 0
	mov	edx, 1024
	mov	esi, 0
	lea	rdi, buf.6[rip]
	call	memset@PLT
	mov	QWORD PTR -152[rbp], 0
	jmp	.L44
.L48:
	lea	rdx, buf.6[rip]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -168[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -136[rbp], 0
	je	.L59
	cmp	QWORD PTR -136[rbp], 1
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 234
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L47:
	add	QWORD PTR -160[rbp], 1
	add	QWORD PTR -152[rbp], 1
.L44:
	mov	rax, QWORD PTR -152[rbp]
	cmp	rax, 25
	jbe	.L48
	jmp	.L49
.L43:
	mov	eax, DWORD PTR -168[rbp]
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buf.6[rip]
	mov	edi, eax
	call	_recvn
	mov	QWORD PTR -160[rbp], rax
	jmp	.L49
.L59:
	nop
.L49:
	cmp	QWORD PTR -160[rbp], 0
	je	.L60
	cmp	QWORD PTR -160[rbp], 0
	jg	.L52
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 246
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L52:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, rax
	lea	rsi, buf.6[rip]
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -160[rbp], 26
	je	.L53
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 249
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L53:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, rax
	lea	rsi, alpha[rip]
	lea	rdi, buf.6[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L55
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 250
	lea	rsi, .LC0[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L60:
	nop
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_cli_thread_func, .-_cli_thread_func
	.section	.rodata
	.align 8
.LC29:
	.string	"pthread_create(&srv_thread, NULL, _srv_thread_func, args) == 0"
	.align 8
.LC30:
	.string	"pthread_create(&cli_thread, NULL, _cli_thread_func, args) == 0"
	.align 8
.LC31:
	.string	"=== passed test (test_sockets: domain=%d)\n"
	.text
	.globl	test_sockets
	.type	test_sockets, @function
test_sockets:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, _srv_thread_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L62
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 263
	lea	rsi, .LC0[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L62:
	mov	edi, 100
	call	_sleep_msec
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	lea	rdx, _cli_thread_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L63
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 265
	lea	rsi, .LC0[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L63:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	test_sockets, .-test_sockets
	.section	.rodata
	.align 8
.LC32:
	.string	"socketpair(AF_LOCAL, SOCK_STREAM, 0, sv) == 0"
	.align 8
.LC33:
	.string	"write(sv[0], alpha, sizeof(alpha)) == sizeof(alpha)"
	.align 8
.LC34:
	.string	"read(sv[1], buf, sizeof(buf)) == sizeof(buf)"
	.align 8
.LC35:
	.string	"memcmp(buf, alpha, sizeof(buf)) == 0"
.LC36:
	.string	"close(sv[0]) == 0"
.LC37:
	.string	"close(sv[1]) == 0"
	.text
	.type	test_socketpair, @function
test_socketpair:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -56[rbp]
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	test	eax, eax
	je	.L66
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 287
	lea	rsi, .LC0[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L66:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 27
	lea	rsi, alpha[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 27
	je	.L67
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 288
	lea	rsi, .LC0[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L67:
	mov	eax, DWORD PTR -52[rbp]
	lea	rcx, -48[rbp]
	mov	edx, 27
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 27
	je	.L68
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 289
	lea	rsi, .LC0[rip]
	lea	rdi, .LC34[rip]
	call	__assert_fail@PLT
.L68:
	lea	rax, -48[rbp]
	mov	edx, 27
	lea	rsi, alpha[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L69
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 290
	lea	rsi, .LC0[rip]
	lea	rdi, .LC35[rip]
	call	__assert_fail@PLT
.L69:
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L70
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 292
	lea	rsi, .LC0[rip]
	lea	rdi, .LC36[rip]
	call	__assert_fail@PLT
.L70:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L73
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 293
	lea	rsi, .LC0[rip]
	lea	rdi, .LC37[rip]
	call	__assert_fail@PLT
.L73:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	test_socketpair, .-test_socketpair
	.globl	get_events
	.type	get_events, @function
get_events:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	WORD PTR -12[rbp], 5
	lea	rax, -16[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	jne	.L75
	movzx	eax, WORD PTR -10[rbp]
	cwde
	jmp	.L77
.L75:
	mov	eax, DWORD PTR -20[rbp]
.L77:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_events, .-get_events
	.globl	can_read
	.type	can_read, @function
can_read:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	WORD PTR -12[rbp], 1
	lea	rax, -16[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	jne	.L80
	movzx	eax, WORD PTR -10[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L80
	mov	eax, 1
	jmp	.L81
.L80:
	mov	eax, 0
.L81:
	and	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	can_read, .-can_read
	.globl	can_write
	.type	can_write, @function
can_write:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	WORD PTR -12[rbp], 4
	lea	rax, -16[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	jne	.L85
	movzx	eax, WORD PTR -10[rbp]
	cwde
	and	eax, 4
	test	eax, eax
	je	.L85
	mov	eax, 1
	jmp	.L86
.L85:
	mov	eax, 0
.L86:
	and	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L88
	call	__stack_chk_fail@PLT
.L88:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	can_write, .-can_write
	.section	.rodata
.LC38:
	.string	"n == -1 && errno == EAGAIN"
	.text
	.type	_fill_sock_buf, @function
_fill_sock_buf:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	nop
.L90:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jg	.L90
	cmp	QWORD PTR -1048[rbp], -1
	jne	.L91
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L94
.L91:
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 344
	lea	rsi, .LC0[rip]
	lea	rdi, .LC38[rip]
	call	__assert_fail@PLT
.L94:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	_fill_sock_buf, .-_fill_sock_buf
	.type	_empty_sock_buf, @function
_empty_sock_buf:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	nop
.L96:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jg	.L96
	cmp	QWORD PTR -1048[rbp], -1
	jne	.L97
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L100
.L97:
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 355
	lea	rsi, .LC0[rip]
	lea	rdi, .LC38[rip]
	call	__assert_fail@PLT
.L100:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L99
	call	__stack_chk_fail@PLT
.L99:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	_empty_sock_buf, .-_empty_sock_buf
	.section	.rodata
	.align 8
.LC39:
	.string	"getsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, (void*)&size, &len) == 0"
.LC40:
	.string	"size > 0"
	.align 8
.LC41:
	.string	"setsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, (void*)&size, len) == 0"
.LC42:
	.string	"size > 1"
	.align 8
.LC43:
	.string	"ioctl(sv[0], FIONBIO, &val) == 0"
	.align 8
.LC44:
	.string	"ioctl(sv[1], FIONBIO, &val) == 0"
.LC45:
	.string	"can_write(sv[0])"
.LC46:
	.string	"!can_read(sv[0])"
.LC47:
	.string	"can_write(sv[1])"
.LC48:
	.string	"!can_read(sv[1])"
.LC49:
	.string	"!can_write(sv[0])"
.LC50:
	.string	"can_read(sv[1])"
.LC51:
	.string	"!can_write(sv[1])"
.LC52:
	.string	"can_read(sv[0])"
.LC53:
	.string	"=== passed test (%s)\n"
	.text
	.type	test_socketpair_nonblock, @function
test_socketpair_nonblock:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	test	eax, eax
	je	.L102
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 364
	lea	rsi, .LC0[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L102:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 4
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -24[rbp]
	lea	rdx, -28[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 7
	mov	esi, 1
	mov	edi, eax
	call	getsockopt@PLT
	test	eax, eax
	je	.L103
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 368
	lea	rsi, .LC0[rip]
	lea	rdi, .LC39[rip]
	call	__assert_fail@PLT
.L103:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jg	.L104
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 369
	lea	rsi, .LC0[rip]
	lea	rdi, .LC40[rip]
	call	__assert_fail@PLT
.L104:
	mov	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -24[rbp], 4
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, -28[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, 7
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L105
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 373
	lea	rsi, .LC0[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L105:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jg	.L106
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 374
	lea	rsi, .LC0[rip]
	lea	rdi, .LC40[rip]
	call	__assert_fail@PLT
.L106:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 4
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -24[rbp]
	lea	rdx, -28[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 7
	mov	esi, 1
	mov	edi, eax
	call	getsockopt@PLT
	test	eax, eax
	je	.L107
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 378
	lea	rsi, .LC0[rip]
	lea	rdi, .LC39[rip]
	call	__assert_fail@PLT
.L107:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	jg	.L108
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 379
	lea	rsi, .LC0[rip]
	lea	rdi, .LC42[rip]
	call	__assert_fail@PLT
.L108:
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, -20[rbp]
	mov	esi, 21537
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L109
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 384
	lea	rsi, .LC0[rip]
	lea	rdi, .LC43[rip]
	call	__assert_fail@PLT
.L109:
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, -20[rbp]
	mov	esi, 21537
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L110
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 385
	lea	rsi, .LC0[rip]
	lea	rdi, .LC44[rip]
	call	__assert_fail@PLT
.L110:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L111
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 389
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L111:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L112
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 390
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L112:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L113
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 391
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L113:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L114
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 392
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L114:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	_fill_sock_buf
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	xor	eax, 1
	test	al, al
	jne	.L115
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 397
	lea	rsi, .LC0[rip]
	lea	rdi, .LC49[rip]
	call	__assert_fail@PLT
.L115:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L116
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 398
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L116:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L117
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 399
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L117:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	test	al, al
	jne	.L118
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 400
	lea	rsi, .LC0[rip]
	lea	rdi, .LC50[rip]
	call	__assert_fail@PLT
.L118:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	_empty_sock_buf
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L119
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 405
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L119:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L120
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 406
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L120:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L121
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 407
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L121:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L122
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 408
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L122:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L123
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 411
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L123:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L124
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 412
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L124:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L125
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 413
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L125:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L126
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 414
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L126:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	_fill_sock_buf
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	xor	eax, 1
	test	al, al
	jne	.L127
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 419
	lea	rsi, .LC0[rip]
	lea	rdi, .LC51[rip]
	call	__assert_fail@PLT
.L127:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L128
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 420
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L128:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L129
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 421
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L129:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	test	al, al
	jne	.L130
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 422
	lea	rsi, .LC0[rip]
	lea	rdi, .LC52[rip]
	call	__assert_fail@PLT
.L130:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	_empty_sock_buf
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L131
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 427
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L131:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L132
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 428
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L132:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_write
	test	al, al
	jne	.L133
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 429
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L133:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	can_read
	xor	eax, 1
	test	al, al
	jne	.L134
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 430
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L134:
	lea	rsi, __FUNCTION__.0[rip]
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L135
	call	__stack_chk_fail@PLT
.L135:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	test_socketpair_nonblock, .-test_socketpair_nonblock
	.section	.rodata
.LC54:
	.string	"/tmp/uds"
	.text
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 2
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	test_sockets
	mov	DWORD PTR -32[rbp], 1
	lea	rax, .LC54[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	BYTE PTR _read_one_byte_at_at_time[rip], 0
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	test_sockets
	lea	rdi, .LC54[rip]
	call	unlink@PLT
	mov	BYTE PTR _read_one_byte_at_at_time[rip], 1
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	test_sockets
	call	test_socketpair
	call	test_socketpair_nonblock
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L138
	call	__stack_chk_fail@PLT
.L138:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.8, @object
	.size	__PRETTY_FUNCTION__.8, 17
__PRETTY_FUNCTION__.8:
	.string	"_srv_thread_func"
	.align 16
	.type	__PRETTY_FUNCTION__.7, @object
	.size	__PRETTY_FUNCTION__.7, 17
__PRETTY_FUNCTION__.7:
	.string	"_cli_thread_func"
	.local	buf.6
	.comm	buf.6,1024,32
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 13
__PRETTY_FUNCTION__.5:
	.string	"test_sockets"
	.align 16
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 16
__PRETTY_FUNCTION__.4:
	.string	"test_socketpair"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 15
__PRETTY_FUNCTION__.3:
	.string	"_fill_sock_buf"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 16
__PRETTY_FUNCTION__.2:
	.string	"_empty_sock_buf"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 25
__PRETTY_FUNCTION__.1:
	.string	"test_socketpair_nonblock"
	.align 16
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 25
__FUNCTION__.0:
	.string	"test_socketpair_nonblock"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"220454450.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/uds\000"
	.text
	.section	.rodata
	.align	1
	.type	port, %object
	.size	port, 2
port:
	.short	12345
	.local	_read_one_byte_at_at_time
	.comm	_read_one_byte_at_at_time,1,1
	.align	2
	.type	alpha, %object
	.size	alpha, 27
alpha:
	.ascii	"abcdefghijklmnopqrstuvwxyz\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sleep_msec, %function
_sleep_msec:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r2, .L3+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r3, .L3+4
	umull	r2, r3, r1, r3
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r1, r2
	lsl	r1, r1, #5
	sub	r1, r1, r2
	lsl	r3, r1, #6
	sub	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #6
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC2
	.word	274877907
	.size	_sleep_msec, .-_sleep_msec
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_recvn, %function
_recvn:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L11:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	recv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L9
	mvn	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	b	.L8
.L13:
	nop
.L8:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_recvn, .-_recvn
	.section	.rodata
	.align	2
.LC3:
	.ascii	"the_stack_data/220454450.c\000"
	.align	2
.LC4:
	.ascii	"(lsock = socket(args->domain, SOCK_STREAM, 0)) >= 0"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"r == 0\000"
	.align	2
.LC6:
	.ascii	"bind(lsock, (struct sockaddr*)&addr, sizeof(addr)) "
	.ascii	"== 0\000"
	.align	2
.LC7:
	.ascii	"fchmod(lsock, 0000) == 0\000"
	.align	2
.LC8:
	.ascii	"fstat(lsock, &buf) == 0\000"
	.align	2
.LC9:
	.ascii	"(buf.st_mode & 0x000001ff) == 0000\000"
	.align	2
.LC10:
	.ascii	"fchmod(lsock, 0777) == 0\000"
	.align	2
.LC11:
	.ascii	"(buf.st_mode & 0x000001ff) == 0777\000"
	.align	2
.LC12:
	.ascii	"0\000"
	.align	2
.LC13:
	.ascii	"listen(lsock, 10) == 0\000"
	.align	2
.LC14:
	.ascii	"server: waiting for connection...\000"
	.align	2
.LC15:
	.ascii	"sock > 0\000"
	.align	2
.LC16:
	.ascii	"addrlen=%u/%zu\012\000"
	.align	2
.LC17:
	.ascii	"server: accepted connection: %d\012\000"
	.align	2
.LC18:
	.ascii	"server: send\000"
	.align	2
.LC19:
	.ascii	"(size_t)n == strlen(alpha)\000"
	.align	2
.LC20:
	.ascii	"server: finished\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_srv_thread_func, %function
_srv_thread_func:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #248
	str	r0, [fp, #-240]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bge	.L15
	ldr	r3, .L36+4
	mov	r2, #92
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	__assert_fail
.L15:
	mov	r3, #1
	str	r3, [fp, #-212]
	mov	r3, #4
	str	r3, [fp, #-224]
	sub	r2, fp, #212
	ldr	r3, [fp, #-224]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-228]
	bl	setsockopt
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L36+4
	mov	r2, #99
	ldr	r1, .L36+8
	ldr	r0, .L36+16
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-232]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L17
	sub	r3, fp, #120
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-120]	@ movhi
	ldr	r0, .L36+20
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, .L36+24
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-118]	@ movhi
	sub	r3, fp, #120
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L36+4
	mov	r2, #109
	ldr	r1, .L36+8
	ldr	r0, .L36+28
	bl	__assert_fail
.L17:
	ldr	r3, [fp, #-232]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L20
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-118]
	ldr	r3, [fp, #-232]
	ldr	r1, [r3, #4]
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncat
	mov	r1, #0
	ldr	r0, [fp, #-228]
	bl	fchmod
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L36+4
	mov	r2, #121
	ldr	r1, .L36+8
	ldr	r0, .L36+32
	bl	__assert_fail
.L21:
	sub	r3, fp, #212
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L36+4
	mov	r2, #122
	ldr	r1, .L36+8
	ldr	r0, .L36+36
	bl	__assert_fail
.L22:
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L36+4
	mov	r2, #123
	ldr	r1, .L36+8
	ldr	r0, .L36+40
	bl	__assert_fail
.L23:
	ldr	r1, .L36+44
	ldr	r0, [fp, #-228]
	bl	fchmod
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L36+4
	mov	r2, #125
	ldr	r1, .L36+8
	ldr	r0, .L36+48
	bl	__assert_fail
.L24:
	sub	r3, fp, #212
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L36+4
	mov	r2, #126
	ldr	r1, .L36+8
	ldr	r0, .L36+36
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	ldr	r2, .L36+44
	cmp	r3, r2
	beq	.L26
	ldr	r3, .L36+4
	mov	r2, #127
	ldr	r1, .L36+8
	ldr	r0, .L36+52
	bl	__assert_fail
.L26:
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L36+4
	mov	r2, #129
	ldr	r1, .L36+8
	ldr	r0, .L36+28
	bl	__assert_fail
.L20:
	ldr	r3, .L36+4
	mov	r2, #133
	ldr	r1, .L36+8
	ldr	r0, .L36+56
	bl	__assert_fail
.L19:
	mov	r1, #10
	ldr	r0, [fp, #-228]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L36+4
	mov	r2, #136
	ldr	r1, .L36+8
	ldr	r0, .L36+60
	bl	__assert_fail
.L28:
	ldr	r0, .L36+64
	bl	puts
	ldr	r3, [fp, #-232]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L29
	mov	r3, #16
	str	r3, [fp, #-212]
	sub	r2, fp, #212
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-228]
	bl	accept4
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	bgt	.L30
	ldr	r3, .L36+4
	mov	r2, #149
	ldr	r1, .L36+8
	ldr	r0, .L36+68
	bl	__assert_fail
.L30:
	ldr	r3, [fp, #-212]
	mov	r2, #16
	mov	r1, r3
	ldr	r0, .L36+72
	bl	printf
	b	.L31
.L29:
	mov	r3, #110
	str	r3, [fp, #-212]
	sub	r2, fp, #212
	sub	r1, fp, #120
	mov	r3, #0
	ldr	r0, [fp, #-228]
	bl	accept4
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	bgt	.L31
	ldr	r3, .L36+4
	mov	r2, #158
	ldr	r1, .L36+8
	ldr	r0, .L36+68
	bl	__assert_fail
.L31:
	ldr	r1, [fp, #-236]
	ldr	r0, .L36+76
	bl	printf
	ldr	r0, .L36+80
	bl	puts
	mov	r3, #0
	mov	r2, #26
	ldr	r1, .L36+84
	ldr	r0, [fp, #-236]
	bl	send
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #26
	beq	.L33
	ldr	r3, .L36+4
	mov	r2, #165
	ldr	r1, .L36+8
	ldr	r0, .L36+88
	bl	__assert_fail
.L33:
	ldr	r0, [fp, #-236]
	bl	close
	nop
	ldr	r0, [fp, #-228]
	bl	close
	ldr	r0, .L36+92
	bl	puts
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC21
	.word	__PRETTY_FUNCTION__.6941
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	2130706433
	.word	12345
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	511
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	alpha
	.word	.LC19
	.word	.LC20
	.size	_srv_thread_func, .-_srv_thread_func
	.section	.rodata
	.align	2
.LC22:
	.ascii	"(sock = socket(args->domain, SOCK_STREAM | SOCK_CLO"
	.ascii	"EXEC, 0)) >= 0\000"
	.align	2
.LC23:
	.ascii	"tmp_sock >= 0\000"
	.align	2
.LC24:
	.ascii	"close(sock) == 0\000"
	.align	2
.LC25:
	.ascii	"client: connect\000"
	.align	2
.LC26:
	.ascii	"connect(sock, (struct sockaddr*)&addr, sizeof(addr)"
	.ascii	") >= 0\000"
	.align	2
.LC27:
	.ascii	"client: recv\000"
	.align	2
.LC28:
	.ascii	"r == 1\000"
	.align	2
.LC29:
	.ascii	"n > 0\000"
	.align	2
.LC30:
	.ascii	"buf{%s} n=%zd\012\000"
	.align	2
.LC31:
	.ascii	"n == strlen(alpha)\000"
	.align	2
.LC32:
	.ascii	"memcmp(buf, alpha, n) == 0\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_cli_thread_func, %function
_cli_thread_func:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L65+4
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L39
	ldr	r3, .L65+8
	mov	r2, #182
	ldr	r1, .L65+12
	ldr	r0, .L65+16
	bl	__assert_fail
.L39:
	ldr	r0, [fp, #-132]
	bl	dup
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L40
	ldr	r3, .L65+8
	mov	r2, #187
	ldr	r1, .L65+12
	ldr	r0, .L65+20
	bl	__assert_fail
.L40:
	ldr	r0, [fp, #-132]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L65+8
	mov	r2, #188
	ldr	r1, .L65+12
	ldr	r0, .L65+24
	bl	__assert_fail
.L41:
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L42
	ldr	r0, .L65+28
	bl	puts
	sub	r3, fp, #120
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #2
	strh	r3, [fp, #-120]	@ movhi
	ldr	r0, .L65+32
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, .L65+36
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-118]	@ movhi
	sub	r3, fp, #120
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L59
	ldr	r3, .L65+8
	mov	r2, #199
	ldr	r1, .L65+12
	ldr	r0, .L65+40
	bl	__assert_fail
.L42:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L45
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-118]
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #4]
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L59
	ldr	r3, .L65+8
	mov	r2, #208
	ldr	r1, .L65+12
	ldr	r0, .L65+40
	bl	__assert_fail
.L45:
	ldr	r3, .L65+8
	mov	r2, #212
	ldr	r1, .L65+12
	ldr	r0, .L65+44
	bl	__assert_fail
.L59:
	ldr	r0, .L65+48
	bl	puts
	ldr	r3, .L65+52
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, .L65+56
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L48
.L52:
	ldr	r3, [fp, #-140]
	ldr	r2, .L65+56
	add	r1, r3, r2
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-132]
	bl	recv
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	beq	.L51
	ldr	r3, .L65+8
	mov	r2, #234
	ldr	r1, .L65+12
	ldr	r0, .L65+60
	bl	__assert_fail
.L51:
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L48:
	ldr	r3, [fp, #-140]
	cmp	r3, #25
	bls	.L52
	b	.L53
.L47:
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L65+56
	ldr	r0, [fp, #-132]
	bl	_recvn
	str	r0, [fp, #-144]
	b	.L53
.L63:
	nop
.L53:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bgt	.L56
	ldr	r3, .L65+8
	mov	r2, #246
	ldr	r1, .L65+12
	ldr	r0, .L65+64
	bl	__assert_fail
.L56:
	ldr	r2, [fp, #-144]
	ldr	r1, .L65+56
	ldr	r0, .L65+68
	bl	printf
	ldr	r3, [fp, #-144]
	cmp	r3, #26
	beq	.L57
	ldr	r3, .L65+8
	mov	r2, #249
	ldr	r1, .L65+12
	ldr	r0, .L65+72
	bl	__assert_fail
.L57:
	ldr	r3, [fp, #-144]
	mov	r2, r3
	ldr	r1, .L65+76
	ldr	r0, .L65+56
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L65+8
	mov	r2, #250
	ldr	r1, .L65+12
	ldr	r0, .L65+80
	bl	__assert_fail
.L64:
	nop
	ldr	r0, [fp, #-132]
	bl	close
	mov	r3, #0
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC33
	.word	524289
	.word	__PRETTY_FUNCTION__.6964
	.word	.LC3
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	2130706433
	.word	12345
	.word	.LC26
	.word	.LC12
	.word	.LC27
	.word	_read_one_byte_at_at_time
	.word	buf.6968
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	alpha
	.word	.LC32
	.size	_cli_thread_func, .-_cli_thread_func
	.section	.rodata
	.align	2
.LC34:
	.ascii	"pthread_create(&srv_thread, NULL, _srv_thread_func,"
	.ascii	" args) == 0\000"
	.align	2
.LC35:
	.ascii	"pthread_create(&cli_thread, NULL, _cli_thread_func,"
	.ascii	" args) == 0\000"
	.align	2
.LC36:
	.ascii	"=== passed test (test_sockets: domain=%d)\012\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_sockets
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_sockets, %function
test_sockets:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	ldr	r3, [fp, #-24]
	ldr	r2, .L71+4
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, .L71+8
	ldr	r2, .L71+12
	ldr	r1, .L71+16
	ldr	r0, .L71+20
	bl	__assert_fail
.L68:
	mov	r0, #100
	bl	_sleep_msec
	sub	r0, fp, #12
	ldr	r3, [fp, #-24]
	ldr	r2, .L71+24
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L71+8
	ldr	r2, .L71+28
	ldr	r1, .L71+16
	ldr	r0, .L71+32
	bl	__assert_fail
.L69:
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L71+36
	bl	printf
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC37
	.word	_srv_thread_func
	.word	__PRETTY_FUNCTION__.6981
	.word	263
	.word	.LC3
	.word	.LC34
	.word	_cli_thread_func
	.word	265
	.word	.LC35
	.word	.LC36
	.size	test_sockets, .-test_sockets
	.section	.rodata
	.align	2
.LC38:
	.ascii	"socketpair(AF_LOCAL, SOCK_STREAM, 0, sv) == 0\000"
	.align	2
.LC39:
	.ascii	"write(sv[0], alpha, sizeof(alpha)) == sizeof(alpha)"
	.ascii	"\000"
	.align	2
.LC40:
	.ascii	"read(sv[1], buf, sizeof(buf)) == sizeof(buf)\000"
	.align	2
.LC41:
	.ascii	"memcmp(buf, alpha, sizeof(buf)) == 0\000"
	.align	2
.LC42:
	.ascii	"close(sv[0]) == 0\000"
	.align	2
.LC43:
	.ascii	"close(sv[1]) == 0\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_socketpair, %function
test_socketpair:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L82+4
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, .L82+16
	bl	__assert_fail
.L74:
	ldr	r3, [fp, #-44]
	mov	r2, #27
	ldr	r1, .L82+20
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #27
	beq	.L75
	ldr	r3, .L82+4
	mov	r2, #288
	ldr	r1, .L82+12
	ldr	r0, .L82+24
	bl	__assert_fail
.L75:
	ldr	r3, [fp, #-40]
	sub	r1, fp, #36
	mov	r2, #27
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #27
	beq	.L76
	ldr	r3, .L82+4
	ldr	r2, .L82+28
	ldr	r1, .L82+12
	ldr	r0, .L82+32
	bl	__assert_fail
.L76:
	sub	r3, fp, #36
	mov	r2, #27
	ldr	r1, .L82+20
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L77
	ldr	r3, .L82+4
	ldr	r2, .L82+36
	ldr	r1, .L82+12
	ldr	r0, .L82+40
	bl	__assert_fail
.L77:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
	ldr	r3, .L82+4
	mov	r2, #292
	ldr	r1, .L82+12
	ldr	r0, .L82+44
	bl	__assert_fail
.L78:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	ldr	r3, .L82+4
	ldr	r2, .L82+48
	ldr	r1, .L82+12
	ldr	r0, .L82+52
	bl	__assert_fail
.L81:
	nop
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC44
	.word	__PRETTY_FUNCTION__.6988
	.word	287
	.word	.LC3
	.word	.LC38
	.word	alpha
	.word	.LC39
	.word	289
	.word	.LC40
	.word	290
	.word	.LC41
	.word	.LC42
	.word	293
	.word	.LC43
	.size	test_socketpair, .-test_socketpair
	.section	.rodata
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_events
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_events, %function
get_events:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #5
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L85
	ldrsh	r3, [fp, #-10]
	b	.L87
.L85:
	ldr	r3, [fp, #-20]
.L87:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC45
	.size	get_events, .-get_events
	.section	.rodata
	.align	2
.LC46:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	can_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_read, %function
can_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #1
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L92
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L92
	mov	r3, #1
	b	.L93
.L92:
	mov	r3, #0
.L93:
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC46
	.size	can_read, .-can_read
	.section	.rodata
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	can_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_write, %function
can_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #4
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L99
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L99
	mov	r3, #1
	b	.L100
.L99:
	mov	r3, #0
.L100:
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L103
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L102
	bl	__stack_chk_fail
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC47
	.size	can_write, .-can_write
	.section	.rodata
	.align	2
.LC48:
	.ascii	"n == -1 && errno == EAGAIN\000"
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_fill_sock_buf, %function
_fill_sock_buf:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	nop
.L106:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1040]
	bl	send
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L106
	ldr	r3, [fp, #-1036]
	cmn	r3, #1
	bne	.L107
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L110
.L107:
	ldr	r3, .L111+4
	mov	r2, #344
	ldr	r1, .L111+8
	ldr	r0, .L111+12
	bl	__assert_fail
.L110:
	nop
	ldr	r3, .L111
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L109
	bl	__stack_chk_fail
.L109:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC49
	.word	__PRETTY_FUNCTION__.7012
	.word	.LC3
	.word	.LC48
	.size	_fill_sock_buf, .-_fill_sock_buf
	.section	.rodata
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_empty_sock_buf, %function
_empty_sock_buf:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L119
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	nop
.L114:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1040]
	bl	recv
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L114
	ldr	r3, [fp, #-1036]
	cmn	r3, #1
	bne	.L115
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L118
.L115:
	ldr	r3, .L119+4
	ldr	r2, .L119+8
	ldr	r1, .L119+12
	ldr	r0, .L119+16
	bl	__assert_fail
.L118:
	nop
	ldr	r3, .L119
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L117
	bl	__stack_chk_fail
.L117:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC50
	.word	__PRETTY_FUNCTION__.7021
	.word	355
	.word	.LC3
	.word	.LC48
	.size	_empty_sock_buf, .-_empty_sock_buf
	.section	.rodata
	.align	2
.LC51:
	.ascii	"getsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, (void*)&si"
	.ascii	"ze, &len) == 0\000"
	.align	2
.LC52:
	.ascii	"size > 0\000"
	.align	2
.LC53:
	.ascii	"setsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, (void*)&si"
	.ascii	"ze, len) == 0\000"
	.align	2
.LC54:
	.ascii	"size > 1\000"
	.align	2
.LC55:
	.ascii	"ioctl(sv[0], FIONBIO, &val) == 0\000"
	.align	2
.LC56:
	.ascii	"ioctl(sv[1], FIONBIO, &val) == 0\000"
	.align	2
.LC57:
	.ascii	"can_write(sv[0])\000"
	.align	2
.LC58:
	.ascii	"!can_read(sv[0])\000"
	.align	2
.LC59:
	.ascii	"can_write(sv[1])\000"
	.align	2
.LC60:
	.ascii	"!can_read(sv[1])\000"
	.align	2
.LC61:
	.ascii	"!can_write(sv[0])\000"
	.align	2
.LC62:
	.ascii	"can_read(sv[1])\000"
	.align	2
.LC63:
	.ascii	"!can_write(sv[1])\000"
	.align	2
.LC64:
	.ascii	"can_read(sv[0])\000"
	.align	2
.LC65:
	.ascii	"=== passed test (%s)\012\000"
	.align	2
.LC66:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_socketpair_nonblock, %function
test_socketpair_nonblock:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L156
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	mov	r3, r0
	cmp	r3, #0
	beq	.L122
	ldr	r3, .L156+4
	mov	r2, #364
	ldr	r1, .L156+8
	ldr	r0, .L156+12
	bl	__assert_fail
.L122:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #4
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-16]
	sub	r2, fp, #28
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #7
	mov	r1, #1
	bl	getsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L123
	ldr	r3, .L156+4
	mov	r2, #368
	ldr	r1, .L156+8
	ldr	r0, .L156+16
	bl	__assert_fail
.L123:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L124
	ldr	r3, .L156+4
	ldr	r2, .L156+20
	ldr	r1, .L156+8
	ldr	r0, .L156+24
	bl	__assert_fail
.L124:
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #4
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r2, fp, #28
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #7
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L125
	ldr	r3, .L156+4
	ldr	r2, .L156+28
	ldr	r1, .L156+8
	ldr	r0, .L156+32
	bl	__assert_fail
.L125:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L126
	ldr	r3, .L156+4
	ldr	r2, .L156+36
	ldr	r1, .L156+8
	ldr	r0, .L156+24
	bl	__assert_fail
.L126:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #4
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-16]
	sub	r2, fp, #28
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #7
	mov	r1, #1
	bl	getsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L127
	ldr	r3, .L156+4
	ldr	r2, .L156+40
	ldr	r1, .L156+8
	ldr	r0, .L156+16
	bl	__assert_fail
.L127:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bgt	.L128
	ldr	r3, .L156+4
	ldr	r2, .L156+44
	ldr	r1, .L156+8
	ldr	r0, .L156+48
	bl	__assert_fail
.L128:
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #20
	ldr	r1, .L156+52
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L129
	ldr	r3, .L156+4
	mov	r2, #384
	ldr	r1, .L156+8
	ldr	r0, .L156+56
	bl	__assert_fail
.L129:
	ldr	r3, [fp, #-12]
	sub	r2, fp, #20
	ldr	r1, .L156+52
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L130
	ldr	r3, .L156+4
	ldr	r2, .L156+60
	ldr	r1, .L156+8
	ldr	r0, .L156+64
	bl	__assert_fail
.L130:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L131
	ldr	r3, .L156+4
	ldr	r2, .L156+68
	ldr	r1, .L156+8
	ldr	r0, .L156+72
	bl	__assert_fail
.L131:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L132
	ldr	r3, .L156+4
	ldr	r2, .L156+76
	ldr	r1, .L156+8
	ldr	r0, .L156+80
	bl	__assert_fail
.L132:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L133
	ldr	r3, .L156+4
	ldr	r2, .L156+84
	ldr	r1, .L156+8
	ldr	r0, .L156+88
	bl	__assert_fail
.L133:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L134
	ldr	r3, .L156+4
	mov	r2, #392
	ldr	r1, .L156+8
	ldr	r0, .L156+92
	bl	__assert_fail
.L134:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	_fill_sock_buf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L135
	ldr	r3, .L156+4
	ldr	r2, .L156+96
	ldr	r1, .L156+8
	ldr	r0, .L156+100
	bl	__assert_fail
.L135:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L136
	ldr	r3, .L156+4
	ldr	r2, .L156+104
	ldr	r1, .L156+8
	ldr	r0, .L156+80
	bl	__assert_fail
.L136:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L137
	ldr	r3, .L156+4
	ldr	r2, .L156+108
	ldr	r1, .L156+8
	ldr	r0, .L156+88
	bl	__assert_fail
.L137:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	cmp	r3, #0
	bne	.L138
	ldr	r3, .L156+4
	mov	r2, #400
	ldr	r1, .L156+8
	ldr	r0, .L156+112
	bl	__assert_fail
.L138:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	_empty_sock_buf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L139
	ldr	r3, .L156+4
	ldr	r2, .L156+116
	ldr	r1, .L156+8
	ldr	r0, .L156+72
	bl	__assert_fail
.L139:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L140
	ldr	r3, .L156+4
	ldr	r2, .L156+120
	ldr	r1, .L156+8
	ldr	r0, .L156+80
	bl	__assert_fail
.L140:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L141
	ldr	r3, .L156+4
	ldr	r2, .L156+124
	ldr	r1, .L156+8
	ldr	r0, .L156+88
	bl	__assert_fail
.L141:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L142
	ldr	r3, .L156+4
	mov	r2, #408
	ldr	r1, .L156+8
	ldr	r0, .L156+92
	bl	__assert_fail
.L142:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L143
	ldr	r3, .L156+4
	ldr	r2, .L156+128
	ldr	r1, .L156+8
	ldr	r0, .L156+88
	bl	__assert_fail
.L143:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L144
	ldr	r3, .L156+4
	mov	r2, #412
	ldr	r1, .L156+8
	ldr	r0, .L156+92
	bl	__assert_fail
.L144:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L145
	ldr	r3, .L156+4
	ldr	r2, .L156+132
	ldr	r1, .L156+8
	ldr	r0, .L156+72
	bl	__assert_fail
.L145:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L156+4
	ldr	r2, .L156+136
	ldr	r1, .L156+8
	ldr	r0, .L156+80
	bl	__assert_fail
.L146:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	_fill_sock_buf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L147
	ldr	r3, .L156+4
	ldr	r2, .L156+140
	ldr	r1, .L156+8
	ldr	r0, .L156+144
	bl	__assert_fail
.L147:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L148
	ldr	r3, .L156+4
	mov	r2, #420
	ldr	r1, .L156+8
	ldr	r0, .L156+92
	bl	__assert_fail
.L148:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L149
	ldr	r3, .L156+4
	ldr	r2, .L156+148
	ldr	r1, .L156+8
	ldr	r0, .L156+72
	bl	__assert_fail
.L149:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	cmp	r3, #0
	bne	.L150
	ldr	r3, .L156+4
	ldr	r2, .L156+152
	ldr	r1, .L156+8
	ldr	r0, .L156+156
	bl	__assert_fail
.L150:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	_empty_sock_buf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L151
	ldr	r3, .L156+4
	ldr	r2, .L156+160
	ldr	r1, .L156+8
	ldr	r0, .L156+88
	bl	__assert_fail
.L151:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L152
	ldr	r3, .L156+4
	mov	r2, #428
	ldr	r1, .L156+8
	ldr	r0, .L156+92
	bl	__assert_fail
.L152:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L153
	ldr	r3, .L156+4
	ldr	r2, .L156+164
	ldr	r1, .L156+8
	ldr	r0, .L156+72
	bl	__assert_fail
.L153:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	can_read
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L154
	ldr	r3, .L156+4
	ldr	r2, .L156+168
	ldr	r1, .L156+8
	ldr	r0, .L156+80
	bl	__assert_fail
.L154:
	ldr	r1, .L156+172
	ldr	r0, .L156+176
	bl	printf
	nop
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L155
	bl	__stack_chk_fail
.L155:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L157:
	.align	2
.L156:
	.word	.LC66
	.word	__PRETTY_FUNCTION__.7028
	.word	.LC3
	.word	.LC38
	.word	.LC51
	.word	369
	.word	.LC52
	.word	373
	.word	.LC53
	.word	374
	.word	378
	.word	379
	.word	.LC54
	.word	21537
	.word	.LC55
	.word	385
	.word	.LC56
	.word	389
	.word	.LC57
	.word	390
	.word	.LC58
	.word	391
	.word	.LC59
	.word	.LC60
	.word	397
	.word	.LC61
	.word	398
	.word	399
	.word	.LC62
	.word	405
	.word	406
	.word	407
	.word	411
	.word	413
	.word	414
	.word	419
	.word	.LC63
	.word	421
	.word	422
	.word	.LC64
	.word	427
	.word	429
	.word	430
	.word	__FUNCTION__.7032
	.word	.LC65
	.size	test_socketpair_nonblock, .-test_socketpair_nonblock
	.section	.rodata
	.align	2
.LC67:
	.word	1
	.word	.LC0
	.align	2
.LC68:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L161
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r0, r3
	bl	test_sockets
	ldr	r2, .L161+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L161+8
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r0, r3
	bl	test_sockets
	ldr	r0, .L161+12
	bl	unlink
	ldr	r3, .L161+8
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r0, r3
	bl	test_sockets
	bl	test_socketpair
	bl	test_socketpair_nonblock
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L161+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L161
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L160
	bl	__stack_chk_fail
.L160:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L162:
	.align	2
.L161:
	.word	.LC68
	.word	.LC67
	.word	_read_one_byte_at_at_time
	.word	.LC0
	.word	.LC65
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6941, %object
	.size	__PRETTY_FUNCTION__.6941, 17
__PRETTY_FUNCTION__.6941:
	.ascii	"_srv_thread_func\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6964, %object
	.size	__PRETTY_FUNCTION__.6964, 17
__PRETTY_FUNCTION__.6964:
	.ascii	"_cli_thread_func\000"
	.local	buf.6968
	.comm	buf.6968,1024,4
	.align	2
	.type	__PRETTY_FUNCTION__.6981, %object
	.size	__PRETTY_FUNCTION__.6981, 13
__PRETTY_FUNCTION__.6981:
	.ascii	"test_sockets\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6988, %object
	.size	__PRETTY_FUNCTION__.6988, 16
__PRETTY_FUNCTION__.6988:
	.ascii	"test_socketpair\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7012, %object
	.size	__PRETTY_FUNCTION__.7012, 15
__PRETTY_FUNCTION__.7012:
	.ascii	"_fill_sock_buf\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7021, %object
	.size	__PRETTY_FUNCTION__.7021, 16
__PRETTY_FUNCTION__.7021:
	.ascii	"_empty_sock_buf\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7028, %object
	.size	__PRETTY_FUNCTION__.7028, 25
__PRETTY_FUNCTION__.7028:
	.ascii	"test_socketpair_nonblock\000"
	.align	2
	.type	__FUNCTION__.7032, %object
	.size	__FUNCTION__.7032, 25
__FUNCTION__.7032:
	.ascii	"test_socketpair_nonblock\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
