	.file	"886509.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"sock_recv.txt"
.LC1:
	.string	"open file error."
.LC2:
	.string	"r+"
.LC3:
	.string	"HI!\n"
.LC4:
	.string	"the_stack_data/886509.c"
.LC5:
	.string	"send(s, \"HI!\\n\", 4, 0) == 4"
.LC6:
	.string	"recv(s, buffer, 1024, 0) == 5"
.LC7:
	.string	"You wrote: %s\n"
	.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, 1088
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1076[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -1076[rbp]
	add	eax, 97
	mov	edx, eax
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	mov	BYTE PTR -1045[rbp+rax], dl
	add	DWORD PTR -1076[rbp], 1
.L2:
	cmp	DWORD PTR -1076[rbp], 4
	jle	.L3
	mov	esi, 66
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1072[rbp], eax
	cmp	DWORD PTR -1072[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rcx, -1045[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 5
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -1072[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -1072[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -1072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1068[rbp], eax
	mov	eax, DWORD PTR -1068[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -1056[rbp], rax
	mov	eax, DWORD PTR -1068[rbp]
	mov	ecx, 0
	mov	edx, 4
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	send@PLT
	cmp	rax, 4
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L5:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	cmp	rax, 5
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L6:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"886509.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sock_recv.txt\000"
	.align	2
.LC1:
	.ascii	"open file error.\000"
	.align	2
.LC2:
	.ascii	"r+\000"
	.align	2
.LC3:
	.ascii	"HI!\012\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/886509.c\000"
	.align	2
.LC5:
	.ascii	"send(s, \"HI!\\n\", 4, 0) == 4\000"
	.align	2
.LC6:
	.ascii	"recv(s, buffer, 1024, 0) == 5\000"
	.align	2
.LC7:
	.ascii	"You wrote: %s\012\000"
	.align	2
.LC8:
	.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
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1060]
	b	.L2
.L3:
	ldr	r3, [fp, #-1060]
	and	r3, r3, #255
	add	r3, r3, #97
	and	r1, r3, #255
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, [fp, #-1060]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1060]
.L2:
	ldr	r3, [fp, #-1060]
	cmp	r3, #4
	ble	.L3
	mov	r1, #66
	ldr	r0, .L9+4
	bl	open
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L9+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #5
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	write
	ldr	r1, .L9+12
	ldr	r0, [fp, #-1056]
	bl	fdopen
	str	r0, [fp, #-1052]
	ldr	r0, [fp, #-1052]
	bl	rewind
	mov	r1, #0
	ldr	r0, [fp, #-1056]
	bl	dup2
	ldr	r0, [fp, #-1056]
	bl	close
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1048]
	ldr	r1, .L9+12
	ldr	r0, [fp, #-1048]
	bl	fdopen
	str	r0, [fp, #-1044]
	mov	r3, #0
	mov	r2, #4
	ldr	r1, .L9+16
	ldr	r0, [fp, #-1048]
	bl	send
	mov	r3, r0
	cmp	r3, #4
	beq	.L5
	ldr	r3, .L9+20
	mov	r2, #33
	ldr	r1, .L9+24
	ldr	r0, .L9+28
	bl	__assert_fail
.L5:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1048]
	bl	recv
	mov	r3, r0
	cmp	r3, #5
	beq	.L6
	ldr	r3, .L9+20
	mov	r2, #34
	ldr	r1, .L9+24
	ldr	r0, .L9+32
	bl	__assert_fail
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L9+36
	bl	printf
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5986
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5986, %object
	.size	__PRETTY_FUNCTION__.5986, 5
__PRETTY_FUNCTION__.5986:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
