	.file	"687974.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/687974.c"
.LC1:
	.string	"fd != -1"
.LC2:
	.string	"localhost"
.LC3:
	.string	"server != NULL"
	.align 8
.LC4:
	.string	"connect(fd, (const struct sockaddr*)&addr, sizeof(addr)) == 0"
.LC5:
	.string	"my pid is %d"
	.align 8
.LC6:
	.string	"write(fd, buf, sizeof(buf)) == sizeof(buf)"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 20
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	lea	rdi, .LC2[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 23
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L3:
	lea	rax, -64[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -64[rbp], 2
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -64[rbp]
	add	rcx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	edi, 42000
	call	htons@PLT
	mov	WORD PTR -62[rbp], ax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 30
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L4:
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -48[rbp]
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	esi, 32
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 32
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L5:
	mov	edi, 0
	call	exit@PLT
	.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	"687974.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/687974.c\000"
	.align	2
.LC1:
	.ascii	"fd != -1\000"
	.align	2
.LC2:
	.ascii	"localhost\000"
	.align	2
.LC3:
	.ascii	"server != NULL\000"
	.align	2
.LC4:
	.ascii	"connect(fd, (const struct sockaddr*)&addr, sizeof(a"
	.ascii	"ddr)) == 0\000"
	.align	2
.LC5:
	.ascii	"my pid is %d\000"
	.align	2
.LC6:
	.ascii	"write(fd, buf, sizeof(buf)) == sizeof(buf)\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L7+4
	mov	r2, #20
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	__assert_fail
.L2:
	ldr	r0, .L7+16
	bl	gethostbyname
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L7+4
	mov	r2, #23
	ldr	r1, .L7+8
	ldr	r0, .L7+20
	bl	__assert_fail
.L3:
	sub	r3, fp, #56
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-56]	@ movhi
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #56
	add	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	ldr	r0, .L7+24
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-54]	@ movhi
	sub	r3, fp, #56
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7+4
	mov	r2, #30
	ldr	r1, .L7+8
	ldr	r0, .L7+28
	bl	__assert_fail
.L4:
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #40
	ldr	r2, .L7+32
	mov	r1, #32
	bl	snprintf
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	write
	mov	r3, r0
	cmp	r3, #32
	beq	.L5
	ldr	r3, .L7+4
	mov	r2, #34
	ldr	r1, .L7+8
	ldr	r0, .L7+36
	bl	__assert_fail
.L5:
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC7
	.word	__PRETTY_FUNCTION__.6552
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	42000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6552, %object
	.size	__PRETTY_FUNCTION__.6552, 5
__PRETTY_FUNCTION__.6552:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
