// File: /workspace/github_c_makefile_star2_O2/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 0x1fdd(%rip), %rsi      # 0x9531
callq 0x2450
testq %rax, %rax
je 0x8032
movq %rax, %rbx
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
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
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x20a0
testq %rax, %rax
je 0x7fcf
movq %rbx, %rdi
callq 0x2110
movb $0x0, (%r15,%r14)
leaq 0x1eb6(%rip), %rsi      # 0x947a
movq %r15, %rdi
callq 0x8046
movq %rax, %rbx
testq %rax, %rax
movq %r15, -0x60(%rbp)
je 0x7fe0
leaq -0x50(%rbp), %r15
leaq -0x30(%rbp), %r12
leaq -0x40(%rbp), %r13
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x8114
testq %rax, %rax
je 0x7768
movq %rax, %r14
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq 0x1e2f(%rip), %rsi      # 0x9446
callq 0x2040
testl %eax, %eax
je 0x76d7
movq %rbx, %rdi
leaq 0x1b1c(%rip), %rsi      # 0x914a
callq 0x2040
testl %eax, %eax
je 0x76e8
movq %rbx, %rdi
leaq 0x1afd(%rip), %rsi      # 0x9142
callq 0x2040
testl %eax, %eax
je 0x76fa
movq %rbx, %rdi
leaq 0x1e9d(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x770c
movq %rbx, %rdi
leaq 0x1e8d(%rip), %rsi      # 0x9500
callq 0x2040
testl %eax, %eax
je 0x771e
movq %rbx, %rdi
leaq 0x1e81(%rip), %rsi      # 0x950b
callq 0x2040
testl %eax, %eax
je 0x7730
movq %rbx, %rdi
leaq 0x1e76(%rip), %rsi      # 0x9517
callq 0x2040
testl %eax, %eax
je 0x7742
movq %rbx, %rdi
leaq 0x1e6a(%rip), %rsi      # 0x9522
callq 0x2040
testl %eax, %eax
jne 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x1c(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, (%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x4(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x8(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0xc(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x10(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x14(%rcx)
jmp 0x7752
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x18(%rcx)
incq %r14
movq %r14, %rdi
pushq $0xa
popq %rsi
callq 0x2160
movq %rax, %rdi
jmp 0x75ef
movq -0x60(%rbp), %r15
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x1bf7(%rip), %rsi      # 0x9376
movq %r15, %rdi
callq 0x8046
movq %rax, %rbx
testq %rax, %rax
je 0x7ff1
movq -0x38(%rbp), %rax
leaq 0x38(%rax), %rcx
movq %rcx, -0x70(%rbp)
leaq 0x30(%rax), %rcx
movq %rcx, -0x58(%rbp)
addq $0x28, %rax
movq %rax, -0x48(%rbp)
movq %rbx, -0x68(%rbp)
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x8114
testq %rax, %rax
je 0x7a80
movq %rax, %r12
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq 0x1d6d(%rip), %rsi      # 0x954e
callq 0x2040
testl %eax, %eax
je 0x78ff
movq %rbx, %rdi
leaq 0x1d01(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x7925
movq %rbx, %rdi
leaq 0x1d47(%rip), %rsi      # 0x9556
callq 0x2040
testl %eax, %eax
je 0x793a
movq %rbx, %rdi
leaq 0x1d3a(%rip), %rsi      # 0x9560
callq 0x2040
testl %eax, %eax
je 0x794f
movq %rbx, %rdi
leaq 0x1d2c(%rip), %rsi      # 0x9569
callq 0x2040
testl %eax, %eax
je 0x7965
movq %rbx, %rdi
leaq 0x1d20(%rip), %rsi      # 0x9574
callq 0x2040
testl %eax, %eax
je 0x797b
movq %rbx, %rdi
leaq 0x1d13(%rip), %rsi      # 0x957e
callq 0x2040
testl %eax, %eax
jne 0x7a6a
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x2270
testq %rax, %rax
je 0x7a80
movq %rax, %rbx
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x24f0
movq %rax, 0x28(%rbx)
movl -0x40(%rbp), %eax
subl %r13d, %eax
movl %eax, 0x30(%rbx)
movq %r13, %rdi
leaq 0x1cc9(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r14
movq %rax, %r15
cmpb $0x22, (%r15)
leaq 0x1(%r15), %r15
jne 0x78bd
movq %r15, %rdi
callq 0x24f0
movq %rax, 0x40(%rbx)
movq %r15, %rdi
callq 0x2140
movl %eax, 0x4c(%rbx)
decq %r14
movzbl (%r14), %eax
cmpl $0x20, %eax
jne 0x7a2d
leaq -0x1(%r14), %rax
cmpq %r13, %r14
movq %rax, %r14
jne 0x78e1
jmp 0x7a80
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x40(%rax)
movq -0x48(%rbp), %rdx
callq 0x3ee8
testb %al, %al
je 0x7a6a
jmp 0x7a80
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x4c(%rcx)
jmp 0x7a6a
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x20(%rcx)
jmp 0x7a6a
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x44(%rax)
movq -0x58(%rbp), %rdx
jmp 0x7913
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x48(%rax)
movq -0x70(%rbp), %rdx
jmp 0x7913
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x2270
testq %rax, %rax
je 0x7a80
movq %rax, %rbx
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x24f0
movq %rax, (%rbx)
movl -0x40(%rbp), %eax
subl %r13d, %eax
movl %eax, 0x8(%rbx)
movq %r13, %rdi
leaq 0x1bc7(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r15
movq %rax, %r14
cmpb $0x22, (%r14)
leaq 0x1(%r14), %r14
jne 0x79bf
movq %r14, %rdi
callq 0x24f0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2140
movl %eax, 0x24(%rbx)
decq %r15
movzbl (%r15), %eax
cmpl $0x20, %eax
jne 0x79fd
leaq -0x1(%r15), %rax
cmpq %r13, %r15
movq %rax, %r15
jne 0x79e3
jmp 0x7a80
cmpl $0x22, %eax
jne 0x7a05
decq %r15
subq %r13, %r15
leaq 0x1(%r15), %rsi
movq %r13, %rdi
callq 0x2250
movq %rax, 0x10(%rbx)
incl %r15d
movl %r15d, 0x20(%rbx)
andq $0x0, 0x50(%rbx)
leaq 0x11abd(%rip), %rcx     # 0x194e8
jmp 0x7a5b
cmpl $0x22, %eax
jne 0x7a35
decq %r14
subq %r13, %r14
leaq 0x1(%r14), %rsi
movq %r13, %rdi
callq 0x2250
movq %rax, 0x38(%rbx)
incl %r14d
movl %r14d, 0x48(%rbx)
andq $0x0, 0x50(%rbx)
leaq 0x11a95(%rip), %rcx     # 0x194f0
movq (%rcx), %rax
testq %rax, %rax
je 0x7a67
movq %rax, 0x50(%rbx)
movq %rbx, (%rcx)
incq %r12
movq %r12, %rdi
pushq $0xa
popq %rsi
callq 0x2160
movq %rax, %rdi
jmp 0x77b6
movq -0x60(%rbp), %r15
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x1a1a(%rip), %rsi      # 0x94b1
movq %r15, %rdi
callq 0x8046
movq %rax, %rbx
testq %rax, %rax
je 0x8002
movq -0x38(%rbp), %rax
leaq 0x68(%rax), %rcx
movq %rcx, -0x70(%rbp)
leaq 0x60(%rax), %rcx
movq %rcx, -0x58(%rbp)
addq $0x58, %rax
movq %rax, -0x48(%rbp)
movq %rbx, -0x68(%rbp)
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x8114
testq %rax, %rax
je 0x7d98
movq %rax, %r12
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq 0x1a8c(%rip), %rsi      # 0x9585
callq 0x2040
testl %eax, %eax
je 0x7c17
movq %rbx, %rdi
leaq 0x19e9(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
je 0x7c3d
movq %rbx, %rdi
leaq 0x1a67(%rip), %rsi      # 0x958e
callq 0x2040
testl %eax, %eax
je 0x7c52
movq %rbx, %rdi
leaq 0x1a5b(%rip), %rsi      # 0x9599
callq 0x2040
testl %eax, %eax
je 0x7c67
movq %rbx, %rdi
leaq 0x1a4e(%rip), %rsi      # 0x95a3
callq 0x2040
testl %eax, %eax
je 0x7c7d
movq %rbx, %rdi
leaq 0x1a08(%rip), %rsi      # 0x9574
callq 0x2040
testl %eax, %eax
je 0x7c93
movq %rbx, %rdi
leaq 0x19fb(%rip), %rsi      # 0x957e
callq 0x2040
testl %eax, %eax
jne 0x7d82
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x2270
testq %rax, %rax
je 0x7d98
movq %rax, %rbx
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x24f0
movq %rax, 0x28(%rbx)
movl -0x40(%rbp), %eax
subl %r13d, %eax
movl %eax, 0x30(%rbx)
movq %r13, %rdi
leaq 0x19b1(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r14
movq %rax, %r15
cmpb $0x22, (%r15)
leaq 0x1(%r15), %r15
jne 0x7bd5
movq %r15, %rdi
callq 0x24f0
movq %rax, 0x40(%rbx)
movq %r15, %rdi
callq 0x2140
movl %eax, 0x4c(%rbx)
decq %r14
movzbl (%r14), %eax
cmpl $0x20, %eax
jne 0x7d45
leaq -0x1(%r14), %rax
cmpq %r13, %r14
movq %rax, %r14
jne 0x7bf9
jmp 0x7d98
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x70(%rax)
movq -0x48(%rbp), %rdx
callq 0x3ee8
testb %al, %al
je 0x7d82
jmp 0x7d98
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x7c(%rcx)
jmp 0x7d82
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x50(%rcx)
jmp 0x7d82
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x74(%rax)
movq -0x58(%rbp), %rdx
jmp 0x7c2b
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x78(%rax)
movq -0x70(%rbp), %rdx
jmp 0x7c2b
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x2270
testq %rax, %rax
je 0x7d98
movq %rax, %rbx
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x24f0
movq %rax, (%rbx)
movl -0x40(%rbp), %eax
subl %r13d, %eax
movl %eax, 0x8(%rbx)
movq %r13, %rdi
leaq 0x18af(%rip), %rsi      # 0x957b
callq 0x2540
movq %rax, %r15
movq %rax, %r14
cmpb $0x22, (%r14)
leaq 0x1(%r14), %r14
jne 0x7cd7
movq %r14, %rdi
callq 0x24f0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2140
movl %eax, 0x24(%rbx)
decq %r15
movzbl (%r15), %eax
cmpl $0x20, %eax
jne 0x7d15
leaq -0x1(%r15), %rax
cmpq %r13, %r15
movq %rax, %r15
jne 0x7cfb
jmp 0x7d98
cmpl $0x22, %eax
jne 0x7d1d
decq %r15
subq %r13, %r15
leaq 0x1(%r15), %rsi
movq %r13, %rdi
callq 0x2250
movq %rax, 0x10(%rbx)
incl %r15d
movl %r15d, 0x20(%rbx)
andq $0x0, 0x50(%rbx)
leaq 0x117b5(%rip), %rcx     # 0x194f8
jmp 0x7d73
cmpl $0x22, %eax
jne 0x7d4d
decq %r14
subq %r13, %r14
leaq 0x1(%r14), %rsi
movq %r13, %rdi
callq 0x2250
movq %rax, 0x38(%rbx)
incl %r14d
movl %r14d, 0x48(%rbx)
andq $0x0, 0x50(%rbx)
leaq 0x1178d(%rip), %rcx     # 0x19500
movq (%rcx), %rax
testq %rax, %rax
je 0x7d7f
movq %rax, 0x50(%rbx)
movq %rbx, (%rcx)
incq %r12
movq %r12, %rdi
pushq $0xa
popq %rsi
callq 0x2160
movq %rax, %rdi
jmp 0x7ace
movq -0x60(%rbp), %r15
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x2030
leaq 0x1720(%rip), %rsi      # 0x94cf
movq %r15, %rdi
callq 0x8046
testq %rax, %rax
movq %rax, -0x68(%rbp)
je 0x8013
movq -0x38(%rbp), %rcx
leaq 0x88(%rcx), %rdx
movq %rdx, -0x58(%rbp)
addq $0x80, %rcx
movq %rcx, -0x48(%rbp)
leaq -0x50(%rbp), %r12
leaq -0x30(%rbp), %r13
leaq -0x40(%rbp), %rbx
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x8114
testq %rax, %rax
je 0x7ea5
movq %rax, %r15
movq -0x50(%rbp), %r14
movq %r14, %rdi
leaq 0x179a(%rip), %rsi      # 0x95af
callq 0x2040
testl %eax, %eax
je 0x7e59
movq %r14, %rdi
leaq 0x178c(%rip), %rsi      # 0x95b4
callq 0x2040
testl %eax, %eax
je 0x7e72
movq %r14, %rdi
leaq 0x16be(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
jne 0x7e92
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0x98(%rcx)
jmp 0x7e92
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x90(%rax)
movq -0x48(%rbp), %rdx
jmp 0x7e89
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0x94(%rax)
movq -0x58(%rbp), %rdx
callq 0x3ee8
testb %al, %al
jne 0x7ea5
incq %r15
movq %r15, %rdi
pushq $0xa
popq %rsi
callq 0x2160
jmp 0x7dea
movq -0x60(%rbp), %r15
movq -0x68(%rbp), %rdi
callq 0x2030
leaq 0x1638(%rip), %rsi      # 0x94f1
movq %r15, %rdi
callq 0x8046
movq %rax, %r14
testq %rax, %rax
je 0x8024
movq -0x38(%rbp), %rax
leaq 0xa8(%rax), %rcx
movq %rcx, -0x58(%rbp)
addq $0xa0, %rax
movq %rax, -0x48(%rbp)
leaq -0x50(%rbp), %r12
leaq -0x30(%rbp), %r13
leaq -0x40(%rbp), %rbx
movq %r14, -0x60(%rbp)
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x8114
testq %rax, %rax
je 0x7fb4
movq %rax, %r15
movq -0x50(%rbp), %r14
movq %r14, %rdi
leaq 0x168e(%rip), %rsi      # 0x95af
callq 0x2040
testl %eax, %eax
je 0x7f65
movq %r14, %rdi
leaq 0x1680(%rip), %rsi      # 0x95b4
callq 0x2040
testl %eax, %eax
je 0x7f7e
movq %r14, %rdi
leaq 0x15b2(%rip), %rsi      # 0x94f9
callq 0x2040
testl %eax, %eax
jne 0x7f9e
movq -0x30(%rbp), %rdi
callq 0x2480
movq -0x38(%rbp), %rcx
movl %eax, 0xb8(%rcx)
jmp 0x7f9e
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0xb0(%rax)
movq -0x48(%rbp), %rdx
jmp 0x7f95
movl -0x40(%rbp), %esi
movq -0x30(%rbp), %rdi
subl %edi, %esi
movq -0x38(%rbp), %rax
movl %esi, 0xb4(%rax)
movq -0x58(%rbp), %rdx
callq 0x3ee8
testb %al, %al
jne 0x7fb4
incq %r15
movq %r15, %rdi
pushq $0xa
popq %rsi
callq 0x2160
movq %rax, %rdi
jmp 0x7ef9
movq -0x60(%rbp), %r14
movq %r14, %rdi
callq 0x2030
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x149e(%rip), %rdi      # 0x9474
callq 0x2460
jmp 0x75b0
leaq 0x149a(%rip), %rdi      # 0x9481
callq 0x2460
jmp 0x7770
leaq 0x14a2(%rip), %rdi      # 0x949a
callq 0x2460
jmp 0x7a88
leaq 0x14ae(%rip), %rdi      # 0x94b7
callq 0x2460
jmp 0x7da0
leaq 0x14bd(%rip), %rdi      # 0x94d7
callq 0x2460
jmp 0x7ea9
leaq 0x14ac(%rip), %rdi      # 0x94d7
callq 0x2460
jmp 0x7fb8
leaq 0x1422(%rip), %rdi      # 0x945b
callq 0x2460
pushq $-0x1
popq %rdi
callq 0x24b0