// File: /workspace/github_c_makefile_star2_O2/wjmelements[P]evm/tst/evm.c
// Function: test_sstore_gauntlet
void test_sstore_gauntlet() {
    evmInit();

    // 5f5f5560015f5560025f555f5f5560015f55600160015560026001555f60015500
    op_t program[] = {
        PUSH0, PUSH0, SSTORE,
        PUSH1, 0x01, PUSH0, SSTORE,
        PUSH1, 0x02, PUSH0, SSTORE,
        PUSH0, PUSH0, SSTORE,
        PUSH1, 0x01, PUSH0, SSTORE,
        PUSH1, 0x01, PUSH1, 0x01, SSTORE,
        PUSH1, 0x02, PUSH1, 0x01, SSTORE,
        PUSH0, PUSH1, 0x01, SSTORE,
        STOP,
    };
    address_t from = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    uint64_t gas = 120461;
    val_t value;
    data_t input;
    input.content = program;
    input.size = sizeof(program);

    result_t result = txCreate(from, gas, value, input);
    evmFinalize();
    assert(UPPER(UPPER(result.status)) == 0);
    assert(LOWER(UPPER(result.status)) == 0x80d9b122);
    assert(UPPER(LOWER(result.status)) == 0xdc3a16fdc41f96cf);
    assert(LOWER(LOWER(result.status)) == 0x010ffe7e38d227c3);
    assert(result.returnData.size == 0);
    assert(result.gasRemaining == 25853);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
xorl %eax, %eax
callq 0xaa8d
movaps 0x10ca0(%rip), %xmm0    # 0x15810
leaq 0x80(%rsp), %rbx
movaps %xmm0, 0x10(%rbx)
movaps 0x10c7d(%rip), %xmm0    # 0x15800
movaps %xmm0, (%rbx)
movb $0x0, 0x20(%rbx)
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0x332c
movl 0x10(%r14), %eax
movl %eax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x18(%rsp), %r14
leaq 0x5c(%rsp), %rdx
pushq $0x21
popq %rcx
movl $0x1d68d, %esi          # imm = 0x1D68D
movq %r14, %rdi
movq %rbx, %r8
callq 0xb68f
xorl %eax, %eax
callq 0xada8
cmpq $0x0, 0x10(%r14)
jne 0x4c2a
movl $0x80d9b122, %eax       # imm = 0x80D9B122
cmpq %rax, 0x30(%rsp)
jne 0x4c49
movabsq $-0x23c5e9023be06931, %rax # imm = 0xDC3A16FDC41F96CF
cmpq %rax, 0x38(%rsp)
jne 0x4c68
movabsq $0x10ffe7e38d227c3, %rax # imm = 0x10FFE7E38D227C3
cmpq %rax, 0x40(%rsp)
jne 0x4c87
cmpq $0x0, 0x18(%rsp)
jne 0x4ca6
cmpq $0x64fd, 0x48(%rsp)     # imm = 0x64FD
jne 0x4cc5
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
leaq 0xc3fe(%rip), %rdi      # 0x1102f
leaq 0xc418(%rip), %rsi      # 0x11050
leaq 0xca6f(%rip), %rcx      # 0x116ae
movl $0x357, %edx            # imm = 0x357
callq 0x3040
leaq 0xc41b(%rip), %rdi      # 0x1106b
leaq 0xc3f9(%rip), %rsi      # 0x11050
leaq 0xca50(%rip), %rcx      # 0x116ae
movl $0x358, %edx            # imm = 0x358
callq 0x3040
leaq 0xc426(%rip), %rdi      # 0x11095
leaq 0xc3da(%rip), %rsi      # 0x11050
leaq 0xca31(%rip), %rcx      # 0x116ae
movl $0x359, %edx            # imm = 0x359
callq 0x3040
leaq 0xc439(%rip), %rdi      # 0x110c7
leaq 0xc3bb(%rip), %rsi      # 0x11050
leaq 0xca12(%rip), %rcx      # 0x116ae
movl $0x35a, %edx            # imm = 0x35A
callq 0x3040
leaq 0xc44c(%rip), %rdi      # 0x110f9
leaq 0xc39c(%rip), %rsi      # 0x11050
leaq 0xc9f3(%rip), %rcx      # 0x116ae
movl $0x35b, %edx            # imm = 0x35B
callq 0x3040
leaq 0xc9fe(%rip), %rdi      # 0x116ca
leaq 0xc37d(%rip), %rsi      # 0x11050
leaq 0xc9d4(%rip), %rcx      # 0x116ae
movl $0x35c, %edx            # imm = 0x35C
callq 0x3040