	.file	"613752.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s google.com\n"
.LC1:
	.string	"getaddrinfo: %s\n"
.LC2:
	.string	"IP addresses for %s:\n\n"
.LC3:
	.string	"IPv4"
.LC4:
	.string	"IPv6"
.LC5:
	.string	"IPv?"
.LC6:
	.string	"Error in getnameinfo: %s\n"
.LC7:
	.string	"  %s: %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, 1136
	mov	DWORD PTR -1124[rbp], edi
	mov	QWORD PTR -1136[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1124[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -1088[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1084[rbp], 0
	mov	DWORD PTR -1080[rbp], 1
	mov	DWORD PTR -1088[rbp], 1
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1112[rbp]
	lea	rdx, -1088[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -1120[rbp], eax
	cmp	DWORD PTR -1120[rbp], 0
	je	.L3
	mov	eax, DWORD PTR -1120[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1112[rbp]
	mov	QWORD PTR -1104[rbp], rax
	jmp	.L4
.L10:
	mov	QWORD PTR -1096[rbp], 0
	mov	rax, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L5
	lea	rax, .LC3[rip]
	mov	QWORD PTR -1096[rbp], rax
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 10
	jne	.L7
	lea	rax, .LC4[rip]
	mov	QWORD PTR -1096[rbp], rax
	jmp	.L6
.L7:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -1096[rbp], rax
.L6:
	mov	rax, QWORD PTR -1104[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1104[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 -1116[rbp], eax
	cmp	DWORD PTR -1116[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -1116[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L8:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -1104[rbp], rax
.L4:
	cmp	QWORD PTR -1104[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"613752.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s google.com\012\000"
	.align	2
.LC1:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC2:
	.ascii	"IP addresses for %s:\012\012\000"
	.align	2
.LC3:
	.ascii	"IPv4\000"
	.align	2
.LC4:
	.ascii	"IPv6\000"
	.align	2
.LC5:
	.ascii	"IPv?\000"
	.align	2
.LC6:
	.ascii	"Error in getnameinfo: %s\012\000"
	.align	2
.LC7:
	.ascii	"  %s: %s\012\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 = 1096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1104
	sub	sp, sp, #12
	str	r0, [fp, #-1104]
	str	r1, [fp, #-1108]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1104]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1072]
	mov	r3, #1
	str	r3, [fp, #-1068]
	mov	r3, #1
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1108]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #8
	mov	r1, #0
	bl	getaddrinfo
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L13+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-1084]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-1108]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+16
	bl	printf
	ldr	r3, [fp, #-1096]
	str	r3, [fp, #-1092]
	b	.L4
.L10:
	mov	r3, #0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1092]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L5
	ldr	r3, .L13+20
	str	r3, [fp, #-1088]
	b	.L6
.L5:
	ldr	r3, [fp, #-1092]
	ldr	r3, [r3, #4]
	cmp	r3, #10
	bne	.L7
	ldr	r3, .L13+24
	str	r3, [fp, #-1088]
	b	.L6
.L7:
	ldr	r3, .L13+28
	str	r3, [fp, #-1088]
.L6:
	ldr	r3, [fp, #-1092]
	ldr	r0, [r3, #20]
	ldr	r3, [fp, #-1092]
	ldr	r1, [r3, #16]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	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, .L13+32
	bl	getnameinfo
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L13+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-1080]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+36
	mov	r0, r4
	bl	fprintf
	b	.L9
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-1088]
	ldr	r0, .L13+40
	bl	printf
.L9:
	ldr	r3, [fp, #-1092]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-1092]
.L4:
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-1096]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1025
	.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
