	.file	"968632.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"getifaddrs"
.LC1:
	.string	"lo"
.LC2:
	.string	"getnameinfo() failed: %s\n"
.LC3:
	.string	"%-16s %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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1048[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -1056[rbp], eax
	cmp	DWORD PTR -1056[rbp], 2
	je	.L7
	cmp	DWORD PTR -1056[rbp], 10
	jne	.L15
.L7:
	cmp	DWORD PTR -1056[rbp], 2
	jne	.L8
	mov	esi, 16
	jmp	.L9
.L8:
	mov	esi, 28
.L9:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -1040[rbp]
	sub	rsp, 8
	push	1
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 1025
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -1052[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	nop
	jmp	.L11
.L15:
	nop
.L11:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1048[rbp], rax
.L3:
	mov	rax, QWORD PTR -1048[rbp]
	test	rax, rax
	jne	.L12
	mov	edi, 0
	call	exit@PLT
	.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	"968632.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"getifaddrs\000"
	.align	2
.LC1:
	.ascii	"lo\000"
	.align	2
.LC2:
	.ascii	"getnameinfo() failed: %s\012\000"
	.align	2
.LC3:
	.ascii	"%-16s %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	getifaddrs
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3, #4]
	ldr	r1, .L16+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3, #12]
	ldrh	r3, [r3]
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #2
	beq	.L7
	ldr	r3, [fp, #-1044]
	cmp	r3, #10
	bne	.L15
.L7:
	ldr	r3, [fp, #-1048]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-1044]
	cmp	r3, #2
	bne	.L8
	mov	r1, #16
	b	.L9
.L8:
	mov	r1, #28
.L9:
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #8
	mov	r3, #1
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L16+12
	bl	getnameinfo
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	beq	.L10
	ldr	r0, [fp, #-1040]
	bl	gai_strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-1048]
	ldr	r1, [r3, #4]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r0, .L16+20
	bl	printf
	b	.L11
.L14:
	nop
	b	.L11
.L15:
	nop
.L11:
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3]
	str	r3, [fp, #-1048]
.L3:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L12
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	1025
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
