// File: /workspace/github_c_makefile_star2_O0/GangZhuo[P]dohclient/src/ns_msg.c
// Function: ns_print_rdata
static void ns_print_rdata(ns_rr_t *rr)
{
	switch (rr->type) {
	case NS_TYPE_HINFO:
		ns_rdata_print_hinfo(rr);
		break;
	case NS_TYPE_CNAME:
		logv("CNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MB:
		logv("MADNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MD:
		logv("MADNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MF:
		logv("MADNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MG:
		logv("MGMNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MR:
		logv("NEWNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_NS:
		logv("NSDNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_PTR:
		logv("HOSTNAME: %s\n", rr->rdata);
		break;
	case NS_TYPE_MINFO:
		ns_rdata_print_minfo(rr);
		break;
	case NS_TYPE_MX:
		ns_rdata_print_mx(rr);
		break;
	case NS_TYPE_SOA:
		ns_rdata_print_soa(rr);
		break;
	case NS_TYPE_OPT:
		ns_rdata_print_edns(rr);
		break;
	case NS_TYPE_A:
		ns_rdata_print_a(rr);
		break;
	case NS_TYPE_AAAA:
		ns_rdata_print_aaaa(rr);
		break;
	case NS_TYPE_NULL:
	default:
		if (rr->rdata != NULL) {
			bprint(rr->rdata, rr->rdlength);
		}
		break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x8(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0x28, %eax
ja 0x2ae90
movq -0x10(%rbp), %rax
leaq 0xd750(%rip), %rcx      # 0x38370
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
callq 0x2c9e0
jmp 0x2aec4
jmp 0x2ac39
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2ac73
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd7bb(%rip), %rsi      # 0x38414
leaq 0xdb70(%rip), %rdx      # 0x387d0
movl $0x759, %ecx            # imm = 0x759
leaq 0xdb73(%rip), %r8       # 0x387df
movb $0x0, %al
callq 0x243b0
jmp 0x2ac75
jmp 0x2aec4
jmp 0x2ac7c
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2acb6
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd778(%rip), %rsi      # 0x38414
leaq 0xdb2d(%rip), %rdx      # 0x387d0
movl $0x75c, %ecx            # imm = 0x75C
leaq 0xdb3b(%rip), %r8       # 0x387ea
movb $0x0, %al
callq 0x243b0
jmp 0x2acb8
jmp 0x2aec4
jmp 0x2acbf
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2acf9
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd735(%rip), %rsi      # 0x38414
leaq 0xdaea(%rip), %rdx      # 0x387d0
movl $0x75f, %ecx            # imm = 0x75F
leaq 0xdaf8(%rip), %r8       # 0x387ea
movb $0x0, %al
callq 0x243b0
jmp 0x2acfb
jmp 0x2aec4
jmp 0x2ad02
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2ad3c
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd6f2(%rip), %rsi      # 0x38414
leaq 0xdaa7(%rip), %rdx      # 0x387d0
movl $0x762, %ecx            # imm = 0x762
leaq 0xdab5(%rip), %r8       # 0x387ea
movb $0x0, %al
callq 0x243b0
jmp 0x2ad3e
jmp 0x2aec4
jmp 0x2ad45
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2ad7f
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd6af(%rip), %rsi      # 0x38414
leaq 0xda64(%rip), %rdx      # 0x387d0
movl $0x765, %ecx            # imm = 0x765
leaq 0xda7f(%rip), %r8       # 0x387f7
movb $0x0, %al
callq 0x243b0
jmp 0x2ad81
jmp 0x2aec4
jmp 0x2ad88
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2adc2
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd66c(%rip), %rsi      # 0x38414
leaq 0xda21(%rip), %rdx      # 0x387d0
movl $0x768, %ecx            # imm = 0x768
leaq 0xda49(%rip), %r8       # 0x38804
movb $0x0, %al
callq 0x243b0
jmp 0x2adc4
jmp 0x2aec4
jmp 0x2adcb
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2ae05
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd629(%rip), %rsi      # 0x38414
leaq 0xd9de(%rip), %rdx      # 0x387d0
movl $0x76b, %ecx            # imm = 0x76B
leaq 0xda13(%rip), %r8       # 0x38811
movb $0x0, %al
callq 0x243b0
jmp 0x2ae07
jmp 0x2aec4
jmp 0x2ae0e
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2ae48
movq -0x8(%rbp), %rax
movq 0x18(%rax), %r9
movl $0x8, %edi
leaq 0xd5e6(%rip), %rsi      # 0x38414
leaq 0xd99b(%rip), %rdx      # 0x387d0
movl $0x76e, %ecx            # imm = 0x76E
leaq 0xd9dd(%rip), %r8       # 0x3881e
movb $0x0, %al
callq 0x243b0
jmp 0x2ae4a
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2ca50
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2cac0
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2cb40
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2cc00
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2ce40
jmp 0x2aec4
movq -0x8(%rbp), %rdi
callq 0x2ceb0
jmp 0x2aec4
jmp 0x2ae90
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x2aec2
jmp 0x2ae9d
movb $0x0, %al
callq 0x242d0
cmpl $0x7, (%rax)
jl 0x2aebe
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x8(%rbp), %rax
movzwl 0x10(%rax), %esi
callq 0x2e3d0
jmp 0x2aec0
jmp 0x2aec2
jmp 0x2aec4
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)