check_platform:
    ADDI64 r254, r254, -16d
    ST r31, r254, 0a, 16h
    JAL r31, r0, :x86_fb_ptr
    CP r32, r1
    CP r1, r32
    LD r31, r254, 0a, 16h
    ADDI64 r254, r254, 16d
    JALA r0, r31, 0a
main:
    ADDI64 r254, r254, -56d
    ST r31, r254, 0a, 56h
    JAL r31, r0, :check_platform
    CP r35, r0
    LI64 r36, 30d
    LI64 r37, 100d
    CP r34, r35
    CP r32, r35
    CP r33, r35
 5: JLTU r34, r36, :0
    ADDI64 r32, r32, 1d
    CP r2, r35
    CP r3, r32
    CP r4, r36
    JAL r31, r0, :set_pixel
    CP r34, r1
    JEQ r34, r33, :1
    CP r1, r35
    JMP :2
 1: JNE r32, r37, :3
    CP r1, r33
    JMP :2
 3: CP r34, r35
    JMP :4
 0: ADDI64 r33, r33, 1d
    ADDI64 r34, r34, 1d
 4: JMP :5
 2: LD r31, r254, 0a, 56h
    ADDI64 r254, r254, 56d
    JALA r0, r31, 0a
set_pixel:
    CP r13, r2
    CP r14, r3
    CP r15, r4
    MUL64 r14, r14, r15
    ADD64 r13, r14, r13
    CP r1, r13
    JALA r0, r31, 0a
x86_fb_ptr:
    LI64 r13, 100d
    CP r1, r13
    JALA r0, r31, 0a
code size: 329
ret: 3000
status: Ok(())