// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
leaq 0x5bacd(%rip), %rbx     # 0x61700
leaq 0x13746(%rip), %rbp     # 0x19380
leaq 0x13aaf(%rip), %r13     # 0x196f0
movl 0x5baa9(%rip), %edi     # 0x616f0
movq %rbx, %rsi
movl $0x201, %edx            # imm = 0x201
pushq $-0x1
popq %rcx
callq 0x23f0
movl %eax, %r15d
movq %r15, %rax
decq %r15
testl %eax, %eax
jle 0x5c41
imulq $0xc, %r15, %r14
movl 0x4(%r14,%rbx), %edi
cmpl 0x4(%rbp), %edi
jne 0x5d45
movl $0x10, 0x14(%rsp)
xorl %eax, %eax
leaq 0x240(%rax), %r14
cmpq $0x48240, %r14          # imm = 0x48240
je 0x5c5a
cmpb $0x0, 0x23a(%rax,%r13)
movq %r14, %rax
jne 0x5c80
leaq (%r14,%r13), %r8
addq $-0x3c, %r8
leaq (%r14,%r13), %r12
addq $-0x240, %r12           # imm = 0xFDC0
movl $0x200, %edx            # imm = 0x200
movq %r12, %rsi
xorl %ecx, %ecx
movq %r8, 0x20(%rsp)
leaq 0x14(%rsp), %r9
callq 0x2370
cmpl $0x13, %eax
jl 0x5c5a
movq %r12, 0x18(%rsp)
movq %r15, 0x8(%rsp)
movw %ax, -0x8(%r14,%r13)
cmpq $0x0, 0x13989(%rip)     # 0x19670
je 0x5e55
leaq 0x139fc(%rip), %rcx     # 0x196f0
leaq (%r14,%rcx), %r13
addq $-0x23e, %r13           # imm = 0xFDC2
movzwl %ax, %r15d
addl $-0x2, %r15d
leaq 0x139da(%rip), %r12     # 0x196e8
movq (%r12), %r12
testq %r12, %r12
je 0x5e55
movq (%r12), %rbp
movzwl (%rbp), %ebx
cmpl %ebx, %r15d
jne 0x5d3f
leaq 0x2(%rbp), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq 0x2390
testl %eax, %eax
je 0x6010
addq $0x8, %r12
jmp 0x5d0e
addq %rbx, %r14
testb $0x1, (%r14)
je 0x612d
movq 0x4(%r14), %r12
andl $0x0, 0x230(%r12)
cmpq $0x0, 0x13939(%rip)     # 0x196a0
je 0x5db8
movl 0x234(%r12), %eax
cmpl 0x13951(%rip), %eax     # 0x196c8
jle 0x5db8
decl %eax
movl %eax, 0x234(%r12)
movl 0x22c(%r12), %edi
movl $0x800, %edx            # imm = 0x800
leaq 0x5d399(%rip), %rsi     # 0x63130
callq 0x2240
testl %eax, %eax
js 0x5fc6
cmpl $0x800, %eax            # imm = 0x800
je 0x5d83
testl %eax, %eax
jne 0x5fd0
jmp 0x6003
movq %r15, 0x8(%rsp)
movl 0x22c(%r12), %edi
movl $0x800, %edx            # imm = 0x800
leaq 0x5d35f(%rip), %r15     # 0x63130
movq %r15, %rsi
callq 0x2240
movq %rax, %rbp
testl %ebp, %ebp
jle 0x5f17
movl %ebp, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, (%rax,%r15)
movl 0x138e6(%rip), %edx     # 0x196dc
testl %edx, %edx
movq %r15, %rdi
je 0x5e0b
movl %ebp, %esi
callq 0x365c
leaq 0x5d325(%rip), %rdi     # 0x63130
testb $0x1, 0x138ce(%rip)     # 0x196e0
jne 0x5f3c
leaq 0x34de(%rip), %rsi      # 0x92fd
movq %rdi, %rbx
callq 0x2540
testq %rax, %rax
je 0x6059
movq %rax, %r13
addq $0x3, %r13
movl %ebx, %eax
subl %r13d, %eax
addl %ebp, %eax
movl %eax, %ebp
testl %eax, %eax
pushq $0x2e
popq %rbx
movq 0x8(%rsp), %r15
jg 0x605f
jmp 0x6110
leaq 0x13894(%rip), %r13     # 0x196f0
leaq (%r14,%r13), %rbx
leaq (%r14,%r13), %r15
addq $-0x233, %r15           # imm = 0xFDCD
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 -0x231(%rax,%rbx), %cl
movb %cl, 0x22d(%r15)
movb 0x1383e(%rip), %al      # 0x196e0
testb $0x1, %al
movq 0x18(%rsp), %r12
jne 0x6276
cmpb $0x1, %cl
jne 0x6454
movq %r15, %rdi
callq 0x24f0
movq %rax, -0x20(%r14,%r13)
testq %rax, %rax
je 0x6454
movsbl -0x234(%r14,%r13), %eax
movslq %eax, %rdx
leaq (%rdx,%r13), %rcx
cmpb $0x0, -0x233(%r14,%rcx)
je 0x6270
movzbl -0x5(%r14,%r13), %esi
andl $0x7f, %esi
movq -0x20(%r14,%r13), %rdi
cmpl %esi, %eax
jg 0x644f
leal 0x1(%rdx), %esi
movb $0x2e, (%rdi,%rdx)
movsbl -0x233(%rcx,%r14), %eax
addl %esi, %eax
jmp 0x5ed7
movq 0x8(%rsp), %r15
leaq 0x1345d(%rip), %rbp     # 0x19380
je 0x6003
callq 0x2050
cmpl $0xb, (%rax)
jne 0x6003
jmp 0x612d
addl $-0x2, %ebp
leaq 0x1343a(%rip), %rax     # 0x19380
movl 0x4(%rax), %edi
movslq %ebp, %rdx
leaq 0x204(%r12), %r8
leaq 0x5d1d7(%rip), %rsi     # 0x63132
xorl %ecx, %ecx
pushq $0x10
popq %r9
callq 0x21c0
cmpq $0x0, 0x13702(%rip)     # 0x19670
movq 0x8(%rsp), %r15
je 0x611e
movb 0x5d1b6(%rip), %al      # 0x63135
negb %al
jno 0x611e
movl 0x1374f(%rip), %edx     # 0x196dc
testl %edx, %edx
je 0x5fa4
leaq 0x2(%r12), %rdi
movzwl 0x238(%r12), %esi
callq 0x365c
leaq 0x2(%r12), %rdi
movzwl 0x238(%r12), %esi
movzwl %bp, %ecx
leaq 0x5d176(%rip), %rdx     # 0x63132
callq 0x65ae
jmp 0x611e
callq 0x2050
cmpl $0xb, (%rax)
jne 0x6003
movl $0x80000005, 0x5b71a(%rip) # imm = 0x80000005
movq %r12, 0x5b717(%rip)     # 0x616f8
movl 0x5b709(%rip), %edi     # 0x616f0
movl 0x22c(%r12), %edx
pushq $0x3
popq %rsi
leaq 0x5b6fb(%rip), %rcx     # 0x616f4
callq 0x2220
jmp 0x612d
movq %r12, %rdi
callq 0x57df
jmp 0x612d
movq 0x18(%rsp), %rax
movzwl (%rax), %eax
leaq (%rbx,%rbp), %rsi
addq $0x4, %rsi
movw %ax, (%rsi)
leaq 0x13356(%rip), %rbp     # 0x19380
movl 0x4(%rbp), %edi
movzwl -0x2(%rsi), %edx
xorl %ecx, %ecx
movq 0x20(%rsp), %r8
pushq $0x10
popq %r9
callq 0x21c0
leaq 0x5b6b8(%rip), %rbx     # 0x61700
leaq 0x136a1(%rip), %r13     # 0x196f0
movq 0x8(%rsp), %r15
jmp 0x5c5a
movq %rbx, %r13
pushq $0x2e
popq %rbx
movl 0x13673(%rip), %edx     # 0x196d8
testl %edx, %edx
je 0x6073
movq %r13, %rdi
movl %ebp, %esi
callq 0x365c
xorl %eax, %eax
cmpb $0xa, (%r13)
sete %al
addq %rax, %r13
decq %r13
movb 0x1(%r13), %al
incq %r13
testb %al, %al
je 0x6094
addb $-0x31, %al
cmpb $0x8, %al
ja 0x6083
xorl %ebp, %ebp
movq %r13, %rdi
movl %ebx, %esi
callq 0x2160
cmpq $0x3, %rbp
je 0x60eb
movq %rax, %r15
testq %rax, %rax
je 0x6101
movq %r15, %rax
subq %r13, %rax
cmpq $0x3, %rax
jg 0x60d1
movq %r13, %rdi
callq 0x2480
movb %al, 0x10(%rsp,%rbp)
incq %rbp
incq %r15
movq %r15, %r13
jmp 0x6096
movq %r15, %rdi
pushq $0xa
popq %rsi
callq 0x2160
movq %rax, %r13
testq %rax, %rax
movq 0x8(%rsp), %r15
jne 0x6073
jmp 0x6110
movq %r13, %rdi
callq 0x2480
movb %al, 0x13(%rsp)
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
jmp 0x6106
movq %r12, %rdi
xorl %esi, %esi
callq 0x648b
movq 0x8(%rsp), %r15
leaq 0x5b5e9(%rip), %rbx     # 0x61700
leaq 0x135d2(%rip), %r13     # 0x196f0
movq %r12, %rdi
callq 0x57df
leaq 0x13253(%rip), %rbp     # 0x19380
testb $0x4, (%r14)
je 0x5c5a
movq 0x4(%r14), %r12
andl $0x0, 0x230(%r12)
movq 0x13555(%rip), %rsi     # 0x196a0
testq %rsi, %rsi
je 0x61a8
movslq 0x234(%r12), %rax
movl 0x1356a(%rip), %ecx     # 0x196c8
cmpl %eax, %ecx
jle 0x61a8
movl 0x22c(%r12), %edi
addq %rax, %rsi
subl %eax, %ecx
movslq %ecx, %rdx
callq 0x20e0
cmpl $-0x1, %eax
je 0x6263
addl 0x234(%r12), %eax
movl %eax, 0x234(%r12)
cmpl 0x13532(%rip), %eax     # 0x196c8
jne 0x5c5a
incl %eax
movl %eax, 0x234(%r12)
jmp 0x61d1
movl 0x22c(%r12), %edi
movq 0x218(%r12), %rsi
movslq 0x228(%r12), %rdx
callq 0x20e0
movl 0x228(%r12), %ecx
subl %eax, %ecx
jne 0x6204
movl $0x80000001, 0x5b519(%rip) # imm = 0x80000001
movq %r12, 0x5b516(%rip)     # 0x616f8
movl 0x5b508(%rip), %edi     # 0x616f0
movl 0x22c(%r12), %edx
pushq $0x3
popq %rsi
leaq 0x5b4fa(%rip), %rcx     # 0x616f4
callq 0x2220
jmp 0x5c5a
testl %eax, %eax
jle 0x6230
movl %ecx, 0x228(%r12)
movq 0x218(%r12), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rdi, %rax
movslq %ecx, %rdx
movq %rax, %rsi
callq 0x2430
jmp 0x5c5a
movl 0x5b4ba(%rip), %edi     # 0x616f0
movl 0x22c(%r12), %edx
pushq $0x2
popq %rsi
xorl %ecx, %ecx
callq 0x2220
movl 0x22c(%r12), %edi
callq 0x21e0
movb $0x0, 0x23a(%r12)
jmp 0x5c5a
movq %r12, %rdi
callq 0x57df
jmp 0x5c5a
movb 0x1346a(%rip), %al      # 0x196e0
testb $0x1, %al
jne 0x6322
movl 0x13454(%rip), %edx     # 0x196d8
testl %edx, %edx
je 0x629b
movq -0x20(%r14,%r13), %rdi
movzbl -0x5(%r14,%r13), %esi
andl $0x7f, %esi
callq 0x365c
movl 0x1341f(%rip), %esi     # 0x196c0
leaq (%r14,%r13), %r15
addq $-0x18, %r15
movl %esi, (%r15)
movq 0x133dd(%rip), %rdi     # 0x19690
leaq 0x13436(%rip), %rax     # 0x196f0
leaq (%r14,%rax), %r13
addq $-0x28, %r13
movq %r13, %rdx
callq 0x3ee8
movq (%r13), %rdi
movq 0x8(%r13), %r8
movzbl 0x23(%r13), %r9d
andl $0x7f, %r9d
movq %r15, %rsi
leaq 0x311a(%rip), %rdx      # 0x93ff
pushq $0x3
popq %rcx
callq 0x3f39
movq %rax, (%r13)
movq 0x8(%r13), %rdi
callq 0x2030
movq (%r13), %rdi
leaq 0x133eb(%rip), %r13     # 0x196f0
testq %rdi, %rdi
leaq 0x5b3f1(%rip), %rbx     # 0x61700
leaq 0x1306a(%rip), %rbp     # 0x19380
movq 0x8(%rsp), %r15
jne 0x6388
jmp 0x646d
leaq (%r14,%r13), %r15
addq $-0x23e, %r15           # imm = 0xFDC2
movzwl 0x236(%r15), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2430
movzwl 0x236(%r15), %eax
rolw $0x8, %ax
movw %ax, -0x2(%r15)
movq %r12, 0x216(%r15)
movzwl 0x236(%r15), %eax
addl $0x2, %eax
movl %eax, 0x226(%r15)
andq $0x0, 0x21e(%r15)
movq %r12, %rdi
leaq 0x5b384(%rip), %rbx     # 0x61700
leaq 0x12ffd(%rip), %rbp     # 0x19380
movq 0x8(%rsp), %r15
movl 0x1334e(%rip), %edx     # 0x196dc
testl %edx, %edx
je 0x639c
movl -0x18(%r14,%r13), %esi
callq 0x365c
andl $0x0, -0xc(%r14,%r13)
pushq $0x2
popq %rdi
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x2550
movl %eax, -0x14(%r14,%r13)
testl %eax, %eax
js 0x646d
andl $0x0, -0x10(%r14,%r13)
movl %eax, %edi
pushq $0x4
popq %rsi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x20d0
movl $0x8000000c, 0x5b317(%rip) # imm = 0x8000000C
movq %r12, 0x5b314(%rip)     # 0x616f8
movl 0x5b306(%rip), %edi     # 0x616f0
movl -0x14(%r14,%r13), %edx
pushq $0x1
popq %rsi
leaq 0x5b2fb(%rip), %rcx     # 0x616f4
callq 0x2220
movl -0x14(%r14,%r13), %edi
testl %eax, %eax
je 0x640e
callq 0x21e0
jmp 0x646d
leaq 0x1326b(%rip), %rsi     # 0x19680
pushq $0x10
popq %rdx
callq 0x24c0
testl %eax, %eax
je 0x5c5a
callq 0x2050
cmpl $0x73, (%rax)
je 0x5c5a
movl 0x5b2b7(%rip), %edi     # 0x616f0
movl -0x14(%r14,%r13), %edx
pushq $0x2
popq %rsi
xorl %ecx, %ecx
callq 0x2220
movl -0x14(%r14,%r13), %edi
jmp 0x6407
callq 0x2030
andq $0x0, -0x28(%r14,%r13)
leaq 0x5b29f(%rip), %rbx     # 0x61700
leaq 0x12f18(%rip), %rbp     # 0x19380
movq 0x8(%rsp), %r15
movq -0x28(%r14,%r13), %rdi
cmpq %rdi, %r12
je 0x647c
callq 0x2030
movq %r12, %rdi
xorl %esi, %esi
callq 0x648b
jmp 0x5c5a