	.file	"1222887.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"2233"
.LC1:
	.string	"getaddrinfo"
.LC2:
	.string	"socket"
.LC3:
	.string	"bind"
.LC4:
	.string	"listen"
.LC5:
	.string	"no local addr"
.LC6:
	.string	"inet_ntop"
.LC7:
	.string	"listening on %.*s"
	.align 8
.LC8:
	.string	"listening on unknown addrinfo family"
.LC9:
	.string	"accept"
	.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -236[rbp], 2
	mov	DWORD PTR -232[rbp], 1
	mov	QWORD PTR -264[rbp], 0
	lea	rdx, -264[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L2
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L2:
	mov	QWORD PTR -256[rbp], 0
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -256[rbp], rax
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -272[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -272[rbp]
	mov	esi, 0
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -272[rbp]
	mov	edi, eax
	call	close@PLT
	nop
.L5:
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -256[rbp], rax
.L3:
	cmp	QWORD PTR -256[rbp], 0
	jne	.L7
	cmp	QWORD PTR -256[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L8:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L9
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	lea	rax, -64[rbp]
	lea	rdx, -192[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	test	rax, rax
	jne	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L12
.L10:
	lea	rax, -64[rbp]
	mov	rdx, rax
	mov	esi, 16
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	warnx@PLT
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 10
	jne	.L13
	mov	rax, QWORD PTR -256[rbp]
	mov	rcx, QWORD PTR 24[rax]
	lea	rax, -192[rbp]
	mov	edx, 28
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -64[rbp]
	lea	rdx, -192[rbp]
	lea	rsi, 8[rdx]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	test	rax, rax
	jne	.L14
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L12
.L14:
	lea	rax, -64[rbp]
	mov	rdx, rax
	mov	esi, 46
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	warnx@PLT
	jmp	.L12
.L13:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	warnx@PLT
.L12:
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	lea	rax, -192[rbp]
	mov	QWORD PTR -248[rbp], rax
.L16:
	mov	DWORD PTR -276[rbp], 128
	lea	rdx, -276[rbp]
	mov	rcx, QWORD PTR -248[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 100
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 92
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 71
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 112
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 113
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 64
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 95
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 101
	jne	.L19
	jmp	.L16
.L19:
	lea	rsi, .LC9[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L17:
	mov	eax, DWORD PTR -272[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"1222887.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"2233\000"
	.align	2
.LC1:
	.ascii	"getaddrinfo\000"
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"bind\000"
	.align	2
.LC4:
	.ascii	"listen\000"
	.align	2
.LC5:
	.ascii	"no local addr\000"
	.align	2
.LC6:
	.ascii	"inet_ntop\000"
	.align	2
.LC7:
	.ascii	"listening on %.*s\000"
	.align	2
.LC8:
	.ascii	"listening on unknown addrinfo family\000"
	.align	2
.LC9:
	.ascii	"accept\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #216
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-216]
	mov	r3, #2
	str	r3, [fp, #-212]
	mov	r3, #1
	str	r3, [fp, #-208]
	mov	r3, #0
	str	r3, [fp, #-240]
	sub	r3, fp, #240
	sub	r2, fp, #216
	ldr	r1, .L22+4
	mov	r0, #0
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L22+8
	mov	r0, #1
	bl	errx
.L2:
	mov	r3, #0
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-228]
	b	.L3
.L7:
	ldr	r3, [fp, #-228]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-228]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L22+12
	bl	warn
	b	.L5
.L4:
	ldr	r3, [fp, #-228]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-232]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L22+16
	bl	warn
	ldr	r0, [fp, #-232]
	bl	close
	b	.L5
.L6:
	mov	r1, #0
	ldr	r0, [fp, #-232]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L22+20
	bl	warn
	ldr	r0, [fp, #-232]
	bl	close
	nop
.L5:
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-228]
.L3:
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-240]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r1, .L22+24
	mov	r0, #1
	bl	errx
.L8:
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-228]
	ldr	r1, [r3, #20]
	sub	r3, fp, #184
	mov	r2, #16
	mov	r0, r3
	bl	memcpy
	sub	r2, fp, #56
	sub	r3, fp, #184
	add	r1, r3, #4
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L22+28
	bl	warn
	b	.L12
.L10:
	sub	r3, fp, #56
	mov	r2, r3
	mov	r1, #16
	ldr	r0, .L22+32
	bl	warnx
	b	.L12
.L9:
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #4]
	cmp	r3, #10
	bne	.L13
	ldr	r3, [fp, #-228]
	ldr	r1, [r3, #20]
	sub	r3, fp, #184
	mov	r2, #28
	mov	r0, r3
	bl	memcpy
	sub	r2, fp, #56
	sub	r3, fp, #184
	add	r1, r3, #8
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L22+28
	bl	warn
	b	.L12
.L14:
	sub	r3, fp, #56
	mov	r2, r3
	mov	r1, #46
	ldr	r0, .L22+32
	bl	warnx
	b	.L12
.L13:
	ldr	r0, .L22+36
	bl	warnx
.L12:
	ldr	r3, [fp, #-240]
	mov	r0, r3
	bl	freeaddrinfo
	sub	r3, fp, #184
	str	r3, [fp, #-224]
.L16:
	mov	r3, #128
	str	r3, [fp, #-236]
	sub	r3, fp, #236
	mov	r2, r3
	ldr	r1, [fp, #-224]
	ldr	r0, [fp, #-232]
	bl	accept
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmn	r3, #1
	bne	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #100
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #92
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #71
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #112
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #113
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #64
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #95
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #101
	bne	.L19
	b	.L16
.L19:
	ldr	r1, .L22+40
	mov	r0, #1
	bl	err
.L17:
	ldr	r0, [fp, #-232]
	bl	close
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
