// File: /workspace/github_c_makefile_star2_O1/wjmelements[P]evm/tst/evm.c
// Function: test_callEmpty
void test_callEmpty() {
    // 70a082310000000000000000000000004a6f6b9ff1fc974096f9063a45fd12bd5b928ad1
    evmInit();
    op_t callData[] = {
        0x70, 0xa0, 0x82, 0x31,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x4a, 0x6f, 0x6b, 0x9f, 0xf1,
        0xfc, 0x97, 0x40, 0x96, 0xf9,
        0x06, 0x3a, 0x45, 0xfd, 0x12,
        0xbd, 0x5b, 0x92, 0x8a, 0xd1,
    };
    address_t from = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    address_t to = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    uint64_t gas = 21432;
    val_t value;
    value[0] = 0;
    value[1] = 0;
    value[2] = 0;
    data_t input;
    input.content = callData;
    input.size = sizeof(callData);

    result_t result = txCall(from, gas, to, value, input, NULL);
    evmFinalize();

    assert(UPPER(UPPER(result.status)) == 0);
    assert(LOWER(UPPER(result.status)) == 0);
    assert(UPPER(LOWER(result.status)) == 0);
    assert(LOWER(LOWER(result.status)) == 1);
    assert(result.returnData.size == 0);
    assert(result.gasRemaining == 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
xorl %eax, %eax
callq 0xca7b
movaps 0x120b2(%rip), %xmm0    # 0x183c0
movaps %xmm0, 0x70(%rsp)
movaps 0x12096(%rip), %xmm0    # 0x183b0
movaps %xmm0, 0x60(%rsp)
movl $0xd18a925b, 0x80(%rsp) # imm = 0xD18A925B
movq $-0x2, %r12
leaq 0x48(%rsp), %r13
leaq 0xdd13(%rip), %r14      # 0x14050
movq 0x17cb4(%rip), %r15     # 0x1dff8
leaq 0x10d72(%rip), %rbx     # 0x170bd
movzbl 0x4(%r12,%r14), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x6372
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x6366
addb $-0x57, %cl
jmp 0x6370
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x63b1
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r12,%r14), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x6397
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x638b
addb $-0x57, %cl
jmp 0x6395
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x63c5
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r13)
addq $0x2, %r12
incq %r13
cmpq $0x26, %r12
jb 0x634b
jmp 0x63d8
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %bpl
jmp 0x6372
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %al
jmp 0x6397
movq $-0x2, %r12
leaq 0x30(%rsp), %r13
leaq 0x10cd2(%rip), %rbx     # 0x170bd
movzbl 0x4(%r12,%r14), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x6412
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x6406
addb $-0x57, %cl
jmp 0x6410
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x6451
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r12,%r14), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x6437
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x642b
addb $-0x57, %cl
jmp 0x6435
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x6465
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r13)
addq $0x2, %r12
incq %r13
cmpq $0x26, %r12
jb 0x63eb
jmp 0x6478
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %bpl
jmp 0x6412
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %al
jmp 0x6437
leaq 0xcc(%rsp), %rdx
movq $0x0, (%rdx)
movl $0x0, 0x8(%rdx)
movl 0x40(%rsp), %eax
movl %eax, 0x28(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movl 0x58(%rsp), %eax
movl %eax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x88(%rsp), %rbx
leaq 0x60(%rsp), %r8
movl $0x53b8, %esi           # imm = 0x53B8
movl $0x24, %ecx
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0xd30c
xorl %eax, %eax
callq 0xcf29
cmpq $0x0, 0x10(%rbx)
jne 0x6536
cmpq $0x0, 0xa0(%rsp)
jne 0x6555
cmpq $0x0, 0xa8(%rsp)
jne 0x6574
cmpq $0x1, 0xb0(%rsp)
jne 0x6593
cmpq $0x0, 0x88(%rsp)
jne 0x65b2
cmpq $0x0, 0xb8(%rsp)
jne 0x65d1
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdb3e(%rip), %rdi      # 0x1407b
leaq 0xdb58(%rip), %rsi      # 0x1409c
leaq 0xe24a(%rip), %rcx      # 0x14795
movl $0x3a2, %edx            # imm = 0x3A2
callq 0x3040
leaq 0xe07e(%rip), %rdi      # 0x145da
leaq 0xdb39(%rip), %rsi      # 0x1409c
leaq 0xe22b(%rip), %rcx      # 0x14795
movl $0x3a3, %edx            # imm = 0x3A3
callq 0x3040
leaq 0xe03e(%rip), %rdi      # 0x145b9
leaq 0xdb1a(%rip), %rsi      # 0x1409c
leaq 0xe20c(%rip), %rcx      # 0x14795
movl $0x3a4, %edx            # imm = 0x3A4
callq 0x3040
leaq 0xe211(%rip), %rdi      # 0x147ab
leaq 0xdafb(%rip), %rsi      # 0x1409c
leaq 0xe1ed(%rip), %rcx      # 0x14795
movl $0x3a5, %edx            # imm = 0x3A5
callq 0x3040
leaq 0xdb8c(%rip), %rdi      # 0x14145
leaq 0xdadc(%rip), %rsi      # 0x1409c
leaq 0xe1ce(%rip), %rcx      # 0x14795
movl $0x3a6, %edx            # imm = 0x3A6
callq 0x3040
leaq 0xdb89(%rip), %rdi      # 0x14161
leaq 0xdabd(%rip), %rsi      # 0x1409c
leaq 0xe1af(%rip), %rcx      # 0x14795
movl $0x3a7, %edx            # imm = 0x3A7
callq 0x3040