	.file	"155538.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"local-stream"
.LC1:
	.string	"the_stack_data/155538.c"
	.align 8
.LC2:
	.string	"socket(PF_LOCAL, SOCK_STREAM, 0) == 0"
	.align 8
.LC3:
	.string	"bind(0, (struct sockaddr *) &addr, len) == 0"
.LC4:
	.string	"listen(0, 5) == 0"
	.align 8
.LC5:
	.string	"getsockname(0, (struct sockaddr *) &addr, &len) == 0"
.LC6:
	.string	"pid >= 0"
	.align 8
.LC7:
	.string	"accept(0, (struct sockaddr *) &addr, &len) == 1"
.LC8:
	.string	"close(0) == 0"
	.align 8
.LC9:
	.string	"waitpid(pid, &status, 0) == pid"
.LC10:
	.string	"status == 0"
.LC11:
	.string	"close(1) == 0"
	.align 8
.LC12:
	.string	"socket(PF_LOCAL, SOCK_STREAM, 0) == 1"
	.align 8
.LC13:
	.string	"connect(1, (struct sockaddr *) &addr, len) == 0"
	.text
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -128[rbp], 1
	movabs	rax, 8391100474234990444
	mov	edx, 1835099506
	mov	QWORD PTR -126[rbp], rax
	mov	QWORD PTR -118[rbp], rdx
	mov	QWORD PTR -110[rbp], 0
	mov	QWORD PTR -102[rbp], 0
	mov	QWORD PTR -94[rbp], 0
	mov	QWORD PTR -86[rbp], 0
	mov	QWORD PTR -78[rbp], 0
	mov	QWORD PTR -70[rbp], 0
	mov	QWORD PTR -62[rbp], 0
	mov	QWORD PTR -54[rbp], 0
	mov	QWORD PTR -46[rbp], 0
	mov	QWORD PTR -38[rbp], 0
	mov	QWORD PTR -30[rbp], 0
	mov	DWORD PTR -22[rbp], 0
	mov	DWORD PTR -140[rbp], 15
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	mov	edi, 0
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	test	eax, eax
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 22
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	bind@PLT
	test	eax, eax
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 23
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L3:
	mov	esi, 5
	mov	edi, 0
	call	listen@PLT
	test	eax, eax
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 24
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L4:
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -140[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getsockname@PLT
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 27
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L5:
	call	fork@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 30
	lea	rsi, .LC1[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L6:
	cmp	DWORD PTR -132[rbp], 0
	je	.L7
	lea	rdx, -140[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	accept@PLT
	cmp	eax, 1
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC1[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L8:
	mov	edi, 0
	call	close@PLT
	test	eax, eax
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L9:
	lea	rcx, -136[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -132[rbp], eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 36
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L10:
	mov	eax, DWORD PTR -136[rbp]
	test	eax, eax
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 37
	lea	rsi, .LC1[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L11:
	mov	edi, 1
	call	close@PLT
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 38
	lea	rsi, .LC1[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L7:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	cmp	eax, 1
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 40
	lea	rsi, .LC1[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L14:
	mov	edi, 0
	call	close@PLT
	test	eax, eax
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 41
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L15:
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	connect@PLT
	test	eax, eax
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC1[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L16:
	mov	edi, 1
	call	close@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 43
	lea	rsi, .LC1[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, 0
	jmp	.L19
.L13:
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"155538.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"local-stream\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/155538.c\000"
	.align	2
.LC3:
	.ascii	"socket(PF_LOCAL, SOCK_STREAM, 0) == 0\000"
	.align	2
.LC4:
	.ascii	"bind(0, (struct sockaddr *) &addr, len) == 0\000"
	.align	2
.LC5:
	.ascii	"listen(0, 5) == 0\000"
	.align	2
.LC6:
	.ascii	"getsockname(0, (struct sockaddr *) &addr, &len) == "
	.ascii	"0\000"
	.align	2
.LC7:
	.ascii	"pid >= 0\000"
	.align	2
.LC8:
	.ascii	"accept(0, (struct sockaddr *) &addr, &len) == 1\000"
	.align	2
.LC9:
	.ascii	"close(0) == 0\000"
	.align	2
.LC10:
	.ascii	"waitpid(pid, &status, 0) == pid\000"
	.align	2
.LC11:
	.ascii	"status == 0\000"
	.align	2
.LC12:
	.ascii	"close(1) == 0\000"
	.align	2
.LC13:
	.ascii	"socket(PF_LOCAL, SOCK_STREAM, 0) == 1\000"
	.align	2
.LC14:
	.ascii	"connect(1, (struct sockaddr *) &addr, len) == 0\000"
	.align	2
.LC0:
	.short	1
	.ascii	"local-stream\000"
	.space	95
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L21+4
	sub	r3, fp, #120
	mov	r1, r2
	mov	r2, #110
	mov	r0, r3
	bl	memcpy
	mov	r3, #15
	str	r3, [fp, #-132]
	ldr	r0, .L21+8
	bl	unlink
	mov	r0, #0
	bl	close
	mov	r0, #1
	bl	close
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L21+12
	mov	r2, #22
	ldr	r1, .L21+16
	ldr	r0, .L21+20
	bl	__assert_fail
.L2:
	ldr	r2, [fp, #-132]
	sub	r3, fp, #120
	mov	r1, r3
	mov	r0, #0
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L21+12
	mov	r2, #23
	ldr	r1, .L21+16
	ldr	r0, .L21+24
	bl	__assert_fail
.L3:
	mov	r1, #5
	mov	r0, #0
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L21+12
	mov	r2, #24
	ldr	r1, .L21+16
	ldr	r0, .L21+28
	bl	__assert_fail
.L4:
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #132
	sub	r3, fp, #120
	mov	r1, r3
	mov	r0, #0
	bl	getsockname
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L21+12
	mov	r2, #27
	ldr	r1, .L21+16
	ldr	r0, .L21+32
	bl	__assert_fail
.L5:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L6
	ldr	r3, .L21+12
	mov	r2, #30
	ldr	r1, .L21+16
	ldr	r0, .L21+36
	bl	__assert_fail
.L6:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L7
	sub	r2, fp, #132
	sub	r3, fp, #120
	mov	r1, r3
	mov	r0, #0
	bl	accept
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	ldr	r3, .L21+12
	mov	r2, #33
	ldr	r1, .L21+16
	ldr	r0, .L21+40
	bl	__assert_fail
.L8:
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L21+12
	mov	r2, #34
	ldr	r1, .L21+16
	ldr	r0, .L21+44
	bl	__assert_fail
.L9:
	sub	r3, fp, #128
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	waitpid
	mov	r2, r0
	ldr	r3, [fp, #-124]
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L21+12
	mov	r2, #36
	ldr	r1, .L21+16
	ldr	r0, .L21+48
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L21+12
	mov	r2, #37
	ldr	r1, .L21+16
	ldr	r0, .L21+52
	bl	__assert_fail
.L11:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L21+12
	mov	r2, #38
	ldr	r1, .L21+16
	ldr	r0, .L21+56
	bl	__assert_fail
.L7:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	ldr	r3, .L21+12
	mov	r2, #40
	ldr	r1, .L21+16
	ldr	r0, .L21+60
	bl	__assert_fail
.L14:
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L21+12
	mov	r2, #41
	ldr	r1, .L21+16
	ldr	r0, .L21+44
	bl	__assert_fail
.L15:
	ldr	r2, [fp, #-132]
	sub	r3, fp, #120
	mov	r1, r3
	mov	r0, #1
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L21+12
	mov	r2, #42
	ldr	r1, .L21+16
	ldr	r0, .L21+64
	bl	__assert_fail
.L16:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L21+12
	mov	r2, #43
	ldr	r1, .L21+16
	ldr	r0, .L21+56
	bl	__assert_fail
.L17:
	mov	r3, #0
	b	.L19
.L13:
	ldr	r0, .L21+8
	bl	unlink
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	__PRETTY_FUNCTION__.5816
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5816, %object
	.size	__PRETTY_FUNCTION__.5816, 5
__PRETTY_FUNCTION__.5816:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
