	.file	"194624.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"no-loopback"
.LC1:
	.string	"usage: %s [--no-loopback]\n"
.LC2:
	.string	""
.LC3:
	.string	"getifaddrs"
.LC4:
	.string	"inet_ntop"
	.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
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -216[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, -216[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -120[rbp], 1
	jmp	.L2
.L5:
	cmp	DWORD PTR -212[rbp], 0
	jne	.L3
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L24
.L2:
	lea	rdx, -144[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L5
	lea	rax, -200[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], 0
	je	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -184[rbp], rax
	mov	eax, DWORD PTR -216[rbp]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 16[rax]
	and	eax, 8
	test	eax, eax
	je	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	mov	BYTE PTR -218[rbp], al
	and	BYTE PTR -218[rbp], 1
	cmp	QWORD PTR -184[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	eax, 2
	je	.L12
	cmp	eax, 10
	je	.L13
	jmp	.L22
.L12:
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -160[rbp], rax
	cmp	BYTE PTR -218[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	shr	eax, 24
	mov	BYTE PTR -217[rbp], al
	cmp	BYTE PTR -217[rbp], 127
	je	.L27
.L15:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 4
	mov	QWORD PTR -192[rbp], rax
	jmp	.L16
.L13:
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L28
	cmp	BYTE PTR -218[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -168[rbp]
	mov	ebx, DWORD PTR 12[rax]
	mov	edi, 1
	call	htonl@PLT
	cmp	ebx, eax
	jne	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	eax, 0
.L20:
	test	eax, eax
	jne	.L29
.L18:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	QWORD PTR -192[rbp], rax
	nop
.L16:
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	lea	rdx, -80[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	ecx, 46
	mov	edi, eax
	call	inet_ntop@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L21
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L24
.L21:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L22
.L26:
	nop
	jmp	.L22
.L27:
	nop
	jmp	.L22
.L28:
	nop
	jmp	.L22
.L29:
	nop
.L22:
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -200[rbp], rax
.L7:
	mov	rax, QWORD PTR -200[rbp]
	test	rax, rax
	jne	.L23
	mov	eax, 0
.L24:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	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	"194624.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"no-loopback\000"
	.align	2
.LC1:
	.ascii	"usage: %s [--no-loopback]\012\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"getifaddrs\000"
	.align	2
.LC4:
	.ascii	"inet_ntop\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-136]
	sub	r3, fp, #96
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L30+4
	str	r3, [fp, #-96]
	sub	r3, fp, #136
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L2
.L5:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L3
	b	.L2
.L3:
	ldr	r3, .L30+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L30+12
	bl	fprintf
	mov	r3, #1
	b	.L24
.L2:
	sub	r3, fp, #96
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L30+16
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-152]
	bl	getopt_long
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L5
	sub	r3, fp, #140
	mov	r0, r3
	bl	getifaddrs
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L30+20
	bl	perror
	mov	r3, #1
	b	.L24
.L23:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #8]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L8
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	strb	r3, [fp, #-142]
	ldrb	r3, [fp, #-142]
	and	r3, r3, #1
	strb	r3, [fp, #-142]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-120]
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L12
	cmp	r3, #10
	beq	.L13
	b	.L22
.L12:
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-108]
	ldrb	r3, [fp, #-142]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	lsr	r3, r3, #24
	strb	r3, [fp, #-141]
	ldrb	r3, [fp, #-141]	@ zero_extendqisi2
	cmp	r3, #127
	beq	.L27
.L15:
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	str	r3, [fp, #-132]
	b	.L16
.L13:
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L28
	ldrb	r3, [fp, #-142]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-112]
	ldr	r4, [r3, #12]
	mov	r0, #1
	bl	htonl
	mov	r3, r0
	cmp	r4, r3
	bne	.L19
	mov	r3, #1
	b	.L20
.L19:
	mov	r3, #0
.L20:
	cmp	r3, #0
	bne	.L29
.L18:
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	str	r3, [fp, #-132]
	nop
.L16:
	ldr	r3, [fp, #-120]
	ldrh	r3, [r3]
	mov	r0, r3
	sub	r2, fp, #64
	mov	r3, #46
	ldr	r1, [fp, #-132]
	bl	inet_ntop
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L30+24
	bl	perror
	mov	r3, #1
	b	.L24
.L21:
	ldr	r0, [fp, #-100]
	bl	puts
	b	.L22
.L26:
	nop
	b	.L22
.L27:
	nop
	b	.L22
.L28:
	nop
	b	.L22
.L29:
	nop
.L22:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	str	r3, [fp, #-140]
.L7:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
.L24:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
