	.file	"extr_TcpIp.c_ParseDnsQuery.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"."
	.text
	.p2align 4
	.globl	ParseDnsQuery
	.type	ParseDnsQuery, @function
ParseDnsQuery:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 296
	.cfi_def_cfa_offset 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	sete	dl
	test	rcx, rcx
	sete	al
	or	dl, al
	jne	.L29
	mov	rbp, rdi
	test	rdi, rdi
	jne	.L2
.L29:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 280[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L32
	add	rsp, 296
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, .LC0[rip]
	mov	r15, rcx
	mov	r14, rsi
	call	StrCpy@PLT
	xor	eax, eax
	call	NewBuf@PLT
	mov	rsi, r12
	mov	rdx, r15
	lea	r12, 16[rsp]
	mov	r13, rax
	mov	rdi, rax
	call	WriteBuf@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	SeekBuf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	call	StrCat@PLT
.L7:
	mov	rdi, r13
	call	GetNextByte@PLT
	mov	ebx, eax
	test	eax, eax
	jle	.L14
	mov	esi, 257
	mov	rdi, r12
	call	Zero@PLT
	mov	edx, ebx
	mov	rsi, r12
	mov	rdi, r13
	call	ReadBuf@PLT
	cmp	ebx, eax
	jne	.L15
	mov	rdi, rbp
	call	StrLen@PLT
	test	rax, rax
	je	.L6
	lea	rdx, .LC1[rip]
	mov	rsi, r14
	mov	rdi, rbp
	call	StrCat@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ebx, 1
.L5:
	lea	r12, 15[rsp]
	mov	edx, 1
	mov	rdi, r13
	mov	rsi, r12
	call	ReadBuf@PLT
	cmp	eax, 1
	je	.L33
.L8:
	xor	ebx, ebx
.L9:
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, r13
	call	ReadBuf@PLT
	cmp	eax, 1
	je	.L10
	mov	rdi, r13
.L30:
	call	FreeBuf@PLT
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L33:
	movsx	edi, BYTE PTR 15[rsp]
	call	Endian16@PLT
	cmp	eax, 1
	je	.L9
	movsx	edi, BYTE PTR 15[rsp]
	call	Endian16@PLT
	cmp	eax, 12
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	edi, BYTE PTR 15[rsp]
	call	Endian16@PLT
	mov	rdi, r13
	cmp	eax, 1
	jne	.L30
	call	FreeBuf@PLT
	test	ebx, ebx
	je	.L29
	mov	rdi, rbp
	call	StrLen@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ParseDnsQuery, .-ParseDnsQuery
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_TcpIp.c_ParseDnsQuery.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	".\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ParseDnsQuery
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseDnsQuery, %function
ParseDnsQuery:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r3
	cmp	r2, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	r0, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	movne	r4, ip
	moveq	r4, #1
	ldr	ip, .L33
	sub	sp, sp, #276
	cmp	r4, #0
	ldr	ip, [ip]
	str	ip, [sp, #268]
	mov	ip,#0
	beq	.L2
.L28:
	mov	r0, #0
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #268]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #276
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r8, r2
	ldr	r2, .L33+4
	mov	r9, r3
	mov	r7, r1
	mov	r5, r0
	bl	StrCpy
	bl	NewBuf
	mov	r6, r0
	mov	r2, r9
	mov	r1, r8
	bl	WriteBuf
	mov	r2, r4
	mov	r1, r4
	mov	r0, r6
	bl	SeekBuf
	ldr	r8, .L33+8
	ldr	r9, .L33+12
	b	.L6
.L5:
	mov	r1, r7
	mov	r0, r5
	add	r2, sp, #8
	bl	StrCat
.L6:
	mov	r0, r6
	bl	GetNextByte
	subs	r4, r0, #0
	ble	.L13
	mov	r1, r8
	add	r0, sp, #8
	bl	Zero
	mov	r2, r4
	mov	r0, r6
	add	r1, sp, #8
	bl	ReadBuf
	cmp	r0, r4
	bne	.L14
	mov	r0, r5
	bl	StrLen
	cmp	r0, #0
	beq	.L5
	mov	r2, r9
	mov	r1, r7
	mov	r0, r5
	bl	StrCat
	b	.L5
.L13:
	mov	r4, #1
.L4:
	mov	r2, #1
	mov	r0, r6
	add	r1, sp, #7
	bl	ReadBuf
	cmp	r0, #1
	beq	.L32
.L7:
	mov	r4, #0
.L8:
	mov	r2, #1
	mov	r0, r6
	add	r1, sp, #7
	bl	ReadBuf
	cmp	r0, #1
	beq	.L9
	mov	r0, r6
.L29:
	bl	FreeBuf
	b	.L28
.L14:
	mov	r4, #0
	b	.L4
.L9:
	ldrb	r0, [sp, #7]	@ zero_extendqisi2
	bl	Endian16
	cmp	r0, #1
	mov	r0, r6
	bne	.L29
	bl	FreeBuf
	cmp	r4, #0
	beq	.L28
	mov	r0, r5
	bl	StrLen
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L32:
	ldrb	r0, [sp, #7]	@ zero_extendqisi2
	bl	Endian16
	cmp	r0, #1
	beq	.L8
	ldrb	r0, [sp, #7]	@ zero_extendqisi2
	bl	Endian16
	cmp	r0, #12
	bne	.L7
	b	.L8
.L31:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC2
	.word	.LC0
	.word	257
	.word	.LC1
	.size	ParseDnsQuery, .-ParseDnsQuery
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
