	.file	"685162.c"
	.intel_syntax noprefix
	.text
	.globl	buildHeader
	.type	buildHeader, @function
buildHeader:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	getpid@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	WORD PTR [rdx], ax
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR 2[rax]
	and	edx, -2
	mov	BYTE PTR 2[rax], dl
	mov	edi, 1
	call	htons@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	WORD PTR 4[rdx], ax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	buildHeader, .-buildHeader
	.globl	buildQuestion
	.type	buildQuestion, @function
buildQuestion:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L4
.L6:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L5
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 1
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
.L4:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	rdx, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 1
	call	htons@PLT
	mov	WORD PTR [rbx], ax
	add	QWORD PTR -32[rbp], 2
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 1
	call	htons@PLT
	mov	WORD PTR [rbx], ax
	add	QWORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	buildQuestion, .-buildQuestion
	.globl	parseResponseHeader
	.type	parseResponseHeader, @function
parseResponseHeader:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	movzx	edx, WORD PTR [rdx]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR [rdx], ax
	add	QWORD PTR -24[rbp], 2
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -10[rbp], ax
	movzx	eax, WORD PTR -10[rbp]
	shr	ax, 15
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	mov	ecx, eax
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, -2
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	add	eax, eax
	sar	eax, 12
	and	eax, 15
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 15
	lea	ecx, [rax+rax]
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, -31
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 5
	sar	eax, 15
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	sal	eax, 5
	mov	ecx, eax
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, -33
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 6
	sar	eax, 15
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	sal	eax, 6
	mov	ecx, eax
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, -65
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 7
	sar	eax, 15
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	sal	eax, 7
	mov	ecx, eax
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, 127
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 8
	sar	eax, 15
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	mov	ecx, eax
	movzx	eax, BYTE PTR 3[rdx]
	and	eax, -2
	or	eax, ecx
	mov	BYTE PTR 3[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 9
	sar	eax, 13
	and	eax, 7
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 7
	lea	ecx, [rax+rax]
	movzx	eax, BYTE PTR 3[rdx]
	and	eax, -15
	or	eax, ecx
	mov	BYTE PTR 3[rdx], al
	movzx	eax, WORD PTR -10[rbp]
	sal	eax, 12
	sar	eax, 12
	and	eax, 15
	mov	rdx, QWORD PTR -8[rbp]
	sal	eax, 4
	mov	ecx, eax
	movzx	eax, BYTE PTR 3[rdx]
	and	eax, 15
	or	eax, ecx
	mov	BYTE PTR 3[rdx], al
	add	QWORD PTR -24[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	add	QWORD PTR -24[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	add	QWORD PTR -24[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	add	QWORD PTR -24[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 4[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 4[rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 6[rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 8[rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 10[rdx], ax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parseResponseHeader, .-parseResponseHeader
	.section	.rodata
.LC0:
	.string	"A"
.LC1:
	.string	"CNAME"
.LC2:
	.string	""
	.string	""
	.text
	.globl	parseType
	.type	parseType, @function
parseType:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	cmp	eax, 1
	je	.L11
	cmp	eax, 5
	je	.L12
	jmp	.L15
.L11:
	lea	rax, .LC0[rip]
	jmp	.L14
.L12:
	lea	rax, .LC1[rip]
	jmp	.L14
.L15:
	lea	rax, .LC2[rip]
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parseType, .-parseType
	.section	.rodata
.LC3:
	.string	"IN"
.LC4:
	.string	"CS"
.LC5:
	.string	"CH"
.LC6:
	.string	"HS"
	.text
	.globl	parseClass
	.type	parseClass, @function
parseClass:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	cmp	eax, 4
	je	.L17
	cmp	eax, 4
	jg	.L18
	cmp	eax, 3
	je	.L19
	cmp	eax, 3
	jg	.L18
	cmp	eax, 1
	je	.L20
	cmp	eax, 2
	je	.L21
	jmp	.L18
.L20:
	lea	rax, .LC3[rip]
	jmp	.L22
.L21:
	lea	rax, .LC4[rip]
	jmp	.L22
.L19:
	lea	rax, .LC5[rip]
	jmp	.L22
.L17:
	lea	rax, .LC6[rip]
	jmp	.L22
.L18:
	lea	rax, .LC2[rip]
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	parseClass, .-parseClass
	.globl	parseCompressString
	.type	parseCompressString, @function
parseCompressString:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L24
.L32:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	cmp	al, 3
	jne	.L25
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	parseCompressString
	mov	QWORD PTR -32[rbp], rax
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -32[rbp], 1
.L26:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L27
	add	QWORD PTR -56[rbp], 2
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L28
.L25:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -36[rbp], eax
	add	QWORD PTR -56[rbp], 1
	mov	DWORD PTR -40[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -56[rbp], 1
.L29:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	cmp	DWORD PTR -36[rbp], eax
	jg	.L30
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L34
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 46
.L24:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L32
	jmp	.L28
.L34:
	nop
.L28:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	parseCompressString, .-parseCompressString
	.globl	parseCompressStringWithLength
	.type	parseCompressStringWithLength, @function
parseCompressStringWithLength:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L36
.L44:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	cmp	al, 3
	jne	.L37
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	parseCompressString
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L38
.L39:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -36[rbp], 1
	add	QWORD PTR -24[rbp], 1
.L38:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L39
	add	QWORD PTR -56[rbp], 2
	add	DWORD PTR -40[rbp], 2
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
	add	QWORD PTR -56[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -56[rbp], 1
.L40:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cmp	DWORD PTR -28[rbp], eax
	jg	.L41
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	je	.L46
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 46
.L36:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L44
	jmp	.L43
.L46:
	nop
.L43:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	parseCompressStringWithLength, .-parseCompressStringWithLength
	.section	.rodata
.LC7:
	.string	"Name:%s\n"
.LC8:
	.string	"Type:%s\n"
.LC9:
	.string	"Class:%s\n"
	.text
	.globl	parseQuestions
	.type	parseQuestions, @function
parseQuestions:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edi, 1
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L48
.L55:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -60[rbp], eax
	add	QWORD PTR -48[rbp], 1
	mov	DWORD PTR -56[rbp], 0
	jmp	.L49
.L54:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L50
.L51:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -56[rbp], edx
	cdqe
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -48[rbp], 1
.L50:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	cmp	DWORD PTR -60[rbp], eax
	jg	.L51
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L58
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -60[rbp], eax
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -56[rbp], edx
	cdqe
	add	rax, rcx
	mov	BYTE PTR [rax], 46
.L49:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L54
	jmp	.L53
.L58:
	nop
.L53:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 8[rdx], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	eax, ax
	mov	edi, eax
	call	parseType
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -48[rbp], 2
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 10[rdx], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	parseClass
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -48[rbp], 2
.L48:
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -64[rbp], edx
	cmp	DWORD PTR -68[rbp], eax
	jg	.L55
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	parseQuestions, .-parseQuestions
	.section	.rodata
.LC10:
	.string	"%d"
	.text
	.globl	Int2String
	.type	Int2String, @function
Int2String:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Int2String, .-Int2String
	.globl	parseIpAddress
	.type	parseIpAddress, @function
parseIpAddress:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -44[rbp], ax
	mov	DWORD PTR -20[rbp], 0
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L62
.L65:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	mov	BYTE PTR -21[rbp], al
	movzx	eax, BYTE PTR -21[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	Int2String
	add	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
	movzx	eax, WORD PTR -44[rbp]
	cmp	DWORD PTR -20[rbp], eax
	je	.L67
	add	QWORD PTR -40[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 46
	add	QWORD PTR -16[rbp], 1
.L62:
	movzx	eax, WORD PTR -44[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L65
	jmp	.L64
.L67:
	nop
.L64:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	parseIpAddress, .-parseIpAddress
	.section	.rodata
.LC11:
	.string	"Time to live:%d\n"
.LC12:
	.string	"Data length:%d\n"
.LC13:
	.string	"Address:%s\n"
.LC14:
	.string	"CNAME:%s\n"
.LC15:
	.string	"-----------------"
	.text
	.globl	parseAnswers
	.type	parseAnswers, @function
parseAnswers:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L69
.L72:
	lea	rax, -48[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	edi, 1
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parseCompressString
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	add	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	WORD PTR 8[rdx], ax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	eax, ax
	mov	edi, eax
	call	parseType
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -96[rbp], 2
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	WORD PTR 10[rdx], ax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	parseClass
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -96[rbp], 2
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -96[rbp], 4
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	WORD PTR 16[rdx], ax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -96[rbp], 2
	mov	edi, 1
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 8[rax]
	cmp	ax, 1
	jne	.L70
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	parseIpAddress
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	eax, ax
	add	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L71
.L70:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 8[rax]
	cmp	ax, 5
	jne	.L71
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	edx, ax
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parseCompressStringWithLength
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 16[rax]
	movzx	eax, ax
	add	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L71:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L69:
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -68[rbp], edx
	cmp	DWORD PTR -84[rbp], eax
	jg	.L72
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	parseAnswers, .-parseAnswers
	.section	.rodata
.LC16:
	.string	"\350\257\267\350\276\223\345\205\245\350\246\201\350\247\243\346\236\220\347\232\204\345\237\237\345\220\215:"
.LC17:
	.string	"%s"
.LC18:
	.string	"\350\257\267\350\276\223\345\205\245dns\346\234\215\345\212\241\345\231\250:"
.LC19:
	.string	"socket error"
.LC20:
	.string	"Transcation ID:%xd\n"
.LC21:
	.string	"Questions:%d\n"
.LC22:
	.string	"Answers:%d\n"
.LC23:
	.string	"Authority rrs:%d\n"
.LC24:
	.string	"Additional rrs:%d\n"
.LC25:
	.string	"Queries:"
.LC26:
	.string	"Answers:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -2288[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rax, -2176[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -2064[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2340[rbp], eax
	mov	WORD PTR -2304[rbp], 2
	mov	edi, 53
	call	htons@PLT
	mov	WORD PTR -2302[rbp], ax
	lea	rax, -2176[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -2300[rbp], eax
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	buildHeader
	mov	QWORD PTR -2336[rbp], 12
	lea	rdx, -2064[rbp]
	mov	rax, QWORD PTR -2336[rbp]
	add	rdx, rax
	lea	rax, -2288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	buildQuestion
	mov	QWORD PTR -2328[rbp], rax
	mov	rdx, QWORD PTR -2336[rbp]
	mov	rax, QWORD PTR -2328[rbp]
	add	rdx, rax
	lea	rcx, -2304[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2340[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L75
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L75:
	mov	DWORD PTR -2344[rbp], 4
	lea	rcx, -2344[rbp]
	lea	rdx, -2304[rbp]
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -2340[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recvfrom@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	parseResponseHeader
	mov	QWORD PTR -2320[rbp], rax
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 4[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -2336[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 4[rax]
	movzx	eax, ax
	mov	rsi, rdx
	mov	edi, eax
	call	parseQuestions
	mov	QWORD PTR -2312[rbp], rax
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -2336[rbp]
	mov	rax, QWORD PTR -2312[rbp]
	add	rdx, rax
	lea	rax, -1040[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -2320[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	lea	rdx, -1040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	parseAnswers
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"685162.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	buildHeader
	.syntax unified
	.arm
	.fpu softvfp
	.type	buildHeader, %function
buildHeader:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	str	r3, [fp, #-24]
	mov	r2, #12
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	bl	getpid
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-24]
	ldrb	r3, [r2, #2]
	bic	r3, r3, #1
	strb	r3, [r2, #2]
	mov	r0, #1
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #4]	@ movhi
	mov	r2, #12
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	memcpy
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	buildHeader, .-buildHeader
	.align	2
	.global	buildQuestion
	.syntax unified
	.arm
	.fpu softvfp
	.type	buildQuestion, %function
buildQuestion:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L6
.L8:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L7
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	add	r3, r3, #1
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L6
.L7:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r4, r2, r3
	mov	r0, #1
	bl	htons
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r4, r2, r3
	mov	r0, #1
	bl	htons
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	buildQuestion, .-buildQuestion
	.align	2
	.global	parseResponseHeader
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseResponseHeader, %function
parseResponseHeader:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r2, #12
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r2, #2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-10]
	lsr	r3, r3, #15
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, #2]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2, #2]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #1
	asr	r3, r3, #12
	and	r3, r3, #15
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #2]
	and	r3, r3, #15
	bic	r2, r2, #30
	lsl	r3, r3, #1
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #2]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #5
	asr	r3, r3, #15
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #2]
	and	r3, r3, #1
	bic	r2, r2, #32
	lsl	r3, r3, #5
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #2]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #6
	asr	r3, r3, #15
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #2]
	and	r3, r3, #1
	bic	r2, r2, #64
	lsl	r3, r3, #6
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #2]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #7
	asr	r3, r3, #15
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #2]
	and	r3, r3, #1
	bic	r2, r2, #128
	lsl	r3, r3, #7
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #2]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #8
	asr	r3, r3, #15
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, #3]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2, #3]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #9
	asr	r3, r3, #13
	and	r3, r3, #7
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #3]
	and	r3, r3, #7
	bic	r2, r2, #14
	lsl	r3, r3, #1
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #3]
	ldrh	r3, [fp, #-10]
	lsl	r3, r3, #12
	asr	r3, r3, #12
	and	r3, r3, #15
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #3]
	and	r3, r3, #15
	bic	r2, r2, #240
	lsl	r3, r3, #4
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	mov	r2, #2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, #2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #10
	mov	r2, #2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #4]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #8]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #10]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseResponseHeader, .-parseResponseHeader
	.section	.rodata
	.align	2
.LC1:
	.ascii	"A\000"
	.align	2
.LC2:
	.ascii	"CNAME\000"
	.align	2
.LC3:
	.ascii	"\000\000"
	.text
	.align	2
	.global	parseType
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseType, %function
parseType:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	cmp	r3, #1
	beq	.L13
	cmp	r3, #5
	beq	.L14
	b	.L17
.L13:
	ldr	r3, .L18
	b	.L16
.L14:
	ldr	r3, .L18+4
	b	.L16
.L17:
	ldr	r3, .L18+8
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	parseType, .-parseType
	.section	.rodata
	.align	2
.LC4:
	.ascii	"IN\000"
	.align	2
.LC5:
	.ascii	"CS\000"
	.align	2
.LC6:
	.ascii	"CH\000"
	.align	2
.LC7:
	.ascii	"HS\000"
	.text
	.align	2
	.global	parseClass
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseClass, %function
parseClass:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L22
.L26:
	ldr	r3, .L28
	b	.L27
.L25:
	ldr	r3, .L28+4
	b	.L27
.L24:
	ldr	r3, .L28+8
	b	.L27
.L22:
	ldr	r3, .L28+12
	b	.L27
.L21:
	ldr	r3, .L28+16
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC3
	.size	parseClass, .-parseClass
	.align	2
	.global	parseCompressString
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseCompressString, %function
parseCompressString:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	b	.L31
.L39:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #3
	bne	.L32
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	parseCompressString
	str	r0, [fp, #-28]
	b	.L33
.L34:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L33:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	b	.L35
.L32:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L36
.L37:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L36:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L37
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #46
	strb	r2, [r3]
.L31:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L39
	b	.L35
.L41:
	nop
.L35:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseCompressString, .-parseCompressString
	.align	2
	.global	parseCompressStringWithLength
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseCompressStringWithLength, %function
parseCompressStringWithLength:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L43
.L51:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #3
	bne	.L44
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	parseCompressString
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L45
.L46:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L45:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
	b	.L43
.L44:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L47
.L48:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L47:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L48
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L53
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #46
	strb	r2, [r3]
.L43:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L51
	b	.L50
.L53:
	nop
.L50:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseCompressStringWithLength, .-parseCompressStringWithLength
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Name:%s\012\000"
	.align	2
.LC9:
	.ascii	"Type:%s\012\000"
	.align	2
.LC10:
	.ascii	"Class:%s\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseQuestions
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseQuestions, %function
parseQuestions:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	str	r3, [fp, #-20]
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-36]
	b	.L55
.L62:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L56
.L61:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L57
.L58:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L57:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L58
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
.L56:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	b	.L60
.L65:
	nop
.L60:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L66+4
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-20]
	ldrh	r3, [r3, #4]
	mov	r0, r3
	bl	parseType
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L66+8
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-20]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	parseClass
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L66+12
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	str	r3, [fp, #-36]
.L55:
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bgt	.L62
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC11
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	parseQuestions, .-parseQuestions
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%d\000"
	.text
	.align	2
	.global	Int2String
	.syntax unified
	.arm
	.fpu softvfp
	.type	Int2String, %function
Int2String:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r1, .L70
	ldr	r0, [fp, #-12]
	bl	sprintf
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC12
	.size	Int2String, .-Int2String
	.align	2
	.global	parseIpAddress
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseIpAddress, %function
parseIpAddress:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, r1
	strh	r3, [fp, #-26]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L73
.L76:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Int2String
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-26]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L78
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L73:
	ldrh	r3, [fp, #-26]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L76
	b	.L75
.L78:
	nop
.L75:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseIpAddress, .-parseIpAddress
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Time to live:%d\012\000"
	.align	2
.LC14:
	.ascii	"Data length:%d\012\000"
	.align	2
.LC15:
	.ascii	"Address:%s\012\000"
	.align	2
.LC16:
	.ascii	"CNAME:%s\012\000"
	.align	2
.LC17:
	.ascii	"-----------------\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseAnswers
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseAnswers, %function
parseAnswers:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L80
.L83:
	sub	r3, fp, #28
	str	r3, [fp, #-36]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	parseCompressString
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L85+4
	bl	printf
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #4]
	mov	r0, r3
	bl	parseType
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L85+8
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	parseClass
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L85+12
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L85+16
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	strh	r2, [r3, #12]	@ movhi
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L85+20
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #2
	str	r3, [fp, #-52]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #4]
	cmp	r3, #1
	bne	.L81
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	parseIpAddress
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #12]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L85+24
	bl	printf
	b	.L82
.L81:
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #4]
	cmp	r3, #5
	bne	.L82
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #12]
	mov	r2, r3
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	parseCompressStringWithLength
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #12]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L85+28
	bl	printf
.L82:
	ldr	r0, .L85+32
	bl	puts
.L80:
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bgt	.L83
	nop
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC18
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	parseAnswers, .-parseAnswers
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\350\257\267\350\276\223\345\205\245\350\246\201\350"
	.ascii	"\247\243\346\236\220\347\232\204\345\237\237\345\220"
	.ascii	"\215:\000"
	.align	2
.LC20:
	.ascii	"%s\000"
	.align	2
.LC21:
	.ascii	"\350\257\267\350\276\223\345\205\245dns\346\234\215"
	.ascii	"\345\212\241\345\231\250:\000"
	.align	2
.LC22:
	.ascii	"socket error\000"
	.align	2
.LC23:
	.ascii	"Transcation ID:%xd\012\000"
	.align	2
.LC24:
	.ascii	"Questions:%d\012\000"
	.align	2
.LC25:
	.ascii	"Answers:%d\012\000"
	.align	2
.LC26:
	.ascii	"Authority rrs:%d\012\000"
	.align	2
.LC27:
	.ascii	"Additional rrs:%d\012\000"
	.align	2
.LC28:
	.ascii	"Queries:\000"
	.align	2
.LC29:
	.ascii	"Answers:\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2304
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L91+4
	bl	puts
	sub	r3, fp, #2240
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L91+8
	bl	__isoc99_scanf
	ldr	r0, .L91+12
	bl	puts
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L91+8
	bl	__isoc99_scanf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2292]
	sub	r3, fp, #4
	sub	r3, r3, #2256
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #53
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2256
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-2268]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	buildHeader
	mov	r3, #12
	str	r3, [fp, #-2288]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2288]
	add	r2, r3, r2
	sub	r3, fp, #2240
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	buildQuestion
	str	r0, [fp, #-2284]
	ldr	r2, [fp, #-2288]
	ldr	r3, [fp, #-2284]
	add	r2, r2, r3
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #2256
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-2292]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L88
	ldr	r0, .L91+16
	bl	printf
.L88:
	mov	r3, #4
	str	r3, [fp, #-2296]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2288
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #2256
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-2292]
	bl	recvfrom
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	parseResponseHeader
	str	r0, [fp, #-2280]
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L91+20
	bl	printf
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L91+24
	bl	printf
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #6]
	mov	r1, r3
	ldr	r0, .L91+28
	bl	printf
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L91+32
	bl	printf
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #10]
	mov	r1, r3
	ldr	r0, .L91+36
	bl	printf
	ldr	r0, .L91+40
	bl	puts
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #4]
	mov	r0, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2288]
	add	r3, r3, r2
	mov	r1, r3
	bl	parseQuestions
	mov	r3, r0
	str	r3, [fp, #-2276]
	ldr	r0, .L91+44
	bl	puts
	ldr	r3, [fp, #-2280]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	ldr	r2, [fp, #-2288]
	ldr	r3, [fp, #-2276]
	add	r2, r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	bl	parseAnswers
	mov	r3, #0
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC30
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
