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

    const char config[] = "["
        "{"
            "\"address\":\"0x80d9b122dc3a16fdc41f96cf010ffe7e38d227c3\","
            "\"code\":\"0x5f545f52595ff3\","
            "\"storage\":{"
                "\"0x00\": \"0x12340000567800009abc0000def0\""
            "}"
        "}"
    "]";
    applyConfig(config);

    uint64_t gas = 23114;
    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[] = {
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x12, 0x34, 0x00, 0x00, 0x56, 0x78,
        0x00, 0x00, 0x9a, 0xbc, 0x00, 0x00, 0xde, 0xf0,
    };
    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 $0x148, %rsp            # imm = 0x148
xorl %eax, %eax
callq 0x7e9b
leaq 0xbdb2(%rip), %rsi      # 0x10070
leaq 0xb0(%rsp), %rbx
movl $0x8a, %edx
movq %rbx, %rdi
callq 0x31a0
movq %rbx, %rdi
callq 0x4a7c
movq $0x0, 0x34(%rsp)
movl $0x0, 0x3c(%rsp)
movq $-0x2, %r14
leaq 0x40(%rsp), %r15
leaq 0xc190(%rip), %r12      # 0x1048f
movq 0x11cf2(%rip), %r13     # 0x15ff8
leaq 0xc2e9(%rip), %rbx      # 0x105f6
movzbl 0x4(%r14,%r12), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x4334
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x4328
addb $-0x57, %cl
jmp 0x4332
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x4372
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r14,%r12), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x4359
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x434d
addb $-0x57, %cl
jmp 0x4357
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x4387
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r15)
addq $0x2, %r14
incq %r15
cmpq $0x26, %r14
jb 0x430d
jmp 0x439b
movq (%r13), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x3180
movb $-0x1, %bpl
jmp 0x4334
movq (%r13), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x3180
movb $-0x1, %al
jmp 0x4359
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 $0x5a4a, %esi           # imm = 0x5A4A
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x872c
cmpq $0x20, (%rbx)
jne 0x4431
movq 0x78(%rsp), %rax
movabsq $0x7856000034120000, %rcx # imm = 0x7856000034120000
xorq 0x10(%rax), %rcx
movabsq $-0xf21ffff43660000, %rdx # imm = 0xF0DE0000BC9A0000
xorq 0x18(%rax), %rdx
orq 0x8(%rax), %rdx
orq (%rax), %rcx
orq %rdx, %rcx
jne 0x4450
cmpq $0x0, 0xa0(%rsp)
jne 0x446f
xorl %eax, %eax
callq 0x8349
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc082(%rip), %rdi      # 0x104ba
leaq 0xc0a6(%rip), %rsi      # 0x104e5
leaq 0xc128(%rip), %rcx      # 0x1056e
movl $0x46, %edx
callq 0x30e0
leaq 0xc0b5(%rip), %rdi      # 0x1050c
leaq 0xc087(%rip), %rsi      # 0x104e5
leaq 0xc109(%rip), %rcx      # 0x1056e
movl $0x47, %edx
callq 0x30e0
leaq 0xc0df(%rip), %rdi      # 0x10555
leaq 0xc068(%rip), %rsi      # 0x104e5
leaq 0xc0ea(%rip), %rcx      # 0x1056e
movl $0x48, %edx
callq 0x30e0