// File: /workspace/github_c_makefile_star2_O3/wjmelements[P]evm/tst/dio.c
// Function: test_applyConfig_construct
void test_applyConfig_construct() {
    evmInit();

    const char config[] = "["
        "{"
            "\"address\":\"0x80d9b122dc3a16fdc41f96cf010ffe7e38d227c3\","
            "\"construct\":\"tst/in/quine.evm\","
            "\"code\":\"0x383d3d39383df3\""
        "}"
    "]";
    applyConfig(config);

    uint64_t gas = 0x521b;
    address_t from;
    val_t val;
    val[0] = 0;
    val[1] = 0;
    val[2] = 0;
    address_t to = AddressFromHex42("0x80d9b122dc3a16fdc41f96cf010ffe7e38d227c3");
    data_t input;
    input.size = 0;

    result_t result = txCall(from, gas, to, val, input, NULL);
    op_t expected[] = {
        0x38, 0x3d, 0x3d, 0x39, 0x38, 0x3d, 0xf3
    };
    assert(result.returnData.size == sizeof(expected));
    assert(memcmp(expected, result.returnData.content, result.returnData.size) == 0);
    assert(result.gasRemaining == 0);

    evmFinalize();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
xorl %eax, %eax
callq 0x7f29
leaq 0xba86(%rip), %rsi      # 0x10180
leaq 0xb0(%rsp), %rax
movl $0xe, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl $0x5d7d22, 0x70(%rax)   # imm = 0x5D7D22
movq %rax, %rdi
callq 0x4adc
movq $0x0, 0x34(%rsp)
movl $0x0, 0x3c(%rsp)
movq $-0x2, %r14
leaq 0x40(%rsp), %r15
leaq 0xbd4f(%rip), %r12      # 0x1048f
movq 0x118b1(%rip), %r13     # 0x15ff8
leaq 0xbea8(%rip), %rbx      # 0x105f6
movzbl 0x4(%r14,%r12), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x4775
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x4769
addb $-0x57, %cl
jmp 0x4773
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x47b3
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r14,%r12), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x479a
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x478e
addb $-0x57, %cl
jmp 0x4798
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x47c8
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r15)
addq $0x2, %r14
incq %r15
cmpq $0x26, %r14
jb 0x474e
jmp 0x47dc
movq (%r13), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x3180
movb $-0x1, %bpl
jmp 0x4775
movq (%r13), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x3180
movb $-0x1, %al
jmp 0x479a
movl 0x50(%rsp), %eax
movl %eax, 0x28(%rsp)
movups 0x40(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movl 0x68(%rsp), %eax
movl %eax, 0x10(%rsp)
movups 0x58(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x70(%rsp), %rbx
leaq 0x34(%rsp), %rdx
movl $0x521b, %esi           # imm = 0x521B
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x8602
cmpq $0x7, (%rbx)
jne 0x485d
movq 0x78(%rsp), %rax
movl $0x393d3d38, %ecx       # imm = 0x393D3D38
xorl (%rax), %ecx
movl $0xf33d3839, %edx       # imm = 0xF33D3839
xorl 0x3(%rax), %edx
orl %ecx, %edx
jne 0x487c
cmpq $0x0, 0xa0(%rsp)
jne 0x489b
xorl %eax, %eax
callq 0x8225
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xbc56(%rip), %rdi      # 0x104ba
leaq 0xbc7a(%rip), %rsi      # 0x104e5
leaq 0xbd3c(%rip), %rcx      # 0x105ae
movl $0x8c, %edx
callq 0x30e0
leaq 0xbc89(%rip), %rdi      # 0x1050c
leaq 0xbc5b(%rip), %rsi      # 0x104e5
leaq 0xbd1d(%rip), %rcx      # 0x105ae
movl $0x8d, %edx
callq 0x30e0
leaq 0xbcb3(%rip), %rdi      # 0x10555
leaq 0xbc3c(%rip), %rsi      # 0x104e5
leaq 0xbcfe(%rip), %rcx      # 0x105ae
movl $0x8e, %edx
callq 0x30e0