Legaia 2: Duel Saga cover artAI generated
PS2PlayStation 2

Legaia 2: Duel Saga

AI contributions: Welcome

A Work-In-Progress reverse engineering and matching decompilation of Legaia 2: Duel Saga for the PlayStation 2 (PAL, SLES-50891).

0

Code

13.54%
decompiled of 2,022,408 bytes
  • 13.28% matching
  • 0.27% partially matching
  • 86.46% to do

Data

<0.01%
decompiled of 1,768,076 bytes
  • 156 done
  • 1,767,920 to do

Functions

58.76%
matching of 6,254 functions
  • 3,675 matching
  • 2,579 to do

code +0.03% · data ±0% ·

Match 6 more functions (SyncCheck, VIF0 FIFO writer, sky wrapper, bonus calc, permuter finds); code share now 13.28%

Areas

Other code (SDK, libraries, unattributed) Code: 13.01% matching, 0.19% partially matching (1,338,268 bytes) Functions: 2,410/4,212 matchingOther code (SDK, libraries, unattributed) · 13.20%_unknown_after_shikimi Code: 23.42% matching, 0.50% partially matching (224,444 bytes) Functions: 641/1,205 matching_unknown_after_shikimi23.93%_unknown_after_nayuwin2 Code: 1.43% matching, 0.00% partially matching (164,208 bytes) Functions: 32/126 matching_unknown_after_nayuwin21.43%_unknown_after_nori Code: 1.61% matching, 0.06% partially matching (117,528 bytes) Functions: 27/88 matching_unknown_after_nori1.67%_unknown_after_noriwin Code: 0.47% matching, 0.00% partially matching (98,060 bytes) Functions: 6/50 matching_unknown_after_nori…0.47%_unknown_after_pstack Code: 12.21% matching, 0.09% partially matching (72,132 bytes) Functions: 164/264 matching_unknown_afte…12.30%_unknown_after_abeshi Code: 26.39% matching, 1.63% partially matching (50,136 bytes) Functions: 43/54 matching_unknown_aft…28.02%_unknown_after_disp Code: 11.18% matching, 0.00% partially matching (36,180 bytes) Functions: 58/106 matching_unknown_aft…11.18%_unknown_after_ikumi Code: 1.57% matching, 0.00% partially matching (34,664 bytes) Functions: 3/18 matching_unknown_aft…1.57%_unknown_after_nayuini2 Code: 5.10% matching, 0.00% partially matching (30,104 bytes) Functions: 7/10 matching_unknown_aft…5.10%_unknown_after_shuffle Code: 5.57% matching, 0.00% partially matching (29,104 bytes) Functions: 16/52 matching_unknown_af…5.57%_unknown_after_battleslot Code: 12.91% matching, 0.00% partially matching (27,612 bytes) Functions: 57/87 matching_unknown_a…12.91%_unknown_after_memo2 Code: 7.57% matching, 0.00% partially matching (24,992 bytes) Functions: 24/44 matching_unknown_…7.57%_unknown_after_lg2save Code: 3.35% matching, 0.00% partially matching (23,540 bytes) Functions: 15/41 matching_unknown…3.35%_unknown_after_arena Code: 3.38% matching, 0.00% partially matching (22,024 bytes) Functions: 13/46 matching_unkno…3.38%_unknown_after_bwin Code: 10.41% matching, 0.12% partially matching (20,708 bytes) Functions: 32/73 matching_unkno…10.53%_unknown_after_akari Code: 12.68% matching, 0.00% partially matching (17,420 bytes) Functions: 22/30 matching_unkno…12.68%_unknown_after_rsound Code: 25.18% matching, 0.00% partially matching (17,284 bytes) Functions: 63/82 matching_unkno…25.18%_unknown_after_decode Code: 21.86% matching, 0.00% partially matching (16,228 bytes) Functions: 58/86 matching_unkn…21.86%_unknown_after_pchboss Code: 22.53% matching, 0.78% partially matching (16,124 bytes) Functions: 50/78 matching_unkn…23.30%_unknown_after_mapdata Code: 16.46% matching, 0.00% partially matching (15,336 bytes) Functions: 45/67 matching_unkn…16.46%_unknown_after_clas_min Code: 17.08% matching, 0.00% partially matching (15,008 bytes) Functions: 24/46 matching_unkn…17.08%_unknown_after_denlib Code: 29.52% matching, 0.24% partially matching (14,200 bytes) Functions: 53/170 matching_unk…29.76%_unknown_after_noribs Code: 40.68% matching, 0.56% partially matching (14,100 bytes) Functions: 124/152 matching_unkn…41.24%_unknown_after_yue Code: 1.98% matching, 0.00% partially matching (13,564 bytes) Functions: 5/15 matching_unkn…1.98%_unknown_after_work Code: 24.19% matching, 0.18% partially matching (13,428 bytes) Functions: 56/106 matching_unkn…24.37%_unknown_after_sky Code: 21.95% matching, 0.00% partially matching (12,028 bytes) Functions: 34/52 matching_unkn…21.95%_unknown_after_screfct Code: 11.07% matching, 0.00% partially matching (10,912 bytes) Functions: 25/35 matching_un…11.07%_unknown_after_movieplay Code: 8.40% matching, 0.00% partially matching (10,332 bytes) Functions: 10/27 matching_un…8.40%_unknown_after_titlemode Code: 34.52% matching, 0.73% partially matching (9,664 bytes) Functions: 103/126 matching_un…35.25%_unknown_after_sammon Code: 6.71% matching, 0.00% partially matching (9,656 bytes) Functions: 11/19 matching_un…6.71%_unknown_after_pchsysw Code: 9.50% matching, 0.00% partially matching (9,428 bytes) Functions: 16/31 matching_unk…9.50%_unknown_after_window Code: 5.34% matching, 0.26% partially matching (9,368 bytes) Functions: 10/25 matching_unk…5.59%_unknown_after_flare Code: 11.08% matching, 0.00% partially matching (8,160 bytes) Functions: 9/25 matching_un…11.08%_unknown_after_misuzu Code: 14.70% matching, 0.00% partially matching (8,056 bytes) Functions: 33/44 matching_un…14.70%_unknown_after_crvmove Code: 19.68% matching, 0.00% partially matching (7,824 bytes) Functions: 30/48 matching_un…19.68%_unknown_after_main Code: 16.62% matching, 0.00% partially matching (7,412 bytes) Functions: 20/36 matching_un…16.62%_unknown_after_gimmick Code: 3.95% matching, 0.00% partially matching (7,096 bytes) Functions: 3/10 matching_un…3.95%_unknown_after_roulette Code: 63.11% matching, 0.00% partially matching (6,756 bytes) Functions: 50/60 matching_un…63.11%_unknown_after_pchse Code: 43.93% matching, 0.00% partially matching (6,428 bytes) Functions: 39/53 matching_u…43.93%_unknown_after_yokota Code: 12.63% matching, 0.00% partially matching (6,080 bytes) Functions: 12/27 matching_u…12.63%_unknown_after_object Code: 8.27% matching, 0.00% partially matching (5,560 bytes) Functions: 9/21 matching_u…8.27%_unknown_after_eftedsb Code: 0.00% matching, 0.00% partially matching (5,484 bytes) Functions: 0/3 matching_unknown_after_cam_min Code: 2.45% matching, 0.00% partially matching (5,228 bytes) Functions: 4/13 matching_u…2.45%_unknown_after_line Code: 7.67% matching, 0.00% partially matching (5,112 bytes) Functions: 11/22 matching_u…7.67%_unknown_after_eftpack Code: 26.65% matching, 0.00% partially matching (4,788 bytes) Functions: 13/23 matching_unknown_after_th_tex Code: 5.81% matching, 0.00% partially matching (4,680 bytes) Functions: 8/17 matching_unknown_after_sumpochi Code: 51.17% matching, 0.00% partially matching (3,940 bytes) Functions: 22/24 matching_unknown_after_eftedit Code: 14.29% matching, 0.00% partially matching (3,920 bytes) Functions: 12/13 matching_unknown_after_pochilib Code: 30.65% matching, 0.00% partially matching (3,732 bytes) Functions: 13/23 matching_unknown_after_mp_disp Code: 11.80% matching, 0.00% partially matching (3,084 bytes) Functions: 6/12 matching_unknown_after_file Code: 96.24% matching, 0.00% partially matching (2,980 bytes) Functions: 19/20 matching_unknown_after_battuto Code: 5.68% matching, 0.00% partially matching (2,888 bytes) Functions: 4/7 matching_unknown_after_pchspplate Code: 24.41% matching, 0.00% partially matching (2,720 bytes) Functions: 10/15 matching_unknown_after_anime Code: 9.51% matching, 0.00% partially matching (2,104 bytes) Functions: 3/7 matching_unknown_after_battle Code: 56.82% matching, 2.04% partially matching (1,964 bytes) Functions: 20/24 matching_unknown_after_pachislot Code: 73.27% matching, 0.00% partially matching (1,960 bytes) Functions: 22/24 matching_unknown_after_init Code: 30.10% matching, 0.00% partially matching (1,940 bytes) Functions: 10/13 matching_unknown_after_multi Code: 28.31% matching, 0.00% partially matching (1,936 bytes) Functions: 10/15 matching_unknown_after_repetition Code: 43.54% matching, 0.00% partially matching (1,828 bytes) Functions: 13/16 matching_unknown_after_result Code: 14.00% matching, 0.00% partially matching (1,800 bytes) Functions: 4/8 matching_unknown_after_srivus Code: 70.63% matching, 0.00% partially matching (1,784 bytes) Functions: 17/18 matching_unknown_after_sprite Code: 14.85% matching, 0.00% partially matching (1,428 bytes) Functions: 4/6 matching_unknown_after_batread Code: 17.48% matching, 3.68% partially matching (1,304 bytes) Functions: 8/14 matching_unknown_after_pchjob0 Code: 36.27% matching, 0.00% partially matching (1,136 bytes) Functions: 11/13 matching_unknown_start Code: 7.34% matching, 0.00% partially matching (1,036 bytes) Functions: 3/8 matching_unknown_after_modelpkt Code: 81.93% matching, 0.00% partially matching (952 bytes) Functions: 24/25 matching_unknown_after_minigame Code: 100% matching, 0.00% partially matching (884 bytes) Functions: 27/27 matching_unknown_after_nayuki Code: 64.39% matching, 0.00% partially matching (820 bytes) Functions: 9/10 matching_unknown_after_pchevent Code: 86.32% matching, 0.00% partially matching (760 bytes) Functions: 12/13 matching_unknown_after_srenia Code: 68.71% matching, 0.00% partially matching (652 bytes) Functions: 9/10 matching_unknown_after_darts Code: 100% matching, 0.00% partially matching (640 bytes) Functions: 10/10 matching_unknown_after_sarva Code: 60.47% matching, 0.00% partially matching (516 bytes) Functions: 4/5 matching_unknown_after_slasteg Code: 61.90% matching, 0.00% partially matching (504 bytes) Functions: 4/5 matching_unknown_after_sdiva Code: 42.53% matching, 0.00% partially matching (348 bytes) Functions: 3/4 matching_unknown_after_rouge Code: 38.33% matching, 0.00% partially matching (240 bytes) Functions: 3/4 matching_unknown_after_mizuki Code: 100% matching, 0.00% partially matching (148 bytes) Functions: 2/2 matching_unknown_after_nowloding Code: 100% matching, 0.00% partially matching (140 bytes) Functions: 4/4 matchingGame code (attributed to a .cpp file) Code: 13.80% matching, 0.42% partially matching (684,140 bytes) Functions: 1,265/2,042 matchingGame code (attributed to a .cpp file) · 14.22%battle Code: 5.25% matching, 0.05% partially matching (88,704 bytes) Functions: 103/206 matchingbattle5.30%nori Code: 9.01% matching, 0.00% partially matching (48,292 bytes) Functions: 26/64 matchingnori9.01%clas_min Code: 13.35% matching, 0.17% partially matching (42,440 bytes) Functions: 98/191 matchingclas_min13.52%shikimi Code: 7.99% matching, 6.15% partially matching (38,820 bytes) Functions: 29/42 matchingshikimi14.14%yue Code: 12.83% matching, 0.00% partially matching (36,396 bytes) Functions: 44/56 matchingyue12.83%pachislot Code: 34.02% matching, 0.00% partially matching (32,012 bytes) Functions: 131/165 matchingpachislot34.02%nayuki Code: 10.13% matching, 0.00% partially matching (30,000 bytes) Functions: 75/98 matchingnayuki10.13%pchjob0 Code: 9.33% matching, 0.00% partially matching (27,404 bytes) Functions: 40/64 matchingpchjob09.33%pchevent Code: 19.39% matching, 1.28% partially matching (25,644 bytes) Functions: 49/107 matchingpchevent20.66%yokota Code: 11.72% matching, 0.00% partially matching (18,252 bytes) Functions: 20/40 matchingyokota11.72%nayuwin2 Code: 14.69% matching, 0.00% partially matching (18,136 bytes) Functions: 53/78 matchingnayuwi…14.69%memo2 Code: 4.20% matching, 0.00% partially matching (18,004 bytes) Functions: 5/14 matchingmemo24.20%eftedit Code: 2.40% matching, 0.00% partially matching (15,524 bytes) Functions: 3/14 matchingefted…2.40%eftedsb Code: 0.00% matching, 0.00% partially matching (14,532 bytes) Functions: 0/1 matchingefte…0.00%screfct Code: 5.24% matching, 0.00% partially matching (13,204 bytes) Functions: 8/14 matchingscre…5.24%ikumi Code: 1.74% matching, 0.00% partially matching (12,872 bytes) Functions: 3/15 matchingikumi1.74%repetition Code: 60.33% matching, 0.00% partially matching (12,312 bytes) Functions: 63/74 matchingrepe…60.33%roulette Code: 38.74% matching, 0.00% partially matching (11,740 bytes) Functions: 54/73 matchingroul…38.74%sammon Code: 5.33% matching, 0.00% partially matching (11,400 bytes) Functions: 12/31 matchingsamm…5.33%darts Code: 33.29% matching, 0.00% partially matching (10,368 bytes) Functions: 32/48 matchingdarts33.29%rsound Code: 13.52% matching, 0.00% partially matching (9,648 bytes) Functions: 12/23 matchingrso…13.52%pchsysw Code: 43.68% matching, 0.00% partially matching (9,396 bytes) Functions: 54/68 matchingpch…43.68%init Code: 10.38% matching, 0.00% partially matching (8,636 bytes) Functions: 15/25 matchinginit10.38%mizuki Code: 8.76% matching, 0.00% partially matching (8,540 bytes) Functions: 18/28 matchingmiz…8.76%batread Code: 17.78% matching, 0.00% partially matching (7,760 bytes) Functions: 12/20 matchingbat…17.78%akari Code: 31.37% matching, 0.00% partially matching (7,472 bytes) Functions: 37/48 matchingaka…31.37%object Code: 5.29% matching, 0.00% partially matching (7,336 bytes) Functions: 11/24 matchingobj…5.29%file Code: 33.17% matching, 0.00% partially matching (5,620 bytes) Functions: 12/26 matchingfi…33.17%rouge Code: 2.88% matching, 0.00% partially matching (5,408 bytes) Functions: 4/12 matchingro…2.88%flare Code: 8.22% matching, 0.00% partially matching (5,352 bytes) Functions: 30/40 matchingfl…8.22%abeshi Code: 24.73% matching, 0.00% partially matching (5,112 bytes) Functions: 13/19 matchingab…24.73%srivus Code: 43.50% matching, 0.00% partially matching (5,012 bytes) Functions: 40/47 matchingsr…43.50%ikumin Code: 22.49% matching, 0.00% partially matching (4,892 bytes) Functions: 30/38 matchingik…22.49%denlib Code: 25.89% matching, 0.00% partially matching (4,588 bytes) Functions: 15/22 matchingde…25.89%mapdata Code: 0.00% matching, 0.00% partially matching (4,524 bytes) Functions: 0/6 matchingwork Code: 33.88% matching, 0.00% partially matching (4,416 bytes) Functions: 23/36 matchingresult Code: 0.00% matching, 0.00% partially matching (4,288 bytes) Functions: 0/3 matchingshuffle Code: 39.39% matching, 0.00% partially matching (4,184 bytes) Functions: 18/28 matchingth_tex Code: 8.34% matching, 0.00% partially matching (3,980 bytes) Functions: 6/13 matchingmisuzu Code: 0.00% matching, 0.00% partially matching (3,132 bytes) Functions: 0/5 matchingpchse Code: 3.62% matching, 1.71% partially matching (2,984 bytes) Functions: 1/6 matchingmodelpkt Code: 10.03% matching, 0.00% partially matching (2,632 bytes) Functions: 7/13 matchingcam_min Code: 4.02% matching, 0.00% partially matching (2,584 bytes) Functions: 2/5 matchingdisp Code: 0.00% matching, 0.00% partially matching (2,536 bytes) Functions: 0/1 matchingwindow Code: 0.00% matching, 0.00% partially matching (2,484 bytes) Functions: 0/1 matchingeftpack Code: 22.85% matching, 0.00% partially matching (2,416 bytes) Functions: 5/9 matchinggimmick Code: 0.00% matching, 0.00% partially matching (2,336 bytes) Functions: 0/2 matchingarena Code: 0.00% matching, 0.00% partially matching (2,296 bytes) Functions: 0/1 matchingsky Code: 14.08% matching, 0.00% partially matching (2,244 bytes) Functions: 3/5 matchinganime Code: 0.00% matching, 0.00% partially matching (2,160 bytes) Functions: 0/1 matchingnoriwin Code: 0.00% matching, 0.00% partially matching (2,152 bytes) Functions: 0/1 matchingsprite Code: 24.03% matching, 0.00% partially matching (1,848 bytes) Functions: 12/16 matchingmovieplay Code: 26.18% matching, 0.00% partially matching (1,436 bytes) Functions: 2/4 matchingnoribs Code: 0.00% matching, 0.00% partially matching (1,328 bytes) Functions: 0/3 matchingbattleslot Code: 72.35% matching, 0.00% partially matching (1,244 bytes) Functions: 14/15 matchingdecode Code: 28.03% matching, 0.00% partially matching (956 bytes) Functions: 5/7 matchingmulti Code: 24.02% matching, 0.00% partially matching (816 bytes) Functions: 1/2 matchingmain Code: 6.37% matching, 0.00% partially matching (628 bytes) Functions: 1/2 matchingmp_disp Code: 0.00% matching, 0.00% partially matching (624 bytes) Functions: 0/1 matchingnowloding Code: 0.00% matching, 0.00% partially matching (596 bytes) Functions: 0/1 matchinglg2save Code: 62.24% matching, 0.00% partially matching (392 bytes) Functions: 2/3 matchingpchspplate Code: 100% matching, 0.00% partially matching (360 bytes) Functions: 2/2 matchingbattuto Code: 0.00% matching, 0.00% partially matching (280 bytes) Functions: 0/1 matchingsumpochi Code: 0.00% matching, 0.00% partially matching (256 bytes) Functions: 0/1 matchingpochilib Code: 0.00% matching, 0.00% partially matching (216 bytes) Functions: 0/1 matchingnayuini2 Code: 0.00% matching, 0.00% partially matching (200 bytes) Functions: 0/1 matchingcrvmove Code: 0.00% matching, 0.00% partially matching (168 bytes) Functions: 0/1 matchingtitlemode Code: 100% matching, 0.00% partially matching (120 bytes) Functions: 1/1 matchingminigame Code: 100% matching, 0.00% partially matching (96 bytes) Functions: 1/1 matchingpstack Code: 100% matching, 0.00% partially matching (64 bytes) Functions: 1/1 matching
All areas as a table
AreaMatchingPartially matchingDataFunctionsSize (bytes)
Game code (attributed to a .cpp file) (77)13.80%0.42%100%1,265 / 2,042684,140
Other code (SDK, libraries, unattributed) (78)13.01%0.19%<0.01%2,410 / 4,2121,338,268

History

DecompiledMatchingDataClick the chart to see the project at that commit.
0%25%50%75%100%2026-10-162026-11-03

Reports up to this one (252)

WhenDecompiledMatchingDataCommit
13.54% +0.03%13.28% +0.03%<0.01%b4a9e0e Match 6 more functions (SyncCheck, VIF0 FIFO writer, sky wrapper, bonus calc, permuter finds); code share now 13.28%
13.51% +0.08%13.24% +0.09%<0.01%cc151d0 Match 11 more functions (vector helpers, GS/IPU register code, kernel patch installers); code share now 13.24%
13.43% +0.14%13.16% +0.14%<0.01%05a7cb6 Match 14 functions (rsound, pchsysw, battle, file, mizuki, GS regs); code share now 13.16%
13.29% +0.01%13.01% +0.01%<0.01%e91e68b Match 2eddc8; code share now 13.01%
13.28% +0.02%13.00% +0.02%<0.01%0cb3750 Match 2ec6f0 and 2ee3a0; code share now 13.00%
13.26% +0.02%12.98% +0.02%<0.01%6fcf7b5 Match 2ec900 and 2e8b58 (CD library); code share now 12.98%
13.24% +0.06%12.97% +0.06%<0.01%ab31007 Match 2eb660, 2e8758, 2e8500 (CD library); code share now 12.97%
13.18% +0.07%12.90% +0.07%<0.01%35dfb0a Match 3 more CD-library wrappers (2ec528 2ec348 2eb8a0)
13.11% +0.11%12.83% +0.11%<0.01%ed0b186 Match 6 CD-library wrappers (2ea9f0 2eabb8 2eb4c0 2ebab0 2eaff8 2eb368); code share now 12.83%
13.00%12.72%<0.01%8edb5c0 Add ee-gcc 2.96 as compiler 296; match battle_00126a68 with it; session 17 notes
12.99% +0.01%12.72% +0.01%<0.01%7c971a3 Match FUN_001337b8 (callee return type); code share now 12.72%
12.99% +0.12%12.71% +0.12%<0.01%c7e9481 Match 15 more functions (29D010 callers, find loop, GS-style stores); code share now 12.71%
12.87% +0.02%12.59% +0.02%<0.01%ed3d35c Match FUN_00113ec8 (permuter hit); code share now 12.60%
12.84% +0.01%12.57% +0.01%<0.01%852fb7a Match a few more functions; code share now 12.57%; session 15 notes
12.83% +0.06%12.55% +0.06%<0.01%775565d Match 3 more functions (2988a0 GS call chain, 190eb0 init, 2c7850 IPU header via as210)
12.77% +0.07%12.49% +0.07%<0.01%327fd47 Match 7 more functions (pass-through args, permuter hits, call chains)
12.70% +0.12%12.43% +0.12%<0.01%021eaaf Match 24 more functions (struct-array tables, pointer param + int copy, 990721-r5900 plain)
12.58% +0.03%12.30% +0.03%<0.01%334099e Match 9 more functions; code share now 12.30% (goal reached)
12.55% +0.04%12.27% +0.04%<0.01%c177e32 Match 6 more functions (ggint: 64-bit params narrowed to int; code share now 12.27%)
12.50% +0.05%12.23% +0.05%<0.01%14045bb Match 7 more functions (batread, sarva table loaders, 1588f8; code share now 12.23%)

Badges

For your README. They show the default version and update with every report.

Decompiled
[![Decompiled](https://decompilati.onl/badge/legaia-2-duel-saga.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)
Matching
[![Matching](https://decompilati.onl/badge/legaia-2-duel-saga/matching.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)
Data
[![Data](https://decompilati.onl/badge/legaia-2-duel-saga/data.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)
Functions
[![Functions](https://decompilati.onl/badge/legaia-2-duel-saga/functions.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)