// File: /workspace/github_c_makefile_star2_O1/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 0x5b761(%rip), %rbx     # 0x616f0
leaq 0x133da(%rip), %rbp     # 0x19370
leaq 0x13743(%rip), %r14     # 0x196e0
leaq 0x5d17c(%rip), %r15     # 0x63120
movl 0x5b736(%rip), %edi     # 0x616e0
movq %rbx, %rsi
movl $0x201, %edx            # imm = 0x201
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x23e0
testl %eax, %eax
jle 0x5fa4
movl %eax, %eax
movq %rax, 0x18(%rsp)
decq %rax
movq %rax, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movl 0x4(%rbp), %edi
cmpl %edi, 0x4(%rbx,%rax,4)
jne 0x6014
movl $0x10, 0xc(%rsp)
xorl %r13d, %r13d
cmpb $0x0, 0x23a(%r13,%r14)
je 0x60c9
addq $0x240, %r13            # imm = 0x240
cmpq $0x48000, %r13          # imm = 0x48000
jne 0x5fe7
movb $0x1, %al
leaq 0x5b491(%rip), %r13     # 0x614a0
jmp 0x60d6
leaq (%rbx,%rax,4), %r12
testb $0x1, (%r12)
je 0x661c
movq 0x4(%r12), %r13
movl $0x0, 0x230(%r13)
cmpq $0x0, 0x13655(%rip)     # 0x19690
je 0x62df
movl 0x234(%r13), %eax
cmpl 0x1366a(%rip), %eax     # 0x196b8
jle 0x62df
decl %eax
movl %eax, 0x234(%r13)
movl 0x22c(%r13), %edi
movl $0x800, %edx            # imm = 0x800
movq %r15, %rsi
callq 0x2240
movq %rax, %r14
testl %r14d, %r14d
jns 0x6083
callq 0x2050
cmpl $0xb, (%rax)
je 0x6095
testl %r14d, %r14d
jle 0x640e
cmpl $0x800, %r14d           # imm = 0x800
je 0x605d
movl $0x80000005, 0x5b645(%rip) # imm = 0x80000005
movq %r13, 0x5b642(%rip)     # 0x616e8
movl 0x5b634(%rip), %edi     # 0x616e0
movl 0x22c(%r13), %edx
movl $0x3, %esi
leaq 0x5b625(%rip), %rcx     # 0x616e4
callq 0x2220
jmp 0x6416
cmpq $0x48000, %r13          # imm = 0x48000
sete %al
addq %r14, %r13
testb %al, %al
jne 0x6826
leaq 0x204(%r13), %r12
movl $0x200, %edx            # imm = 0x200
movq %r13, %rsi
xorl %ecx, %ecx
movq %r12, %r8
leaq 0xc(%rsp), %r9
callq 0x2360
cmpl $0x13, %eax
jl 0x6826
movq %r12, 0x10(%rsp)
movw %ax, 0x238(%r13)
cmpq $0x0, 0x13546(%rip)     # 0x19660
je 0x6160
movq 0x135b5(%rip), %r12     # 0x196d8
testq %r12, %r12
je 0x6160
movzwl %ax, %ebp
addl $-0x2, %ebp
leaq 0x2(%r13), %r14
movq (%r12), %rbx
movzwl (%rbx), %r15d
cmpl %r15d, %ebp
jne 0x6156
leaq 0x2(%rbx), %rsi
movq %r14, %rdi
movq %rbp, %rdx
callq 0x2380
testl %eax, %eax
je 0x6758
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x6132
leaq 0xd(%r13), %r15
movq %r15, %rdi
callq 0x2140
movb 0x23b(%r13), %cl
movl %eax, %edx
andb $0x7f, %dl
andb $-0x80, %cl
orb %dl, %cl
movb %cl, 0x23b(%r13)
andl $0x7f, %eax
movb 0xf(%r13,%rax), %al
movb %al, 0x23a(%r13)
testb $0x1, 0x13536(%rip)     # 0x196d0
leaq 0x131cf(%rip), %rbp     # 0x19370
jne 0x6221
cmpb $0x1, %al
jne 0x67eb
movq %r15, %rdi
callq 0x24e0
movq %rax, 0x220(%r13)
testq %rax, %rax
je 0x67eb
movsbl 0xc(%r13), %eax
movslq %eax, %rcx
cmpb $0x0, 0xd(%r13,%rcx)
je 0x6221
leaq 0xc(%r13), %rdx
leaq (%rcx,%r13), %rsi
addq $0xd, %rsi
incq %rcx
movzbl 0x23b(%r13), %r8d
andl $0x7f, %r8d
movq 0x220(%r13), %rdi
cmpl %r8d, %eax
jg 0x67e6
cltq
movb $0x2e, (%rdi,%rax)
movsbq (%rsi), %rsi
movslq %ecx, %rcx
leaq (%rcx,%rsi), %rax
addq %rsi, %rcx
incq %rcx
leaq (%rdx,%rax), %rsi
incq %rsi
cmpb $0x0, (%rsi)
jne 0x61e2
testb $0x1, 0x134a8(%rip)     # 0x196d0
jne 0x6422
movl 0x13494(%rip), %edx     # 0x196c8
testl %edx, %edx
leaq 0x5b4b3(%rip), %rbx     # 0x616f0
leaq 0x5cedc(%rip), %r15     # 0x63120
je 0x625d
movq 0x220(%r13), %rdi
movzbl 0x23b(%r13), %esi
andl $0x7f, %esi
callq 0x37b0
movl 0x1344d(%rip), %esi     # 0x196b0
leaq 0x228(%r13), %r14
movl %esi, 0x228(%r13)
movq 0x13408(%rip), %rdi     # 0x19680
leaq 0x218(%r13), %rdx
callq 0x407e
movq 0x218(%r13), %rdi
movq 0x220(%r13), %r8
movzbl 0x23b(%r13), %r9d
andl $0x7f, %r9d
movq %r14, %rsi
leaq 0x315b(%rip), %rdx      # 0x9403
movl $0x3, %ecx
callq 0x40cf
movq %rax, 0x218(%r13)
movq 0x220(%r13), %rdi
callq 0x2030
cmpq $0x0, 0x218(%r13)
leaq 0x1340c(%rip), %r14     # 0x196e0
jne 0x6480
jmp 0x680b
movl 0x22c(%r13), %edi
movl $0x800, %edx            # imm = 0x800
movq %r15, %rsi
callq 0x2240
movq %r15, %rdi
movq %rax, %r15
testl %r15d, %r15d
jle 0x6364
movl %r15d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, (%rax,%rdi)
movl 0x133bc(%rip), %edx     # 0x196cc
testl %edx, %edx
je 0x631c
movl %r15d, %esi
callq 0x37b0
testb $0x1, 0x133ad(%rip)     # 0x196d0
jne 0x6384
leaq 0x5cdf4(%rip), %rdi     # 0x63120
leaq 0x2fca(%rip), %rsi      # 0x92fd
callq 0x2530
testq %rax, %rax
je 0x652e
movq %rax, %rbp
addq $0x3, %rbp
leaq 0x5cdd1(%rip), %rax     # 0x63120
subl %ebp, %eax
addl %r15d, %eax
movl %eax, %r15d
testl %eax, %eax
jg 0x6535
jmp 0x6606
movq %rdi, %r15
je 0x6377
callq 0x2050
cmpl $0xb, (%rax)
je 0x661c
movq %r13, %rdi
callq 0x5b1b
jmp 0x661c
leal -0x2(%r15), %ebp
leaq 0x12fe1(%rip), %rax     # 0x19370
movl 0x4(%rax), %edi
movslq %ebp, %rdx
leaq 0x204(%r13), %r8
leaq 0x5cd7f(%rip), %rsi     # 0x63122
xorl %ecx, %ecx
movl $0x10, %r9d
callq 0x21c0
cmpq $0x0, 0x132a8(%rip)     # 0x19660
leaq 0x5cd61(%rip), %r15     # 0x63120
je 0x660d
movb 0x5cd5a(%rip), %al      # 0x63125
negb %al
jno 0x660d
movl 0x132f3(%rip), %edx     # 0x196cc
testl %edx, %edx
je 0x63ee
leaq 0x2(%r13), %rdi
movzwl 0x238(%r13), %esi
callq 0x37b0
leaq 0x2(%r13), %rdi
movzwl 0x238(%r13), %esi
movzwl %bp, %ecx
leaq 0x5cd1e(%rip), %rdx     # 0x63122
callq 0x6965
jmp 0x660d
movq %r13, %rdi
callq 0x5b1b
leaq 0x132c3(%rip), %r14     # 0x196e0
jmp 0x661c
leaq 0x2(%r13), %rdi
movzwl 0x238(%r13), %edx
movq %r13, %rsi
callq 0x2420
movzwl 0x238(%r13), %eax
rolw $0x8, %ax
movw %ax, (%r13)
movq %r13, 0x218(%r13)
movzwl 0x238(%r13), %eax
addl $0x2, %eax
movl %eax, 0x228(%r13)
movq $0x0, 0x220(%r13)
leaq 0x5b27e(%rip), %rbx     # 0x616f0
leaq 0x13267(%rip), %r14     # 0x196e0
leaq 0x5cca0(%rip), %r15     # 0x63120
movl 0x13246(%rip), %edx     # 0x196cc
testl %edx, %edx
je 0x649d
movq 0x218(%r13), %rdi
movl 0x228(%r13), %esi
callq 0x37b0
movl $0x0, 0x234(%r13)
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2540
movl %eax, 0x22c(%r13)
testl %eax, %eax
js 0x680b
movl $0x0, 0x230(%r13)
movl %eax, %edi
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x20d0
movl $0x8000000c, 0x5b1f4(%rip) # imm = 0x8000000C
movq %r13, 0x5b1f1(%rip)     # 0x616e8
movl 0x5b1e3(%rip), %edi     # 0x616e0
movl 0x22c(%r13), %edx
movl $0x1, %esi
leaq 0x5b1d4(%rip), %rcx     # 0x616e4
callq 0x2220
movl 0x22c(%r13), %edi
testl %eax, %eax
je 0x67a2
callq 0x21e0
jmp 0x680b
leaq 0x5cbeb(%rip), %rbp     # 0x63120
movl 0x1318d(%rip), %edx     # 0x196c8
testl %edx, %edx
je 0x654a
movq %rbp, %rdi
movl %r15d, %esi
callq 0x37b0
xorl %eax, %eax
cmpb $0xa, (%rbp)
sete %al
leaq (%rax,%rbp), %r15
decq %r15
movb 0x1(%r15), %al
incq %r15
testb %al, %al
je 0x656b
addb $-0x31, %al
cmpb $0x8, %al
ja 0x655a
movq %r15, %rdi
movl $0x2e, %esi
callq 0x2160
movq %rax, %rbp
xorl %r14d, %r14d
testq %rbp, %rbp
je 0x65df
movq %rbp, %rax
subq %r15, %rax
cmpq $0x3, %rax
jg 0x65bd
movq %r15, %rdi
callq 0x2470
movb %al, 0x8(%rsp,%r14)
incq %r14
movq %rbp, %r15
incq %r15
movq %r15, %rdi
movl $0x2e, %esi
callq 0x2160
movq %rax, %rbp
cmpq $0x3, %r14
jne 0x657e
jmp 0x65e6
movq %rbp, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rbp
testq %rax, %rax
leaq 0x13109(%rip), %r14     # 0x196e0
jne 0x654a
jmp 0x6606
movq %r13, %rdi
xorl %esi, %esi
jmp 0x65fa
movq %r15, %rdi
callq 0x2470
movb %al, 0xb(%rsp)
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x683c
leaq 0x130da(%rip), %r14     # 0x196e0
leaq 0x5cb13(%rip), %r15     # 0x63120
movq %r13, %rdi
callq 0x5b1b
leaq 0x12d54(%rip), %rbp     # 0x19370
testb $0x4, (%r12)
je 0x6826
movq 0x4(%r12), %r13
movl $0x0, 0x230(%r13)
movq 0x13052(%rip), %rsi     # 0x19690
testq %rsi, %rsi
je 0x6696
movslq 0x234(%r13), %rax
movl 0x13068(%rip), %ecx     # 0x196b8
cmpl %eax, %ecx
jle 0x6696
movl 0x22c(%r13), %edi
addq %rax, %rsi
subl %eax, %ecx
movslq %ecx, %rdx
callq 0x20e0
cmpl $-0x1, %eax
je 0x674b
addl 0x234(%r13), %eax
movl %eax, 0x234(%r13)
cmpl 0x13033(%rip), %eax     # 0x196b8
jne 0x6826
incl %eax
movl %eax, 0x234(%r13)
jmp 0x66bb
movl 0x22c(%r13), %edi
movq 0x218(%r13), %rsi
movslq 0x228(%r13), %rdx
callq 0x20e0
movl 0x228(%r13), %ecx
subl %eax, %ecx
jne 0x66ef
movl $0x80000001, 0x5b01f(%rip) # imm = 0x80000001
movq %r13, 0x5b01c(%rip)     # 0x616e8
movl 0x5b00e(%rip), %edi     # 0x616e0
movl 0x22c(%r13), %edx
movl $0x3, %esi
leaq 0x5afff(%rip), %rcx     # 0x616e4
callq 0x2220
jmp 0x6826
testl %eax, %eax
jle 0x6719
movl %ecx, 0x228(%r13)
movq 0x218(%r13), %rdi
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rdi, %rax
movslq %ecx, %rdx
movq %rax, %rsi
callq 0x2420
jmp 0x6826
movl 0x5afc1(%rip), %edi     # 0x616e0
movl 0x22c(%r13), %edx
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x2220
movl 0x22c(%r13), %edi
callq 0x21e0
movb $0x0, 0x23a(%r13)
jmp 0x6826
movq %r13, %rdi
callq 0x5b1b
jmp 0x6826
movzwl (%r13), %eax
leaq (%rbx,%r15), %rsi
addq $0x4, %rsi
movw %ax, (%rsi)
leaq 0x12c01(%rip), %rbp     # 0x19370
movl 0x4(%rbp), %edi
movzwl -0x2(%rsi), %edx
xorl %ecx, %ecx
movq 0x10(%rsp), %r8
movl $0x10, %r9d
callq 0x21c0
leaq 0x5af61(%rip), %rbx     # 0x616f0
leaq 0x12f4a(%rip), %r14     # 0x196e0
leaq 0x5c983(%rip), %r15     # 0x63120
jmp 0x6826
leaq 0x12ec7(%rip), %rsi     # 0x19670
movl $0x10, %edx
callq 0x24b0
testl %eax, %eax
je 0x6826
callq 0x2050
cmpl $0x73, (%rax)
je 0x6826
movl 0x5af19(%rip), %edi     # 0x616e0
movl 0x22c(%r13), %edx
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x2220
movl 0x22c(%r13), %edi
jmp 0x6524
callq 0x2030
movq $0x0, 0x218(%r13)
leaq 0x5aef3(%rip), %rbx     # 0x616f0
leaq 0x12edc(%rip), %r14     # 0x196e0
leaq 0x5c915(%rip), %r15     # 0x63120
movq 0x218(%r13), %rdi
cmpq %r13, %rdi
je 0x681c
callq 0x2030
movq %r13, %rdi
xorl %esi, %esi
callq 0x683c
cmpq $0x1, 0x18(%rsp)
movq 0x20(%rsp), %rax
jg 0x5fc2
jmp 0x5fa4