	.file	"90762863.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Init failed. "
.LC1:
	.string	"%s\t"
.LC2:
	.string	"ipv4"
.LC3:
	.string	"ipv6"
.LC4:
	.string	"\t%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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L13
.L2:
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L4
.L12:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], 2
	je	.L6
	cmp	DWORD PTR -136[rbp], 10
	jne	.L7
.L6:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -136[rbp], 2
	jne	.L8
	lea	rax, .LC2[rip]
	jmp	.L9
.L8:
	lea	rax, .LC3[rip]
.L9:
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -136[rbp], 2
	jne	.L10
	mov	eax, 16
	jmp	.L11
.L10:
	mov	eax, 28
.L11:
	mov	DWORD PTR -132[rbp], eax
	mov	esi, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -112[rbp]
	sub	rsp, 8
	push	1
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 100
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
.L4:
	cmp	QWORD PTR -120[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	freeifaddrs@PLT
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"90762863.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Init failed. \000"
	.align	2
.LC1:
	.ascii	"%s\011\000"
	.align	2
.LC2:
	.ascii	"ipv4\000"
	.align	2
.LC3:
	.ascii	"ipv6\000"
	.align	2
.LC4:
	.ascii	"\011%s\012\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 = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #124
	mov	r0, r3
	bl	getifaddrs
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L15+4
	bl	puts
	mvn	r3, #0
	b	.L13
.L2:
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-120]
	b	.L4
.L12:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	str	r3, [fp, #-120]
	b	.L4
.L5:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #12]
	ldrh	r3, [r3]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #2
	beq	.L6
	ldr	r3, [fp, #-116]
	cmp	r3, #10
	bne	.L7
.L6:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, [fp, #-116]
	cmp	r3, #2
	bne	.L8
	ldr	r3, .L15+12
	b	.L9
.L8:
	ldr	r3, .L15+16
.L9:
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, [fp, #-116]
	cmp	r3, #2
	bne	.L10
	mov	r3, #16
	b	.L11
.L10:
	mov	r3, #28
.L11:
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-120]
	ldr	r0, [r3, #12]
	ldr	r1, [fp, #-112]
	sub	r2, fp, #108
	mov	r3, #1
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #100
	bl	getnameinfo
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
.L7:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	str	r3, [fp, #-120]
.L4:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	freeifaddrs
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC0
	.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
