	.file	"146658.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"1234"
.LC1:
	.string	"Could not resolve addr"
.LC2:
	.string	"bind"
.LC3:
	.string	"recving failed"
.LC4:
	.string	"got msg: %zd  flags %d\n"
.LC5:
	.string	"control: %zu\n"
.LC6:
	.string	"%x "
.LC7:
	.string	"{%zu, %s}, "
	.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, 944
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -920[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -912[rbp], rax
	mov	QWORD PTR -928[rbp], 0
	lea	rax, -560[rbp]
	mov	QWORD PTR -784[rbp], rax
	mov	QWORD PTR -776[rbp], 548
	lea	rax, -768[rbp]
	mov	QWORD PTR -848[rbp], rax
	mov	DWORD PTR -840[rbp], 128
	lea	rax, -784[rbp]
	mov	QWORD PTR -832[rbp], rax
	mov	QWORD PTR -824[rbp], 1
	lea	rax, -640[rbp]
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], 72
	lea	rax, -896[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -892[rbp], 0
	mov	DWORD PTR -888[rbp], 2
	mov	DWORD PTR -884[rbp], 0
	mov	DWORD PTR -896[rbp], 33
	lea	rcx, -928[rbp]
	lea	rdx, -896[rbp]
	mov	rsi, QWORD PTR -912[rbp]
	mov	rax, QWORD PTR -920[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -936[rbp], eax
	cmp	DWORD PTR -936[rbp], 0
	je	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -928[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -928[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -928[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -932[rbp], eax
	mov	DWORD PTR -944[rbp], 1
	lea	rdx, -944[rbp]
	mov	eax, DWORD PTR -932[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	rax, QWORD PTR -928[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -928[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -932[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rcx, -848[rbp]
	mov	eax, DWORD PTR -932[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	recvmsg@PLT
	mov	QWORD PTR -904[rbp], rax
	cmp	QWORD PTR -904[rbp], 0
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L4:
	mov	edx, DWORD PTR -800[rbp]
	mov	rax, QWORD PTR -904[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -808[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -940[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR -848[rbp]
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -940[rbp], 1
.L5:
	mov	edx, DWORD PTR -840[rbp]
	mov	eax, DWORD PTR -940[rbp]
	cmp	edx, eax
	ja	.L6
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -940[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 784
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 776
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -940[rbp], 1
.L7:
	mov	eax, DWORD PTR -940[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -824[rbp]
	cmp	rdx, rax
	jb	.L8
	mov	eax, DWORD PTR -932[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"146658.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1234\000"
	.align	2
.LC1:
	.ascii	"Could not resolve addr\000"
	.align	2
.LC2:
	.ascii	"bind\000"
	.align	2
.LC3:
	.ascii	"recving failed\000"
	.align	2
.LC4:
	.ascii	"got msg: %zd  flags %d\012\000"
	.align	2
.LC5:
	.ascii	"control: %zu\012\000"
	.align	2
.LC6:
	.ascii	"%x \000"
	.align	2
.LC7:
	.ascii	"{%zu, %s}, \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 = 856
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #864
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-844]
	ldr	r3, .L11+4
	str	r3, [fp, #-840]
	mov	r3, #0
	str	r3, [fp, #-852]
	sub	r3, fp, #556
	str	r3, [fp, #-764]
	mov	r3, #548
	str	r3, [fp, #-760]
	sub	r3, fp, #756
	str	r3, [fp, #-824]
	mov	r3, #128
	str	r3, [fp, #-820]
	sub	r3, fp, #764
	str	r3, [fp, #-816]
	mov	r3, #1
	str	r3, [fp, #-812]
	sub	r3, fp, #628
	str	r3, [fp, #-808]
	mov	r3, #72
	str	r3, [fp, #-804]
	sub	r3, fp, #796
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-792]
	mov	r3, #2
	str	r3, [fp, #-788]
	mov	r3, #0
	str	r3, [fp, #-784]
	mov	r3, #33
	str	r3, [fp, #-796]
	sub	r3, fp, #852
	sub	r2, fp, #796
	ldr	r1, [fp, #-840]
	ldr	r0, [fp, #-844]
	bl	getaddrinfo
	str	r0, [fp, #-836]
	ldr	r3, [fp, #-836]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L11+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-852]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-852]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-852]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-832]
	mov	r3, #1
	str	r3, [fp, #-856]
	sub	r3, fp, #856
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-832]
	bl	setsockopt
	ldr	r3, [fp, #-852]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-852]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-832]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L11+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #824
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-832]
	bl	recvmsg
	str	r0, [fp, #-828]
	ldr	r3, [fp, #-828]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+16
	bl	perror
.L4:
	ldr	r3, [fp, #-800]
	mov	r2, r3
	ldr	r1, [fp, #-828]
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, [fp, #-804]
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-848]
	b	.L5
.L6:
	ldr	r2, [fp, #-824]
	ldr	r3, [fp, #-848]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, [fp, #-848]
	add	r3, r3, #1
	str	r3, [fp, #-848]
.L5:
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bhi	.L6
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-848]
	b	.L7
.L8:
	ldr	r3, [fp, #-848]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-756]
	ldr	r3, [fp, #-848]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-760]
	mov	r2, r3
	ldr	r0, .L11+32
	bl	printf
	ldr	r3, [fp, #-848]
	add	r3, r3, #1
	str	r3, [fp, #-848]
.L7:
	ldr	r2, [fp, #-812]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bhi	.L8
	ldr	r0, [fp, #-832]
	bl	close
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
