	.file	"768500.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: dnstest hostname [hostname...]\n"
.LC1:
	.string	"getaddrinfo: %s\n"
.LC2:
	.string	"Resolved: %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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L11
.L2:
	mov	DWORD PTR -160[rbp], 1
	jmp	.L4
.L10:
	lea	rax, -112[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 1
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, -152[rbp]
	lea	rdx, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -156[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	eax, 2
	jmp	.L11
.L5:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -144[rbp], rax
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L7
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, 4
	mov	QWORD PTR -136[rbp], rax
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	QWORD PTR -136[rbp], rax
.L8:
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -136[rbp]
	mov	ecx, 46
	mov	edi, eax
	call	inet_ntop@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -144[rbp], rax
.L6:
	cmp	QWORD PTR -144[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	add	DWORD PTR -160[rbp], 1
.L4:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L10
	mov	eax, 0
.L11:
	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	"768500.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: dnstest hostname [hostname...]\012\000"
	.align	2
.LC1:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC2:
	.ascii	"Resolved: %s\012\000"
	.align	2
.LC3:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L13+8
	bl	fwrite
	mov	r3, #1
	b	.L11
.L2:
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L4
.L10:
	sub	r3, fp, #96
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r0, [r3]
	sub	r3, fp, #124
	sub	r2, fp, #96
	mov	r1, #0
	bl	getaddrinfo
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L13+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-108]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #2
	b	.L11
.L5:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+16
	bl	printf
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-120]
	b	.L6
.L9:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L7
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-112]
	b	.L8
.L7:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	str	r3, [fp, #-112]
.L8:
	ldr	r3, [fp, #-120]
	ldr	r0, [r3, #4]
	sub	r2, fp, #64
	mov	r3, #46
	ldr	r1, [fp, #-112]
	bl	inet_ntop
	sub	r3, fp, #64
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-120]
.L6:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L4:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
.L11:
	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	.LC3
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
