papermario/ver/ique/asm/os/skapi.s
AltoXorg b171712e0e
Match libultra iQue ver (#1111)
* match libultra ique pt 1

* add sgidefs.h to include/gcc

* recvmesg match + _getcount

* add elfpatch.py for those compiled with -mips3

* pt 2

* os/setthreadpri(.data) -> os/thread

* os thread matches

* os timer matches

* pt 4 (erm... 3?)

* vitbl

* os pi matches

* pt. uhmmmm, i've lost track...

* os pfs matches

* replace elfpatch.py

* pt. just forget it...

* outsource from ultralib ique branch

* .

* . 2

* final blow

* add egcs compiler to Jenkinsfile

* fix errors from CI

* minor changes as requested
2023-08-17 02:29:21 +09:00

201 lines
8.3 KiB
ArmAsm

.include "macro.inc"
/* assembler directives */
.set noat /* allow manual use of $at */
.set noreorder /* don't insert nops after branches */
.set gp=64 /* allow use of 64-bit general purpose registers */
.section .text, "ax"
/* Generated by spimdisasm 1.11.1 */
glabel skGetId
/* 43240 80067E40 24020000 */ addiu $v0, $zero, 0x0
/* 43244 80067E44 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43248 80067E48 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 4324C 80067E4C 8D090000 */ lw $t1, 0x0($t0)
/* 43250 80067E50 00000000 */ nop
/* 43254 80067E54 03E00008 */ jr $ra
/* 43258 80067E58 00000000 */ nop
glabel skLaunchSetup
/* 4325C 80067E5C 24020001 */ addiu $v0, $zero, 0x1
/* 43260 80067E60 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43264 80067E64 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43268 80067E68 8D090000 */ lw $t1, 0x0($t0)
/* 4326C 80067E6C 00000000 */ nop
/* 43270 80067E70 03E00008 */ jr $ra
/* 43274 80067E74 00000000 */ nop
glabel skLaunch
/* 43278 80067E78 24020002 */ addiu $v0, $zero, 0x2
/* 4327C 80067E7C 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43280 80067E80 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43284 80067E84 8D090000 */ lw $t1, 0x0($t0)
/* 43288 80067E88 00000000 */ nop
/* 4328C 80067E8C 03E00008 */ jr $ra
/* 43290 80067E90 00000000 */ nop
glabel skRecryptListValid
/* 43294 80067E94 24020003 */ addiu $v0, $zero, 0x3
/* 43298 80067E98 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 4329C 80067E9C 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 432A0 80067EA0 8D090000 */ lw $t1, 0x0($t0)
/* 432A4 80067EA4 00000000 */ nop
/* 432A8 80067EA8 03E00008 */ jr $ra
/* 432AC 80067EAC 00000000 */ nop
glabel skRecryptBegin
/* 432B0 80067EB0 24020004 */ addiu $v0, $zero, 0x4
/* 432B4 80067EB4 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 432B8 80067EB8 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 432BC 80067EBC 8D090000 */ lw $t1, 0x0($t0)
/* 432C0 80067EC0 00000000 */ nop
/* 432C4 80067EC4 03E00008 */ jr $ra
/* 432C8 80067EC8 00000000 */ nop
glabel skRecryptData
/* 432CC 80067ECC 24020005 */ addiu $v0, $zero, 0x5
/* 432D0 80067ED0 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 432D4 80067ED4 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 432D8 80067ED8 8D090000 */ lw $t1, 0x0($t0)
/* 432DC 80067EDC 00000000 */ nop
/* 432E0 80067EE0 03E00008 */ jr $ra
/* 432E4 80067EE4 00000000 */ nop
glabel skRecryptComputeState
/* 432E8 80067EE8 24020006 */ addiu $v0, $zero, 0x6
/* 432EC 80067EEC 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 432F0 80067EF0 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 432F4 80067EF4 8D090000 */ lw $t1, 0x0($t0)
/* 432F8 80067EF8 00000000 */ nop
/* 432FC 80067EFC 03E00008 */ jr $ra
/* 43300 80067F00 00000000 */ nop
glabel skRecryptEnd
/* 43304 80067F04 24020007 */ addiu $v0, $zero, 0x7
/* 43308 80067F08 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 4330C 80067F0C 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43310 80067F10 8D090000 */ lw $t1, 0x0($t0)
/* 43314 80067F14 00000000 */ nop
/* 43318 80067F18 03E00008 */ jr $ra
/* 4331C 80067F1C 00000000 */ nop
glabel skSignHash
/* 43320 80067F20 24020008 */ addiu $v0, $zero, 0x8
/* 43324 80067F24 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43328 80067F28 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 4332C 80067F2C 8D090000 */ lw $t1, 0x0($t0)
/* 43330 80067F30 00000000 */ nop
/* 43334 80067F34 03E00008 */ jr $ra
/* 43338 80067F38 00000000 */ nop
glabel skVerifyHash
/* 4333C 80067F3C 24020009 */ addiu $v0, $zero, 0x9
/* 43340 80067F40 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43344 80067F44 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43348 80067F48 8D090000 */ lw $t1, 0x0($t0)
/* 4334C 80067F4C 00000000 */ nop
/* 43350 80067F50 03E00008 */ jr $ra
/* 43354 80067F54 00000000 */ nop
glabel skGetConsumption
/* 43358 80067F58 2402000A */ addiu $v0, $zero, 0xA
/* 4335C 80067F5C 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43360 80067F60 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43364 80067F64 8D090000 */ lw $t1, 0x0($t0)
/* 43368 80067F68 00000000 */ nop
/* 4336C 80067F6C 03E00008 */ jr $ra
/* 43370 80067F70 00000000 */ nop
glabel skAdvanceTicketWindow
/* 43374 80067F74 2402000B */ addiu $v0, $zero, 0xB
/* 43378 80067F78 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 4337C 80067F7C 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43380 80067F80 8D090000 */ lw $t1, 0x0($t0)
/* 43384 80067F84 00000000 */ nop
/* 43388 80067F88 03E00008 */ jr $ra
/* 4338C 80067F8C 00000000 */ nop
glabel skSetLimit
/* 43390 80067F90 2402000C */ addiu $v0, $zero, 0xC
/* 43394 80067F94 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43398 80067F98 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 4339C 80067F9C 8D090000 */ lw $t1, 0x0($t0)
/* 433A0 80067FA0 00000000 */ nop
/* 433A4 80067FA4 03E00008 */ jr $ra
/* 433A8 80067FA8 00000000 */ nop
glabel skExit
/* 433AC 80067FAC 2402000D */ addiu $v0, $zero, 0xD
/* 433B0 80067FB0 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 433B4 80067FB4 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 433B8 80067FB8 8D090000 */ lw $t1, 0x0($t0)
/* 433BC 80067FBC 00000000 */ nop
/* 433C0 80067FC0 03E00008 */ jr $ra
/* 433C4 80067FC4 00000000 */ nop
glabel skKeepAlive
/* 433C8 80067FC8 2402000E */ addiu $v0, $zero, 0xE
/* 433CC 80067FCC 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 433D0 80067FD0 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 433D4 80067FD4 8D090000 */ lw $t1, 0x0($t0)
/* 433D8 80067FD8 00000000 */ nop
/* 433DC 80067FDC 03E00008 */ jr $ra
/* 433E0 80067FE0 00000000 */ nop
glabel skGetRandomKeyData
/* 433E4 80067FE4 2402000F */ addiu $v0, $zero, 0xF
/* 433E8 80067FE8 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 433EC 80067FEC 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 433F0 80067FF0 8D090000 */ lw $t1, 0x0($t0)
/* 433F4 80067FF4 00000000 */ nop
/* 433F8 80067FF8 03E00008 */ jr $ra
/* 433FC 80067FFC 00000000 */ nop
glabel skDumpVirage
/* 43400 80068000 24020010 */ addiu $v0, $zero, 0x10
/* 43404 80068004 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43408 80068008 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 4340C 8006800C 8D090000 */ lw $t1, 0x0($t0)
/* 43410 80068010 00000000 */ nop
/* 43414 80068014 03E00008 */ jr $ra
/* 43418 80068018 00000000 */ nop
glabel skTest2
/* 4341C 8006801C 24020011 */ addiu $v0, $zero, 0x11
/* 43420 80068020 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43424 80068024 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43428 80068028 8D090000 */ lw $t1, 0x0($t0)
/* 4342C 8006802C 00000000 */ nop
/* 43430 80068030 03E00008 */ jr $ra
/* 43434 80068034 00000000 */ nop
glabel skTest3
/* 43438 80068038 24020012 */ addiu $v0, $zero, 0x12
/* 4343C 8006803C 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43440 80068040 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43444 80068044 8D090000 */ lw $t1, 0x0($t0)
/* 43448 80068048 00000000 */ nop
/* 4344C 8006804C 03E00008 */ jr $ra
/* 43450 80068050 00000000 */ nop
glabel skResetWindow
/* 43454 80068054 24020013 */ addiu $v0, $zero, 0x13
/* 43458 80068058 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 4345C 8006805C 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 43460 80068060 8D090000 */ lw $t1, 0x0($t0)
/* 43464 80068064 00000000 */ nop
/* 43468 80068068 03E00008 */ jr $ra
/* 4346C 8006806C 00000000 */ nop
glabel skValidateRls
/* 43470 80068070 24020014 */ addiu $v0, $zero, 0x14
/* 43474 80068074 3C08A430 */ lui $t0, (0xA4300014 >> 16)
/* 43478 80068078 35080014 */ ori $t0, $t0, (0xA4300014 & 0xFFFF)
/* 4347C 8006807C 8D090000 */ lw $t1, 0x0($t0)
/* 43480 80068080 00000000 */ nop
/* 43484 80068084 03E00008 */ jr $ra
/* 43488 80068088 00000000 */ nop
/* 4348C 8006808C 00000000 */ nop