2024-10-20 14:00:56 -05:00
|
|
|
main:
|
2024-10-24 02:43:07 -05:00
|
|
|
ADDI64 r254, r254, -48d
|
|
|
|
ST r31, r254, 32a, 16h
|
2024-10-20 14:00:56 -05:00
|
|
|
LI64 r4, 0d
|
2024-10-22 03:08:50 -05:00
|
|
|
ADDI64 r32, r254, 16d
|
2024-10-20 14:00:56 -05:00
|
|
|
CP r3, r4
|
|
|
|
JAL r31, r0, :maina
|
2024-10-22 03:08:50 -05:00
|
|
|
ST r1, r254, 16a, 16h
|
2024-10-24 02:43:07 -05:00
|
|
|
ADDI64 r7, r254, 0d
|
|
|
|
BMC r32, r7, 16h
|
|
|
|
LD r1, r254, 12a, 1h
|
|
|
|
LD r11, r254, 3a, 1h
|
|
|
|
SUB8 r2, r11, r1
|
|
|
|
ANDI r1, r2, 255d
|
|
|
|
LD r31, r254, 32a, 16h
|
|
|
|
ADDI64 r254, r254, 48d
|
2024-10-20 14:00:56 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
maina:
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r254, r254, -48d
|
|
|
|
ST r31, r254, 32a, 16h
|
|
|
|
ADDI64 r32, r254, 28d
|
2024-10-20 14:00:56 -05:00
|
|
|
JAL r31, r0, :small_struct
|
2024-10-24 06:25:30 -05:00
|
|
|
ST r1, r254, 28a, 4h
|
2024-10-24 02:43:07 -05:00
|
|
|
LI64 r2, 1d
|
2024-10-24 03:21:10 -05:00
|
|
|
LI64 r4, 3d
|
2024-10-24 02:43:07 -05:00
|
|
|
LI64 r1, 0d
|
2024-10-24 03:21:10 -05:00
|
|
|
ADDI64 r5, r254, 0d
|
|
|
|
ADDI64 r7, r5, 8d
|
|
|
|
ADDI64 r3, r254, 16d
|
|
|
|
ADDI64 r6, r254, 24d
|
|
|
|
BMC r32, r6, 4h
|
|
|
|
ST r1, r254, 16a, 1h
|
|
|
|
ST r1, r254, 17a, 1h
|
|
|
|
ST r1, r254, 18a, 1h
|
|
|
|
ST r4, r254, 19a, 1h
|
|
|
|
ST r2, r254, 20a, 1h
|
|
|
|
ST r1, r254, 21a, 1h
|
|
|
|
ST r1, r254, 22a, 1h
|
|
|
|
ST r1, r254, 23a, 1h
|
|
|
|
BMC r3, r7, 8h
|
|
|
|
BMC r3, r5, 8h
|
|
|
|
LD r1, r5, 0a, 16h
|
|
|
|
LD r31, r254, 32a, 16h
|
|
|
|
ADDI64 r254, r254, 48d
|
2024-10-20 14:00:56 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
small_struct:
|
|
|
|
ADDI64 r254, r254, -4d
|
|
|
|
LI64 r2, 0d
|
|
|
|
ADDI64 r3, r254, 0d
|
|
|
|
ST r2, r254, 0a, 2h
|
|
|
|
ST r2, r254, 2a, 2h
|
2024-10-22 03:08:50 -05:00
|
|
|
LD r1, r3, 0a, 4h
|
2024-10-20 14:00:56 -05:00
|
|
|
ADDI64 r254, r254, 4d
|
|
|
|
JALA r0, r31, 0a
|
2024-10-24 06:25:30 -05:00
|
|
|
code size: 557
|
2024-10-20 14:00:56 -05:00
|
|
|
ret: 2
|
|
|
|
status: Ok(())
|