// File: /workspace/github_c_makefile_star2_O3/niuyuling[P]CProxy/conf.c
// Function: read_conf
void read_conf(char *filename, conf * configure)
{
    char *buff, *global_content, *http_content, *https_content, *httpdns_content, *httpudp_content;
    FILE *file;
    long file_size;

    file = fopen(filename, "r");
    if (file == NULL) {
        perror("cannot open config file.");
        exit(-1);
    }
    fseek(file, 0, SEEK_END);
    file_size = ftell(file);
    buff = (char *)alloca(file_size + 1);
    if (buff == NULL)
        perror("out of memory.");
    rewind(file);
    if (fread(buff, file_size, 1, file) < 1) {
        perror("fread");
    }
    fclose(file);
    buff[file_size] = '\0';

    if ((global_content = read_module(buff, "global")) == NULL)
        perror("read global module error");
    else
        parse_global_module(global_content, configure);
    free(global_content);

    if ((http_content = read_module(buff, "http")) == NULL)
        perror("read http module error");
    else
        parse_http_module(http_content, configure);
    free(http_content);

    if ((https_content = read_module(buff, "https")) == NULL)
        perror("read https module error");
    else
        parse_https_module(https_content, configure);
    free(https_content);

    if ((httpdns_content = read_module(buff, "httpdns")) == NULL)
        perror("read httpdns module error");
    else
        parse_httpdns_module(httpdns_content, configure);
    free(httpdns_content);

    if ((httpudp_content = read_module(buff, "httpudp")) == NULL)
        perror("read httpdns module error");
    else
        parse_httpudp_module(httpudp_content, configure);
    free(httpudp_content);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, -0x38(%rbp)
leaq 0x1b8a(%rip), %rsi      # 0x9531
callq 0x2450
testq %rax, %rax
je 0x8533
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x23b0
movq %rbx, %rdi
callq 0x22c0
movq %rax, %r14
movq %rsp, %r15
addq $0x10, %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq %rbx, %rdi
callq 0x2180
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x20a0
testq %rax, %rax
je 0x84d0
movq %rbx, %rdi
callq 0x2110
movb $0x0, (%r15,%r14)
leaq 0x1a5f(%rip), %rsi      # 0x947a
movq %r15, %rdi
callq 0x8538
movq %rax, %rbx
testq %rax, %rax
movq %r15, -0x60(%rbp)
je 0x84e1
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, -0x50(%rbp)
movq %rbx, %rdi
callq 0x8604
testq %rax, %rax
je 0x7bd9
movq %rax, %rbx
leaq -0x48(%rbp), %r12
leaq -0x30(%rbp), %r13
leaq -0x40(%rbp), %r14
movq -0x48(%rbp), %r15
movq %r15, %rdi
leaq 0x19d5(%rip), %rsi      # 0x9446
callq 0x2040
testl %eax, %eax
je 0x7b31
movq %r15, %rdi
leaq 0x16c2(%rip), %rsi      # 0x914a
callq 0x2040
testl %eax, %eax
je 0x7b42
movq %r15, %rdi
leaq 0x16a3(%rip), %rsi      # 0x9142
callq 0x2040
testl %eax, %eax
je 0x7b54
movq %r15, %rdi
leaq 0x1a43(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x7b66
movq %r15, %rdi
leaq 0x1a33(%rip), %rsi      # 0x9500
callq 0x2040
testl %eax, %eax
je 0x7b78
movq %r15, %rdi
leaq 0x1a27(%rip), %rsi      # 0x950b
callq 0x2040
testl %eax, %eax
je 0x7b8a
movq %r15, %rdi
leaq 0x1a1c(%rip), %rsi      # 0x9517
callq 0x2040
testl %eax, %eax
je 0x7b9c
movq %r15, %rdi
leaq 0x1a10(%rip), %rsi      # 0x9522
callq 0x2040
testl %eax, %eax
jne 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x1c(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, (%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x4(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x8(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0xc(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x10(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x14(%rcx)
jmp 0x7bac
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x18(%rcx)
incq %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x8604
movq %rax, %rbx
testq %rax, %rax
jne 0x7a63
movq -0x60(%rbp), %r15
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x1786(%rip), %rsi      # 0x9376
movq %r15, %rdi
callq 0x8538
movq %rax, %rbx
testq %rax, %rax
je 0x84f2
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, -0x58(%rbp)
movq %rbx, %rdi
callq 0x8604
testq %rax, %rax
je 0x7f1b
movq %rax, %r12
movq -0x38(%rbp), %rax
leaq 0x38(%rax), %rcx
movq %rcx, -0x70(%rbp)
leaq 0x30(%rax), %rcx
movq %rcx, -0x68(%rbp)
addq $0x28, %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
leaq 0x18fc(%rip), %rsi      # 0x954e
callq 0x2040
testl %eax, %eax
je 0x7d75
movq %rbx, %rdi
leaq 0x1890(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x7d9b
movq %rbx, %rdi
leaq 0x18d6(%rip), %rsi      # 0x9556
callq 0x2040
testl %eax, %eax
je 0x7db0
movq %rbx, %rdi
leaq 0x18c9(%rip), %rsi      # 0x9560
callq 0x2040
testl %eax, %eax
je 0x7dc5
movq %rbx, %rdi
leaq 0x18bb(%rip), %rsi      # 0x9569
callq 0x2040
testl %eax, %eax
je 0x7ddb
movq %rbx, %rdi
leaq 0x18af(%rip), %rsi      # 0x9574
callq 0x2040
testl %eax, %eax
je 0x7df1
movq %rbx, %rdi
leaq 0x18a2(%rip), %rsi      # 0x957e
callq 0x2040
testl %eax, %eax
jne 0x7eeb
movl $0x1, %edi
movl $0x58, %esi
callq 0x2270
testq %rax, %rax
je 0x7f1b
movq %rax, %rbx
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x24f0
movq %rax, 0x28(%rbx)
movl -0x40(%rbp), %eax
subl %r15d, %eax
movl %eax, 0x30(%rbx)
movq %r15, %rdi
leaq 0x1854(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r14
movq %rax, %r13
cmpb $0x22, (%r13)
leaq 0x1(%r13), %r13
jne 0x7d32
movq %r13, %rdi
callq 0x24f0
movq %rax, 0x40(%rbx)
movq %r13, %rdi
callq 0x2140
movl %eax, 0x4c(%rbx)
decq %r14
movzbl (%r14), %eax
cmpl $0x20, %eax
jne 0x7eab
leaq -0x1(%r14), %rax
cmpq %r15, %r14
movq %rax, %r14
jne 0x7d57
jmp 0x7f1b
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x40(%rax)
movq -0x50(%rbp), %rdx
callq 0x4072
testb %al, %al
je 0x7eeb
jmp 0x7f1b
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x4c(%rcx)
jmp 0x7eeb
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x20(%rcx)
jmp 0x7eeb
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x44(%rax)
movq -0x68(%rbp), %rdx
jmp 0x7d89
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x48(%rax)
movq -0x70(%rbp), %rdx
jmp 0x7d89
movl $0x1, %edi
movl $0x58, %esi
callq 0x2270
testq %rax, %rax
je 0x7f1b
movq %rax, %rbx
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x24f0
movq %rax, (%rbx)
movl -0x40(%rbp), %eax
subl %r15d, %eax
movl %eax, 0x8(%rbx)
movq %r15, %rdi
leaq 0x174d(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r13
movq %rax, %r14
cmpb $0x22, (%r14)
leaq 0x1(%r14), %r14
jne 0x7e39
movq %r14, %rdi
callq 0x24f0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2140
movl %eax, 0x24(%rbx)
decq %r13
movzbl (%r13), %eax
cmpl $0x20, %eax
jne 0x7e78
leaq -0x1(%r13), %rax
cmpq %r15, %r13
movq %rax, %r13
jne 0x7e5d
jmp 0x7f1b
cmpl $0x22, %eax
jne 0x7e80
decq %r13
subq %r15, %r13
leaq 0x1(%r13), %rsi
movq %r15, %rdi
callq 0x2250
movq %rax, 0x10(%rbx)
incl %r13d
movl %r13d, 0x20(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x1163f(%rip), %rcx     # 0x194e8
jmp 0x7edc
cmpl $0x22, %eax
jne 0x7eb3
decq %r14
subq %r15, %r14
leaq 0x1(%r14), %rsi
movq %r15, %rdi
callq 0x2250
movq %rax, 0x38(%rbx)
incl %r14d
movl %r14d, 0x48(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x11614(%rip), %rcx     # 0x194f0
movq (%rcx), %rax
testq %rax, %rax
je 0x7ee8
movq %rax, 0x50(%rbx)
movq %rbx, (%rcx)
incq %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x8604
movq %rax, %r12
testq %rax, %rax
jne 0x7c44
movq -0x60(%rbp), %r15
movq -0x58(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x157f(%rip), %rsi      # 0x94b1
movq %r15, %rdi
callq 0x8538
movq %rax, %rbx
testq %rax, %rax
je 0x8503
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, -0x58(%rbp)
movq %rbx, %rdi
callq 0x8604
testq %rax, %rax
je 0x825d
movq %rax, %r12
movq -0x38(%rbp), %rax
leaq 0x68(%rax), %rcx
movq %rcx, -0x70(%rbp)
leaq 0x60(%rax), %rcx
movq %rcx, -0x68(%rbp)
addq $0x58, %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
leaq 0x15f1(%rip), %rsi      # 0x9585
callq 0x2040
testl %eax, %eax
je 0x80b7
movq %rbx, %rdi
leaq 0x154e(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x80dd
movq %rbx, %rdi
leaq 0x15cc(%rip), %rsi      # 0x958e
callq 0x2040
testl %eax, %eax
je 0x80f2
movq %rbx, %rdi
leaq 0x15c0(%rip), %rsi      # 0x9599
callq 0x2040
testl %eax, %eax
je 0x8107
movq %rbx, %rdi
leaq 0x15b3(%rip), %rsi      # 0x95a3
callq 0x2040
testl %eax, %eax
je 0x811d
movq %rbx, %rdi
leaq 0x156d(%rip), %rsi      # 0x9574
callq 0x2040
testl %eax, %eax
je 0x8133
movq %rbx, %rdi
leaq 0x1560(%rip), %rsi      # 0x957e
callq 0x2040
testl %eax, %eax
jne 0x822d
movl $0x1, %edi
movl $0x58, %esi
callq 0x2270
testq %rax, %rax
je 0x825d
movq %rax, %rbx
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x24f0
movq %rax, 0x28(%rbx)
movl -0x40(%rbp), %eax
subl %r15d, %eax
movl %eax, 0x30(%rbx)
movq %r15, %rdi
leaq 0x1512(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r14
movq %rax, %r13
cmpb $0x22, (%r13)
leaq 0x1(%r13), %r13
jne 0x8074
movq %r13, %rdi
callq 0x24f0
movq %rax, 0x40(%rbx)
movq %r13, %rdi
callq 0x2140
movl %eax, 0x4c(%rbx)
decq %r14
movzbl (%r14), %eax
cmpl $0x20, %eax
jne 0x81ed
leaq -0x1(%r14), %rax
cmpq %r15, %r14
movq %rax, %r14
jne 0x8099
jmp 0x825d
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x70(%rax)
movq -0x50(%rbp), %rdx
callq 0x4072
testb %al, %al
je 0x822d
jmp 0x825d
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x7c(%rcx)
jmp 0x822d
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x50(%rcx)
jmp 0x822d
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x74(%rax)
movq -0x68(%rbp), %rdx
jmp 0x80cb
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x78(%rax)
movq -0x70(%rbp), %rdx
jmp 0x80cb
movl $0x1, %edi
movl $0x58, %esi
callq 0x2270
testq %rax, %rax
je 0x825d
movq %rax, %rbx
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x24f0
movq %rax, (%rbx)
movl -0x40(%rbp), %eax
subl %r15d, %eax
movl %eax, 0x8(%rbx)
movq %r15, %rdi
leaq 0x140b(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r13
movq %rax, %r14
cmpb $0x22, (%r14)
leaq 0x1(%r14), %r14
jne 0x817b
movq %r14, %rdi
callq 0x24f0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2140
movl %eax, 0x24(%rbx)
decq %r13
movzbl (%r13), %eax
cmpl $0x20, %eax
jne 0x81ba
leaq -0x1(%r13), %rax
cmpq %r15, %r13
movq %rax, %r13
jne 0x819f
jmp 0x825d
cmpl $0x22, %eax
jne 0x81c2
decq %r13
subq %r15, %r13
leaq 0x1(%r13), %rsi
movq %r15, %rdi
callq 0x2250
movq %rax, 0x10(%rbx)
incl %r13d
movl %r13d, 0x20(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x1130d(%rip), %rcx     # 0x194f8
jmp 0x821e
cmpl $0x22, %eax
jne 0x81f5
decq %r14
subq %r15, %r14
leaq 0x1(%r14), %rsi
movq %r15, %rdi
callq 0x2250
movq %rax, 0x38(%rbx)
incl %r14d
movl %r14d, 0x48(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x112e2(%rip), %rcx     # 0x19500
movq (%rcx), %rax
testq %rax, %rax
je 0x822a
movq %rax, 0x50(%rbx)
movq %rbx, (%rcx)
incq %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x8604
movq %rax, %r12
testq %rax, %rax
jne 0x7f86
movq -0x60(%rbp), %r15
movq -0x58(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x125b(%rip), %rsi      # 0x94cf
movq %r15, %rdi
callq 0x8538
movq %rax, %rbx
testq %rax, %rax
je 0x8514
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, -0x68(%rbp)
movq %rbx, %rdi
callq 0x8604
testq %rax, %rax
je 0x8389
movq %rax, %r15
movq -0x38(%rbp), %rax
leaq 0x88(%rax), %rcx
movq %rcx, -0x58(%rbp)
addq $0x80, %rax
movq %rax, -0x50(%rbp)
leaq 0x12e3(%rip), %r12      # 0x95af
leaq -0x30(%rbp), %rbx
leaq -0x40(%rbp), %r14
movq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2040
testl %eax, %eax
je 0x8322
movq %r13, %rdi
leaq 0x12c3(%rip), %rsi      # 0x95b4
callq 0x2040
testl %eax, %eax
je 0x833b
movq %r13, %rdi
leaq 0x11f5(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
jne 0x835b
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x98(%rcx)
jmp 0x835b
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x90(%rax)
movq -0x50(%rbp), %rdx
jmp 0x8352
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x94(%rax)
movq -0x58(%rbp), %rdx
callq 0x4072
testb %al, %al
jne 0x8389
incq %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x8604
movq %rax, %r15
testq %rax, %rax
jne 0x82d4
movq -0x60(%rbp), %r15
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x1151(%rip), %rsi      # 0x94f1
movq %r15, %rdi
callq 0x8538
movq %rax, %rbx
testq %rax, %rax
je 0x8525
leaq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
movq %rbx, -0x58(%rbp)
movq %rbx, %rdi
callq 0x8604
testq %rax, %rax
je 0x84b5
movq %rax, %r15
movq -0x38(%rbp), %rax
leaq 0xa8(%rax), %rcx
movq %rcx, -0x60(%rbp)
addq $0xa0, %rax
movq %rax, -0x50(%rbp)
leaq 0x11b7(%rip), %r12      # 0x95af
leaq -0x30(%rbp), %rbx
leaq -0x40(%rbp), %r14
movq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2040
testl %eax, %eax
je 0x844e
movq %r13, %rdi
leaq 0x1197(%rip), %rsi      # 0x95b4
callq 0x2040
testl %eax, %eax
je 0x8467
movq %r13, %rdi
leaq 0x10c9(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
jne 0x8487
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0xb8(%rcx)
jmp 0x8487
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0xb0(%rax)
movq -0x50(%rbp), %rdx
jmp 0x847e
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0xb4(%rax)
movq -0x60(%rbp), %rdx
callq 0x4072
testb %al, %al
jne 0x84b5
incq %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x2160
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x8604
movq %rax, %r15
testq %rax, %rax
jne 0x8400
movq -0x58(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf9d(%rip), %rdi       # 0x9474
callq 0x2460
jmp 0x7a07
leaq 0xf99(%rip), %rdi       # 0x9481
callq 0x2460
jmp 0x7be1
leaq 0xfa1(%rip), %rdi       # 0x949a
callq 0x2460
jmp 0x7f23
leaq 0xfad(%rip), %rdi       # 0x94b7
callq 0x2460
jmp 0x8265
leaq 0xfbc(%rip), %rdi       # 0x94d7
callq 0x2460
jmp 0x8391
leaq 0xfab(%rip), %rdi       # 0x94d7
callq 0x2460
jmp 0x84b9
callq 0x26cd