// File: /workspace/github_c_makefile_star2_O3/niuyuling[P]CProxy/httpdns.c
// Function: dns_loop
void *dns_loop(void *nullPtr)
{
    int n;

    while (1) {
        n = epoll_wait(dns_efd, dns_evs, DNS_MAX_CONCURRENT + 1, -1);

        while (n-- > 0) {
            if (dns_evs[n].data.fd == global.dns_listen_fd) {
                new_client();
            } else {
                if (dns_evs[n].events & EPOLLIN) {
                    http_in((dns_t *) dns_evs[n].data.ptr);
                }
                if (dns_evs[n].events & EPOLLOUT) {
                    http_out((dns_t *) dns_evs[n].data.ptr);
                }
            }
        }
    }

    return NULL;                //消除编译警告
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x5b803(%rip), %r12     # 0x61700
leaq 0x137ec(%rip), %rbp     # 0x196f0
leaq 0x5d225(%rip), %rbx     # 0x63130
movl 0x5b7df(%rip), %edi     # 0x616f0
movq %r12, %rsi
movl $0x201, %edx            # imm = 0x201
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x23f0
testl %eax, %eax
jle 0x5f0b
movl %eax, %r15d
movq %r15, 0x30(%rsp)
decq %r15
leaq (%r15,%r15,2), %rax
movl 0x4(%r12,%rax,4), %edi
leaq 0x1343e(%rip), %rcx     # 0x19380
cmpl 0x4(%rcx), %edi
jne 0x5f76
movl $0x10, 0x24(%rsp)
xorl %r13d, %r13d
cmpb $0x0, 0x23a(%r13,%rbp)
je 0x5fed
addq $0x240, %r13            # imm = 0x240
cmpq $0x48000, %r13          # imm = 0x48000
jne 0x5f52
jmp 0x67b6
leaq (%r12,%rax,4), %r14
testb $0x1, (%r14)
je 0x65a6
movq 0x4(%r14), %r13
movl $0x0, 0x230(%r13)
cmpq $0x0, 0x13705(%rip)     # 0x196a0
je 0x6179
movl 0x234(%r13), %eax
cmpl 0x1371a(%rip), %eax     # 0x196c8
jle 0x6179
decl %eax
movl %eax, 0x234(%r13)
movl 0x22c(%r13), %edi
movl $0x800, %edx            # imm = 0x800
movq %rbx, %rsi
callq 0x2240
testl %eax, %eax
js 0x647c
cmpl $0x800, %eax            # imm = 0x800
je 0x5fbd
testl %eax, %eax
jne 0x6486
jmp 0x64ba
movq %rbp, %r14
addq %r13, %r14
leaq 0x204(,%rbp), %r8
addq %r13, %r8
movl $0x200, %edx            # imm = 0x200
movq %r14, %rsi
xorl %ecx, %ecx
movq %r8, 0x28(%rsp)
leaq 0x24(%rsp), %r9
callq 0x2370
cmpl $0x13, %eax
jl 0x67b6
movq %r14, 0x18(%rsp)
movq %r15, 0x8(%rsp)
movw %ax, 0x238(%r13,%rbp)
cmpq $0x0, 0x13635(%rip)     # 0x19670
je 0x608a
movq 0x136a4(%rip), %rbx     # 0x196e8
testq %rbx, %rbx
je 0x608a
movzwl %ax, %ebp
addl $-0x2, %ebp
leaq 0x1369a(%rip), %rax     # 0x196f0
leaq (%rax,%r13), %r14
addq $0x2, %r14
movq (%rbx), %r15
movzwl (%r15), %r12d
cmpl %r12d, %ebp
jne 0x6081
leaq 0x2(%r15), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0x2390
testl %eax, %eax
je 0x66e0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x605e
leaq 0x1365f(%rip), %rbp     # 0x196f0
movq %rbp, %r14
addq %r13, %r14
leaq 0xd(,%rbp), %r15
addq %r13, %r15
movq %r15, %rdi
callq 0x2140
movb 0x22e(%r15), %cl
movl %eax, %edx
andb $0x7f, %dl
andb $-0x80, %cl
orb %dl, %cl
movb %cl, 0x22e(%r15)
andl $0x7f, %eax
movb 0xf(%rax,%r14), %al
movb %al, 0x22d(%r15)
movb 0x13609(%rip), %bl      # 0x196e0
testb $0x1, %bl
jne 0x6223
cmpb $0x1, %al
leaq 0x5b617(%rip), %r12     # 0x61700
jne 0x677d
movq %r15, %rdi
callq 0x24f0
movq %rax, 0x220(%r13,%rbp)
testq %rax, %rax
je 0x677d
movsbq 0xc(%r13,%rbp), %rax
cmpb $0x0, 0xd(%rax,%r14)
je 0x622a
leal 0x1(%rax), %ecx
leaq (%rax,%r14), %rdx
addq $0xd, %rdx
movzbl 0x23b(%r13,%rbp), %esi
andl $0x7f, %esi
movq 0x220(%r13,%rbp), %rdi
cmpl %esi, %eax
jg 0x6778
cltq
movb $0x2e, (%rdi,%rax)
movsbq (%rdx), %rdx
movslq %ecx, %rcx
leaq (%rcx,%rdx), %rax
addq %rdx, %rcx
incq %rcx
leaq (%r14,%rax), %rdx
addq $0xd, %rdx
movq %rcx, %rsi
addq %rbp, %rsi
cmpb $0x0, 0xc(%r13,%rsi)
jne 0x6125
movb 0x1356c(%rip), %bl      # 0x196e0
jmp 0x622a
movq %r15, 0x8(%rsp)
movl 0x22c(%r13), %edi
movl $0x800, %edx            # imm = 0x800
movq %rbx, %rsi
callq 0x2240
movq %rax, %r15
testl %r15d, %r15d
jle 0x6205
movl %r15d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, (%rax,%rbx)
movl 0x13530(%rip), %edx     # 0x196dc
testl %edx, %edx
je 0x61bb
movq %rbx, %rdi
movl %r15d, %esi
callq 0x3794
testb $0x1, 0x1351e(%rip)     # 0x196e0
jne 0x62d6
leaq 0x5cf61(%rip), %rbx     # 0x63130
movq %rbx, %rdi
leaq 0x3124(%rip), %rsi      # 0x92fd
callq 0x2540
testq %rax, %rax
je 0x64c7
movq %rax, %rbp
addq $0x3, %rbp
movl %ebx, %eax
subl %ebp, %eax
addl %r15d, %eax
movl %eax, %r15d
testl %eax, %eax
jg 0x64ca
jmp 0x658b
movq 0x8(%rsp), %r15
je 0x64ba
callq 0x2050
cmpl $0xb, (%rax)
jne 0x64ba
jmp 0x65a6
leaq 0x5b4d6(%rip), %r12     # 0x61700
testb $0x1, %bl
jne 0x6365
movl 0x1349f(%rip), %edx     # 0x196d8
testl %edx, %edx
je 0x6256
movq 0x220(%r13,%rbp), %rdi
movzbl 0x23b(%r13,%rbp), %esi
andl $0x7f, %esi
callq 0x3794
movl 0x13464(%rip), %esi     # 0x196c0
leaq 0x228(,%rbp), %r14
addq %r13, %r14
movl %esi, (%r14)
movq 0x1341f(%rip), %rdi     # 0x19690
leaq 0x218(,%rbp), %r15
addq %r13, %r15
movq %r15, %rdx
callq 0x4072
movq (%r15), %rdi
movq 0x8(%r15), %r8
movzbl 0x23(%r15), %r9d
andl $0x7f, %r9d
movq %r14, %rsi
leaq 0x3161(%rip), %rdx      # 0x93ff
movl $0x3, %ecx
callq 0x40c3
movq %rax, (%r15)
movq 0x8(%r15), %rdi
callq 0x2030
movq (%r15), %rdi
testq %rdi, %rdi
leaq 0x5ce6f(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r14
jne 0x63cf
jmp 0x679a
leal -0x2(%r15), %ebp
leaq 0x1309f(%rip), %rax     # 0x19380
movl 0x4(%rax), %edi
movslq %ebp, %rdx
leaq 0x204(%r13), %r8
leaq 0x5ce3d(%rip), %rsi     # 0x63132
xorl %ecx, %ecx
movl $0x10, %r9d
callq 0x21c0
cmpq $0x0, 0x13366(%rip)     # 0x19670
leaq 0x5ce1f(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
je 0x6597
movb 0x5ce13(%rip), %al      # 0x63135
negb %al
jno 0x6597
movl 0x133ac(%rip), %edx     # 0x196dc
testl %edx, %edx
je 0x6345
leaq 0x2(%r13), %rdi
movzwl 0x238(%r13), %esi
callq 0x3794
leaq 0x2(%r13), %rdi
movzwl 0x238(%r13), %esi
movzwl %bp, %ecx
leaq 0x5cdd7(%rip), %rdx     # 0x63132
callq 0x68f0
jmp 0x6597
leaq 0x2(,%rbp), %r14
addq %r13, %r14
movzwl 0x236(%r14), %edx
movq %r14, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0x2430
movzwl 0x236(%r14), %eax
rolw $0x8, %ax
movw %ax, -0x2(%r14)
movq %rbx, 0x216(%r14)
movzwl 0x236(%r14), %eax
addl $0x2, %eax
movl %eax, 0x226(%r14)
movq $0x0, 0x21e(%r14)
movq %rbx, %r14
movq %rbx, %rdi
leaq 0x5cd66(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
movl 0x13307(%rip), %edx     # 0x196dc
testl %edx, %edx
je 0x63e6
movl 0x228(%r13,%rbp), %esi
callq 0x3794
movl $0x0, 0x234(%r13,%rbp)
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2550
movl %eax, 0x22c(%r13,%rbp)
testl %eax, %eax
js 0x679a
movl $0x0, 0x230(%r13,%rbp)
movl %eax, %edi
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x20d0
movl $0x8000000c, 0x5b2b8(%rip) # imm = 0x8000000C
movq %r14, 0x5b2b5(%rip)     # 0x616f8
movl 0x5b2a7(%rip), %edi     # 0x616f0
movl 0x22c(%r13,%rbp), %edx
movl $0x1, %esi
leaq 0x5b297(%rip), %rcx     # 0x616f4
callq 0x2220
movl 0x22c(%r13,%rbp), %edi
testl %eax, %eax
je 0x6732
callq 0x21e0
jmp 0x679a
callq 0x2050
cmpl $0xb, (%rax)
jne 0x64ba
movl $0x80000005, 0x5b264(%rip) # imm = 0x80000005
movq %r13, 0x5b261(%rip)     # 0x616f8
movl 0x5b253(%rip), %edi     # 0x616f0
movl 0x22c(%r13), %edx
movl $0x3, %esi
leaq 0x5b244(%rip), %rcx     # 0x616f4
callq 0x2220
jmp 0x65a6
movq %r13, %rdi
callq 0x5a86
jmp 0x65a6
movq %rbx, %rbp
movl 0x13208(%rip), %edx     # 0x196d8
testl %edx, %edx
je 0x64df
movq %rbp, %rdi
movl %r15d, %esi
callq 0x3794
xorl %eax, %eax
cmpb $0xa, (%rbp)
sete %al
leaq (%rax,%rbp), %r15
decq %r15
movb 0x1(%r15), %al
incq %r15
testb %al, %al
je 0x6500
addb $-0x31, %al
cmpb $0x8, %al
ja 0x64ef
movq %r15, %rdi
movl $0x2e, %esi
callq 0x2160
movq %rax, %rbp
xorl %ebx, %ebx
testq %rbp, %rbp
je 0x656b
movq %rbp, %rax
subq %r15, %rax
cmpq $0x3, %rax
jg 0x6550
movq %r15, %rdi
callq 0x2480
movb %al, 0x14(%rsp,%rbx)
incq %rbx
movq %rbp, %r15
incq %r15
movq %r15, %rdi
movl $0x2e, %esi
callq 0x2160
movq %rax, %rbp
cmpq $0x3, %rbx
jne 0x6512
jmp 0x6572
movq %rbp, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rbp
testq %rax, %rax
jne 0x64df
jmp 0x658b
movq %r13, %rdi
xorl %esi, %esi
jmp 0x6586
movq %r15, %rdi
callq 0x2480
movb %al, 0x17(%rsp)
movq %r13, %rdi
leaq 0x14(%rsp), %rsi
callq 0x67c7
leaq 0x5cb9e(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
movq %r13, %rdi
callq 0x5a86
leaq 0x1314a(%rip), %rbp     # 0x196f0
testb $0x4, (%r14)
je 0x67b6
movq 0x4(%r14), %r13
movl $0x0, 0x230(%r13)
movq 0x130da(%rip), %rsi     # 0x196a0
testq %rsi, %rsi
je 0x661e
movslq 0x234(%r13), %rax
movl 0x130f0(%rip), %ecx     # 0x196c8
cmpl %eax, %ecx
jle 0x661e
movl 0x22c(%r13), %edi
addq %rax, %rsi
subl %eax, %ecx
movslq %ecx, %rdx
callq 0x20e0
cmpl $-0x1, %eax
je 0x66d3
addl 0x234(%r13), %eax
movl %eax, 0x234(%r13)
cmpl 0x130bb(%rip), %eax     # 0x196c8
jne 0x67b6
incl %eax
movl %eax, 0x234(%r13)
jmp 0x6643
movl 0x22c(%r13), %edi
movq 0x218(%r13), %rsi
movslq 0x228(%r13), %rdx
callq 0x20e0
movl 0x228(%r13), %ecx
subl %eax, %ecx
jne 0x6677
movl $0x80000001, 0x5b0a7(%rip) # imm = 0x80000001
movq %r13, 0x5b0a4(%rip)     # 0x616f8
movl 0x5b096(%rip), %edi     # 0x616f0
movl 0x22c(%r13), %edx
movl $0x3, %esi
leaq 0x5b087(%rip), %rcx     # 0x616f4
callq 0x2220
jmp 0x67b6
testl %eax, %eax
jle 0x66a1
movl %ecx, 0x228(%r13)
movq 0x218(%r13), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rdi, %rax
movslq %ecx, %rdx
movq %rax, %rsi
callq 0x2430
jmp 0x67b6
movl 0x5b049(%rip), %edi     # 0x616f0
movl 0x22c(%r13), %edx
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x2220
movl 0x22c(%r13), %edi
callq 0x21e0
movb $0x0, 0x23a(%r13)
jmp 0x67b6
movq %r13, %rdi
callq 0x5a86
jmp 0x67b6
movq 0x18(%rsp), %rax
movzwl (%rax), %eax
leaq (%r15,%r12), %rsi
addq $0x4, %rsi
movw %ax, (%rsi)
leaq 0x12c86(%rip), %rbx     # 0x19380
movl 0x4(%rbx), %edi
movzwl -0x2(%rsi), %edx
xorl %ecx, %ecx
movq 0x28(%rsp), %r8
movl $0x10, %r9d
callq 0x21c0
leaq 0x5afe6(%rip), %r12     # 0x61700
leaq 0x12fcf(%rip), %rbp     # 0x196f0
leaq 0x5ca08(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
jmp 0x67b6
leaq 0x12f47(%rip), %rsi     # 0x19680
movl $0x10, %edx
callq 0x24c0
testl %eax, %eax
je 0x67b6
callq 0x2050
cmpl $0x73, (%rax)
je 0x67b6
movl 0x5af99(%rip), %edi     # 0x616f0
movl 0x22c(%r13,%rbp), %edx
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x2220
movl 0x22c(%r13,%rbp), %edi
jmp 0x6472
callq 0x2030
movq $0x0, 0x218(%r13,%rbp)
leaq 0x5c9a0(%rip), %rbx     # 0x63130
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r14
movq 0x218(%r13,%rbp), %rdi
cmpq %rdi, %r14
je 0x67ac
callq 0x2030
movq %r14, %rdi
xorl %esi, %esi
callq 0x67c7
cmpq $0x1, 0x30(%rsp)
jg 0x5f2a
jmp 0x5f0b