	.file	"125150.c"
	.intel_syntax noprefix
	.text
	.type	write_all, @function
write_all:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L4:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L4
.L3:
	cmp	QWORD PTR -8[rbp], 0
	jg	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -16[rbp], rax
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_all, .-write_all
	.section	.rodata
.LC0:
	.string	"getaddrinfo() failed"
.LC1:
	.string	"bind() failed"
	.text
	.type	socket_listen, @function
socket_listen:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -64[rbp], 1
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L8:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L10
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	je	.L20
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, rax
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L12
.L20:
	nop
.L12:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L10:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L15
	jmp	.L14
.L21:
	nop
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L16
	mov	eax, -1
	jmp	.L18
.L16:
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L17
	mov	eax, -1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -84[rbp]
.L18:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	socket_listen, .-socket_listen
	.type	epoll_add_fd, @function
epoll_add_fd:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -20[rbp], 1
	lea	rcx, -20[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	epoll_add_fd, .-epoll_add_fd
	.globl	atsock_new
	.type	atsock_new, @function
atsock_new:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
.L26:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	atsock_new, .-atsock_new
	.section	.rodata
.LC2:
	.string	"the_stack_data/125150.c"
.LC3:
	.string	"new != NULL"
	.text
	.globl	atsock_save
	.type	atsock_save, @function
atsock_save:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	jne	.L29
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 107
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L29:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	atsock_save, .-atsock_save
	.section	.rodata
.LC4:
	.string	"head != NULL"
.LC5:
	.string	"0"
	.text
	.globl	atsock_erase
	.type	atsock_erase, @function
atsock_erase:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L35
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 121
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L35:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	je	.L39
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L37
.L38:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L40
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 141
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	atsock_erase, .-atsock_erase
	.section	.rodata
.LC6:
	.string	"pti != NULL"
.LC7:
	.string	"epoll_create1() failed"
	.align 8
.LC8:
	.string	"epoll_add_fd(master_fd) failed"
.LC9:
	.string	"socket_listen() failed"
	.align 8
.LC10:
	.string	"epoll_add_fd(attach_sock) failed"
.LC11:
	.string	"epoll_wait() failed"
.LC12:
	.string	"accept() failed"
.LC13:
	.string	"epoll_add_fd(conn) failed"
.LC14:
	.string	"accepted new sock conn"
	.align 8
.LC15:
	.string	"epoll_ctl(EPOLL_CTL_DEL) failed"
.LC16:
	.string	"disconnected sock"
.LC17:
	.string	"write_all(master_fd) failed"
	.align 8
.LC18:
	.string	"epoll_ctl(EPOLL_CTL_DEL, attach_sock) failed"
.LC19:
	.string	"attach_sock failed"
	.text
	.type	run_master, @function
run_master:
.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, 2656
	mov	QWORD PTR -2648[rbp], rdi
	mov	QWORD PTR -2656[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -2648[rbp], 0
	jne	.L42
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 146
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L42:
	mov	DWORD PTR -2628[rbp], 1
	mov	DWORD PTR -2624[rbp], -1
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -2616[rbp], eax
	cmp	DWORD PTR -2616[rbp], -1
	jne	.L43
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -2648[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -2616[rbp]
	mov	esi, edx
	mov	edi, eax
	call	epoll_add_fd
	test	eax, eax
	je	.L45
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -2656[rbp]
	mov	rdi, rax
	call	socket_listen
	mov	DWORD PTR -2624[rbp], eax
	cmp	DWORD PTR -2624[rbp], -1
	jne	.L46
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L44
.L46:
	mov	edx, DWORD PTR -2624[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	esi, edx
	mov	edi, eax
	call	epoll_add_fd
	test	eax, eax
	je	.L47
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L44
.L47:
	mov	QWORD PTR -2592[rbp], 0
.L73:
	lea	rsi, -2576[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	ecx, -1
	mov	edx, 128
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -2612[rbp], eax
	cmp	DWORD PTR -2612[rbp], -1
	jne	.L48
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L79
.L48:
	cmp	DWORD PTR -2612[rbp], -1
	jne	.L50
	lea	rdi, .LC11[rip]
	call	perror@PLT
	nop
	mov	DWORD PTR -2628[rbp], 0
	jmp	.L44
.L50:
	mov	DWORD PTR -2620[rbp], 0
	jmp	.L52
.L72:
	mov	eax, DWORD PTR -2620[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2572
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -2608[rbp], eax
	mov	eax, DWORD PTR -2620[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2576
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L53
	mov	rax, QWORD PTR -2648[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2608[rbp], eax
	jne	.L54
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -2608[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2596[rbp], eax
	mov	rax, QWORD PTR -2592[rbp]
	mov	QWORD PTR -2584[rbp], rax
	jmp	.L55
.L57:
	mov	eax, DWORD PTR -2596[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2584[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -1040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write_all
	mov	rax, QWORD PTR -2584[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -2584[rbp], rax
.L55:
	cmp	DWORD PTR -2596[rbp], 0
	je	.L58
	cmp	QWORD PTR -2584[rbp], 0
	jne	.L57
	jmp	.L58
.L54:
	mov	eax, DWORD PTR -2608[rbp]
	cmp	eax, DWORD PTR -2624[rbp]
	jne	.L59
.L61:
	mov	ecx, 0
	mov	eax, DWORD PTR -2608[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -2600[rbp], eax
	cmp	DWORD PTR -2600[rbp], -1
	jne	.L60
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L61
.L60:
	cmp	DWORD PTR -2600[rbp], -1
	jne	.L62
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L44
.L62:
	mov	eax, DWORD PTR -2600[rbp]
	mov	edi, eax
	call	atsock_new
	mov	rdx, rax
	mov	rax, QWORD PTR -2592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	atsock_save
	mov	QWORD PTR -2592[rbp], rax
	mov	edx, DWORD PTR -2600[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	esi, edx
	mov	edi, eax
	call	epoll_add_fd
	test	eax, eax
	je	.L63
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L44
.L63:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L58
.L59:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -2608[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2604[rbp], eax
	cmp	DWORD PTR -2604[rbp], 0
	jne	.L64
	mov	edx, DWORD PTR -2608[rbp]
	mov	rax, QWORD PTR -2592[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	atsock_erase
	mov	QWORD PTR -2592[rbp], rax
	mov	edx, DWORD PTR -2608[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	je	.L65
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L44
.L65:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L58
.L64:
	mov	eax, DWORD PTR -2604[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2648[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -1040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write_all
	test	eax, eax
	je	.L58
	lea	rdi, .LC17[rip]
	call	perror@PLT
	jmp	.L44
.L53:
	mov	eax, DWORD PTR -2620[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2576
	mov	eax, DWORD PTR [rax]
	and	eax, 24
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -2608[rbp]
	cmp	eax, DWORD PTR -2624[rbp]
	jne	.L68
	mov	DWORD PTR -2624[rbp], -1
	mov	edx, DWORD PTR -2608[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	je	.L69
	lea	rdi, .LC18[rip]
	call	perror@PLT
	jmp	.L44
.L69:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L58
.L68:
	mov	rax, QWORD PTR -2648[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2608[rbp], eax
	jne	.L70
	mov	DWORD PTR -2628[rbp], 0
	jmp	.L44
.L70:
	mov	edx, DWORD PTR -2608[rbp]
	mov	rax, QWORD PTR -2592[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	atsock_erase
	mov	QWORD PTR -2592[rbp], rax
	mov	edx, DWORD PTR -2608[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	je	.L71
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L44
.L71:
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L58:
	add	DWORD PTR -2620[rbp], 1
.L52:
	mov	eax, DWORD PTR -2620[rbp]
	cmp	eax, DWORD PTR -2612[rbp]
	jl	.L72
	jmp	.L73
.L79:
	nop
	jmp	.L73
.L44:
	mov	rax, QWORD PTR -2648[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L74
.L75:
	mov	rax, QWORD PTR -2592[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -2592[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -2592[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	atsock_erase
	mov	QWORD PTR -2592[rbp], rax
.L74:
	cmp	QWORD PTR -2592[rbp], 0
	jne	.L75
	cmp	DWORD PTR -2616[rbp], -1
	je	.L76
	mov	eax, DWORD PTR -2616[rbp]
	mov	edi, eax
	call	close@PLT
.L76:
	cmp	DWORD PTR -2624[rbp], -1
	je	.L77
	mov	eax, DWORD PTR -2624[rbp]
	mov	edi, eax
	call	close@PLT
.L77:
	mov	eax, DWORD PTR -2628[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	run_master, .-run_master
	.section	.rodata
.LC20:
	.string	"open(pts_name) failed"
	.text
	.type	run_slave, @function
run_slave:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L81
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 272
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L81:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	call	setsid@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L82
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	jmp	.L83
.L82:
	lea	rdi, .LC20[rip]
	call	perror@PLT
.L83:
	mov	edi, 127
	call	_exit@PLT
	.cfi_endproc
.LFE13:
	.size	run_slave, .-run_slave
	.section	.rodata
.LC21:
	.string	"posix_openpt() failed"
.LC22:
	.string	"grantpt() failed"
.LC23:
	.string	"unlockpt() failed"
.LC24:
	.string	"ptsname_r() failed"
	.text
	.type	create_pt, @function
create_pt:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	cmp	QWORD PTR -8[rbp], 0
	jne	.L85
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	jmp	.L86
.L85:
	mov	edi, 2
	call	posix_openpt@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L87
	lea	rdi, .LC21[rip]
	call	perror@PLT
	jmp	.L86
.L87:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	grantpt@PLT
	test	eax, eax
	je	.L88
	lea	rdi, .LC22[rip]
	call	perror@PLT
	jmp	.L86
.L88:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	unlockpt@PLT
	test	eax, eax
	je	.L89
	lea	rdi, .LC23[rip]
	call	perror@PLT
	jmp	.L86
.L89:
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	ptsname_r@PLT
	test	eax, eax
	je	.L86
	lea	rdi, .LC24[rip]
	call	perror@PLT
	nop
.L86:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L90
	cmp	QWORD PTR -8[rbp], 0
	je	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
.L90:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	create_pt, .-create_pt
	.section	.rodata
.LC25:
	.string	"fork() failed"
.LC26:
	.string	"Daemon PID is %d\n"
.LC27:
	.string	"/dev/null"
.LC28:
	.string	"open('dev/null') failed"
.LC29:
	.string	"dup2(devnul, STDIN) failed"
.LC30:
	.string	"dup2(devnul, STDOUT) failed"
.LC31:
	.string	"dup2(devnul, STDERR) failed"
.LC32:
	.string	"docker attach "
	.text
	.globl	main
	.type	main, @function
main:
.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	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -1056[rbp], eax
	cmp	DWORD PTR -1056[rbp], 0
	jns	.L93
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L93:
	cmp	DWORD PTR -1056[rbp], 0
	je	.L94
	mov	eax, DWORD PTR -1056[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L94:
	mov	esi, 524290
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	jns	.L95
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L95:
	mov	eax, DWORD PTR -1052[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L96
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L96:
	mov	eax, DWORD PTR -1052[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L97
	lea	rdi, .LC30[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L97:
	mov	eax, DWORD PTR -1052[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L98
	lea	rdi, .LC31[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L98:
	call	setsid@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	create_pt
	test	eax, eax
	je	.L99
	mov	edi, 1
	call	exit@PLT
.L99:
	call	fork@PLT
	mov	DWORD PTR -1056[rbp], eax
	cmp	DWORD PTR -1056[rbp], 0
	jns	.L100
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L100:
	cmp	DWORD PTR -1056[rbp], 0
	jne	.L101
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	call	strcat@PLT
	mov	QWORD PTR -1048[rbp], rax
	lea	rdx, -1048[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	run_slave
	jmp	.L102
.L101:
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	run_master
.L102:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L104
	call	__stack_chk_fail@PLT
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 12
__PRETTY_FUNCTION__.3:
	.string	"atsock_save"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 13
__PRETTY_FUNCTION__.2:
	.string	"atsock_erase"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"run_master"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
	.string	"run_slave"
	.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	"125150.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_all, %function
write_all:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L4
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L5
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_all, .-write_all
	.section	.rodata
	.align	2
.LC0:
	.ascii	"getaddrinfo() failed\000"
	.align	2
.LC1:
	.ascii	"bind() failed\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_listen, %function
socket_listen:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	sub	r2, fp, #40
	ldr	r1, [fp, #-56]
	mov	r0, #0
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L22+4
	bl	perror
	mvn	r3, #0
	b	.L18
.L8:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
	b	.L10
.L15:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-44]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	beq	.L20
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L22+8
	bl	perror
	ldr	r0, [fp, #-48]
	bl	close
	b	.L12
.L20:
	nop
.L12:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-44]
.L10:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L15
	b	.L14
.L21:
	nop
.L14:
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L16
	mvn	r3, #0
	b	.L18
.L16:
	mov	r1, #4096
	ldr	r0, [fp, #-48]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mvn	r3, #0
	b	.L18
.L17:
	ldr	r3, [fp, #-48]
.L18:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	socket_listen, .-socket_listen
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	epoll_add_fd, %function
epoll_add_fd:
	@ 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, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	ldr	r2, [fp, #-36]
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	epoll_ctl
	mov	r3, r0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC3
	.size	epoll_add_fd, .-epoll_add_fd
	.align	2
	.global	atsock_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	atsock_new, %function
atsock_new:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
.L30:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	atsock_new, .-atsock_new
	.section	.rodata
	.align	2
.LC4:
	.ascii	"the_stack_data/125150.c\000"
	.align	2
.LC5:
	.ascii	"new != NULL\000"
	.text
	.align	2
	.global	atsock_save
	.syntax unified
	.arm
	.fpu softvfp
	.type	atsock_save, %function
atsock_save:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L38
	mov	r2, #107
	ldr	r1, .L38+4
	ldr	r0, .L38+8
	bl	__assert_fail
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-20]
	b	.L35
.L34:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L36
.L37:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	__PRETTY_FUNCTION__.7388
	.word	.LC4
	.word	.LC5
	.size	atsock_save, .-atsock_save
	.section	.rodata
	.align	2
.LC6:
	.ascii	"head != NULL\000"
	.align	2
.LC7:
	.ascii	"0\000"
	.text
	.align	2
	.global	atsock_erase
	.syntax unified
	.arm
	.fpu softvfp
	.type	atsock_erase, %function
atsock_erase:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L47
	mov	r2, #121
	ldr	r1, .L47+4
	ldr	r0, .L47+8
	bl	__assert_fail
.L41:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L42
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L44
.L46:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L45
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L44
.L45:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-24]
	b	.L43
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L47
	mov	r2, #141
	ldr	r1, .L47+4
	ldr	r0, .L47+12
	bl	__assert_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	__PRETTY_FUNCTION__.7397
	.word	.LC4
	.word	.LC6
	.word	.LC7
	.size	atsock_erase, .-atsock_erase
	.section	.rodata
	.align	2
.LC8:
	.ascii	"pti != NULL\000"
	.align	2
.LC9:
	.ascii	"epoll_create1() failed\000"
	.align	2
.LC10:
	.ascii	"epoll_add_fd(master_fd) failed\000"
	.align	2
.LC11:
	.ascii	"socket_listen() failed\000"
	.align	2
.LC12:
	.ascii	"epoll_add_fd(attach_sock) failed\000"
	.align	2
.LC13:
	.ascii	"epoll_wait() failed\000"
	.align	2
.LC14:
	.ascii	"accept() failed\000"
	.align	2
.LC15:
	.ascii	"epoll_add_fd(conn) failed\000"
	.align	2
.LC16:
	.ascii	"accepted new sock conn\000"
	.align	2
.LC17:
	.ascii	"epoll_ctl(EPOLL_CTL_DEL) failed\000"
	.align	2
.LC18:
	.ascii	"disconnected sock\000"
	.align	2
.LC19:
	.ascii	"write_all(master_fd) failed\000"
	.align	2
.LC20:
	.ascii	"epoll_ctl(EPOLL_CTL_DEL, attach_sock) failed\000"
	.align	2
.LC21:
	.ascii	"attach_sock failed\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_master, %function
run_master:
	@ args = 0, pretend = 0, frame = 3136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3136
	str	r0, [fp, #-3136]
	str	r1, [fp, #-3140]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-3136]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L88+4
	mov	r2, #146
	ldr	r1, .L88+8
	ldr	r0, .L88+12
	bl	__assert_fail
.L50:
	mov	r3, #1
	str	r3, [fp, #-3128]
	mvn	r3, #0
	str	r3, [fp, #-3124]
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-3108]
	ldr	r3, [fp, #-3108]
	cmn	r3, #1
	bne	.L51
	ldr	r0, .L88+16
	bl	perror
	b	.L52
.L51:
	ldr	r3, [fp, #-3136]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-3108]
	bl	epoll_add_fd
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r0, .L88+20
	bl	perror
	b	.L52
.L53:
	ldr	r0, [fp, #-3140]
	bl	socket_listen
	str	r0, [fp, #-3124]
	ldr	r3, [fp, #-3124]
	cmn	r3, #1
	bne	.L54
	ldr	r0, .L88+24
	bl	perror
	b	.L52
.L54:
	ldr	r1, [fp, #-3124]
	ldr	r0, [fp, #-3108]
	bl	epoll_add_fd
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r0, .L88+28
	bl	perror
	b	.L52
.L55:
	mov	r3, #0
	str	r3, [fp, #-3120]
.L81:
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #8
	mvn	r3, #0
	mov	r2, #128
	ldr	r0, [fp, #-3108]
	bl	epoll_wait
	str	r0, [fp, #-3104]
	ldr	r3, [fp, #-3104]
	cmn	r3, #1
	bne	.L56
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L87
.L56:
	ldr	r3, [fp, #-3104]
	cmn	r3, #1
	bne	.L58
	ldr	r0, .L88+32
	bl	perror
	nop
	mov	r3, #0
	str	r3, [fp, #-3128]
	b	.L52
.L58:
	mov	r3, #0
	str	r3, [fp, #-3116]
	b	.L60
.L80:
	ldr	r3, [fp, #-3116]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-3072]
	str	r3, [fp, #-3100]
	ldr	r3, [fp, #-3116]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-3080]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-3136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-3100]
	cmp	r2, r3
	bne	.L62
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L88+36
	mov	r1, r3
	ldr	r0, [fp, #-3100]
	bl	read
	str	r0, [fp, #-3088]
	ldr	r3, [fp, #-3120]
	str	r3, [fp, #-3112]
	b	.L63
.L65:
	ldr	r3, [fp, #-3112]
	ldr	r0, [r3]
	ldr	r2, [fp, #-3088]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	write_all
	ldr	r3, [fp, #-3112]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-3112]
.L63:
	ldr	r3, [fp, #-3088]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-3112]
	cmp	r3, #0
	bne	.L65
	b	.L66
.L62:
	ldr	r2, [fp, #-3100]
	ldr	r3, [fp, #-3124]
	cmp	r2, r3
	bne	.L67
.L69:
	mov	r3, #0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-3100]
	bl	accept
	str	r0, [fp, #-3092]
	ldr	r3, [fp, #-3092]
	cmn	r3, #1
	bne	.L68
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L69
.L68:
	ldr	r3, [fp, #-3092]
	cmn	r3, #1
	bne	.L70
	ldr	r0, .L88+40
	bl	perror
	b	.L52
.L70:
	ldr	r0, [fp, #-3092]
	bl	atsock_new
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-3120]
	bl	atsock_save
	str	r0, [fp, #-3120]
	ldr	r1, [fp, #-3092]
	ldr	r0, [fp, #-3108]
	bl	epoll_add_fd
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	ldr	r0, .L88+44
	bl	perror
	b	.L52
.L71:
	ldr	r0, .L88+48
	bl	puts
	b	.L66
.L67:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L88+36
	mov	r1, r3
	ldr	r0, [fp, #-3100]
	bl	read
	str	r0, [fp, #-3096]
	ldr	r3, [fp, #-3096]
	cmp	r3, #0
	bne	.L72
	ldr	r1, [fp, #-3100]
	ldr	r0, [fp, #-3120]
	bl	atsock_erase
	str	r0, [fp, #-3120]
	mov	r3, #0
	ldr	r2, [fp, #-3100]
	mov	r1, #2
	ldr	r0, [fp, #-3108]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r0, .L88+52
	bl	perror
	b	.L52
.L73:
	ldr	r0, .L88+56
	bl	puts
	b	.L66
.L72:
	ldr	r3, [fp, #-3136]
	ldr	r0, [r3]
	ldr	r2, [fp, #-3096]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	write_all
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r0, .L88+60
	bl	perror
	b	.L52
.L61:
	ldr	r3, [fp, #-3116]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-3080]
	and	r3, r3, #24
	cmp	r3, #0
	beq	.L66
	ldr	r2, [fp, #-3100]
	ldr	r3, [fp, #-3124]
	cmp	r2, r3
	bne	.L76
	mvn	r3, #0
	str	r3, [fp, #-3124]
	mov	r3, #0
	ldr	r2, [fp, #-3100]
	mov	r1, #2
	ldr	r0, [fp, #-3108]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L77
	ldr	r0, .L88+64
	bl	perror
	b	.L52
.L77:
	ldr	r0, .L88+68
	bl	puts
	b	.L66
.L76:
	ldr	r3, [fp, #-3136]
	ldr	r3, [r3]
	ldr	r2, [fp, #-3100]
	cmp	r2, r3
	bne	.L78
	mov	r3, #0
	str	r3, [fp, #-3128]
	b	.L52
.L78:
	ldr	r1, [fp, #-3100]
	ldr	r0, [fp, #-3120]
	bl	atsock_erase
	str	r0, [fp, #-3120]
	mov	r3, #0
	ldr	r2, [fp, #-3100]
	mov	r1, #2
	ldr	r0, [fp, #-3108]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r0, .L88+52
	bl	perror
	b	.L52
.L79:
	ldr	r0, .L88+56
	bl	puts
.L66:
	ldr	r3, [fp, #-3116]
	add	r3, r3, #1
	str	r3, [fp, #-3116]
.L60:
	ldr	r2, [fp, #-3116]
	ldr	r3, [fp, #-3104]
	cmp	r2, r3
	blt	.L80
	b	.L81
.L87:
	nop
	b	.L81
.L52:
	ldr	r3, [fp, #-3136]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	b	.L82
.L83:
	ldr	r3, [fp, #-3120]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-3120]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-3120]
	bl	atsock_erase
	str	r0, [fp, #-3120]
.L82:
	ldr	r3, [fp, #-3120]
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-3108]
	cmn	r3, #1
	beq	.L84
	ldr	r0, [fp, #-3108]
	bl	close
.L84:
	ldr	r3, [fp, #-3124]
	cmn	r3, #1
	beq	.L85
	ldr	r0, [fp, #-3124]
	bl	close
.L85:
	ldr	r0, [fp, #-3128]
	bl	exit
.L89:
	.align	2
.L88:
	.word	.LC22
	.word	__PRETTY_FUNCTION__.7408
	.word	.LC4
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	1023
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	run_master, .-run_master
	.section	.rodata
	.align	2
.LC23:
	.ascii	"open(pts_name) failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_slave, %function
run_slave:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L91
	ldr	r3, .L94
	mov	r2, #272
	ldr	r1, .L94+4
	ldr	r0, .L94+8
	bl	__assert_fail
.L91:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	setsid
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L92
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	dup2
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	dup2
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	execv
	b	.L93
.L92:
	ldr	r0, .L94+12
	bl	perror
.L93:
	mov	r0, #127
	bl	_exit
.L95:
	.align	2
.L94:
	.word	__PRETTY_FUNCTION__.7442
	.word	.LC4
	.word	.LC8
	.word	.LC23
	.size	run_slave, .-run_slave
	.section	.rodata
	.align	2
.LC24:
	.ascii	"posix_openpt() failed\000"
	.align	2
.LC25:
	.ascii	"grantpt() failed\000"
	.align	2
.LC26:
	.ascii	"unlockpt() failed\000"
	.align	2
.LC27:
	.ascii	"ptsname_r() failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_pt, %function
create_pt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L97
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	b	.L98
.L97:
	mov	r0, #2
	bl	posix_openpt
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L99
	ldr	r0, .L104
	bl	perror
	b	.L98
.L99:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	grantpt
	mov	r3, r0
	cmp	r3, #0
	beq	.L100
	ldr	r0, .L104+4
	bl	perror
	b	.L98
.L100:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlockpt
	mov	r3, r0
	cmp	r3, #0
	beq	.L101
	ldr	r0, .L104+8
	bl	perror
	b	.L98
.L101:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	ptsname_r
	mov	r3, r0
	cmp	r3, #0
	beq	.L98
	ldr	r0, .L104+12
	bl	perror
	nop
.L98:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L102
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L102:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	create_pt, .-create_pt
	.section	.rodata
	.align	2
.LC28:
	.ascii	"fork() failed\000"
	.align	2
.LC29:
	.ascii	"Daemon PID is %d\012\000"
	.align	2
.LC30:
	.ascii	"/dev/null\000"
	.align	2
.LC31:
	.ascii	"open('dev/null') failed\000"
	.align	2
.LC32:
	.ascii	"dup2(devnul, STDIN) failed\000"
	.align	2
.LC33:
	.ascii	"dup2(devnul, STDOUT) failed\000"
	.align	2
.LC34:
	.ascii	"dup2(devnul, STDERR) failed\000"
	.align	2
.LC35:
	.ascii	"docker attach \000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L119
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L107
	ldr	r0, .L119+4
	bl	perror
	mov	r0, #1
	bl	exit
.L107:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	beq	.L108
	ldr	r1, [fp, #-1044]
	ldr	r0, .L119+8
	bl	printf
	mov	r0, #0
	bl	exit
.L108:
	ldr	r1, .L119+12
	ldr	r0, .L119+16
	bl	open
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bge	.L109
	ldr	r0, .L119+20
	bl	perror
	mov	r0, #1
	bl	exit
.L109:
	mov	r1, #0
	ldr	r0, [fp, #-1040]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L110
	ldr	r0, .L119+24
	bl	perror
	mov	r0, #1
	bl	exit
.L110:
	mov	r1, #1
	ldr	r0, [fp, #-1040]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L111
	ldr	r0, .L119+28
	bl	perror
	mov	r0, #1
	bl	exit
.L111:
	mov	r1, #2
	ldr	r0, [fp, #-1040]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L112
	ldr	r0, .L119+32
	bl	perror
	mov	r0, #1
	bl	exit
.L112:
	bl	setsid
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	create_pt
	mov	r3, r0
	cmp	r3, #0
	beq	.L113
	mov	r0, #1
	bl	exit
.L113:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L114
	ldr	r0, .L119+4
	bl	perror
	mov	r0, #1
	bl	exit
.L114:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L115
	ldr	r3, [fp, #-1060]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L119+36
	bl	strcat
	mov	r3, r0
	str	r3, [fp, #-1048]
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	run_slave
	b	.L116
.L115:
	ldr	r3, [fp, #-1060]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	run_master
.L116:
	mov	r3, #0
	ldr	r2, .L119
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC36
	.word	.LC28
	.word	.LC29
	.word	524290
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7388, %object
	.size	__PRETTY_FUNCTION__.7388, 12
__PRETTY_FUNCTION__.7388:
	.ascii	"atsock_save\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7397, %object
	.size	__PRETTY_FUNCTION__.7397, 13
__PRETTY_FUNCTION__.7397:
	.ascii	"atsock_erase\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7408, %object
	.size	__PRETTY_FUNCTION__.7408, 11
__PRETTY_FUNCTION__.7408:
	.ascii	"run_master\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7442, %object
	.size	__PRETTY_FUNCTION__.7442, 10
__PRETTY_FUNCTION__.7442:
	.ascii	"run_slave\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
