Decomped sub_0205E090

Decomped by anonymous decomp.me user
This commit is contained in:
AnonymousRandomPerson
2026-06-21 19:17:04 -04:00
parent d92ff543d1
commit ef0f1750d1
6 changed files with 42 additions and 109 deletions

View File

@@ -1,3 +0,0 @@
#pragma once
.public MISSION_DELIVER_LIST_PTR
.public sub_0205E01C

View File

@@ -1,105 +0,0 @@
.include "asm/macros.inc"
.include "main_0205E090.inc"
.text
arm_func_start sub_0205E090
sub_0205E090: ; 0x0205E090
stmdb sp!, {r4, r5, r6, r7, r8, lr}
mov r6, r0
mov r5, r1
mov r4, r2
mov r8, #0
ldr r7, _0205E1E4 ; =MISSION_DELIVER_LIST_PTR
b _0205E0D4
_0205E0AC:
ldr r0, [r7, #0x18]
mov r1, r6
mov r2, r5
mov r3, r4
add r0, r0, r8, lsl #5
bl sub_0205E01C
cmp r0, #0
movne r0, #1
ldmneia sp!, {r4, r5, r6, r7, r8, pc}
add r8, r8, #1
_0205E0D4:
cmp r8, #8
blt _0205E0AC
mov r8, #0
ldr r7, _0205E1E4 ; =MISSION_DELIVER_LIST_PTR
b _0205E114
_0205E0E8:
ldr r0, [r7, #0x18]
mov r1, r6
add r0, r0, #0x100
mov r2, r5
mov r3, r4
add r0, r0, r8, lsl #5
bl sub_0205E01C
cmp r0, #0
movne r0, #1
ldmneia sp!, {r4, r5, r6, r7, r8, pc}
add r8, r8, #1
_0205E114:
cmp r8, #8
blt _0205E0E8
mov r8, #0
ldr r7, _0205E1E4 ; =MISSION_DELIVER_LIST_PTR
b _0205E154
_0205E128:
ldr r0, [r7, #0x18]
mov r1, r6
add r0, r0, #0x200
mov r2, r5
mov r3, r4
add r0, r0, r8, lsl #5
bl sub_0205E01C
cmp r0, #0
movne r0, #1
ldmneia sp!, {r4, r5, r6, r7, r8, pc}
add r8, r8, #1
_0205E154:
cmp r8, #8
blt _0205E128
mov r8, #0
ldr r7, _0205E1E4 ; =MISSION_DELIVER_LIST_PTR
b _0205E194
_0205E168:
ldr r0, [r7, #0x18]
mov r1, r6
add r0, r0, #0x300
mov r2, r5
mov r3, r4
add r0, r0, r8, lsl #5
bl sub_0205E01C
cmp r0, #0
movne r0, #1
ldmneia sp!, {r4, r5, r6, r7, r8, pc}
add r8, r8, #1
_0205E194:
cmp r8, #1
blt _0205E168
mov r8, #0
ldr r7, _0205E1E4 ; =MISSION_DELIVER_LIST_PTR
b _0205E1D4
_0205E1A8:
ldr r0, [r7, #0x18]
mov r1, r6
add r0, r0, #0x320
mov r2, r5
mov r3, r4
add r0, r0, r8, lsl #5
bl sub_0205E01C
cmp r0, #0
movne r0, #1
ldmneia sp!, {r4, r5, r6, r7, r8, pc}
add r8, r8, #1
_0205E1D4:
cmp r8, #1
blt _0205E1A8
mov r0, #0
ldmia sp!, {r4, r5, r6, r7, r8, pc}
.align 2, 0
_0205E1E4: .word MISSION_DELIVER_LIST_PTR
arm_func_end sub_0205E090

View File

@@ -509,6 +509,7 @@ _022FD070:
_022FD080: .word DUNGEON_PTR
arm_func_end SpawnInitialMonsters
; https://decomp.me/scratch/x6LAV
arm_func_start SpawnMonster
SpawnMonster: ; 0x022FD084
#ifdef JAPAN

View File

@@ -13,5 +13,6 @@ struct unkStruct_0205E01C {
};
bool8 sub_0205E01C(struct unkStruct_0205E01C *ptr, s32 arg1, s32 arg2, s32 arg3);
s32 sub_0205E090(s32 arg0, s32 arg1, s32 arg2);
#endif //PMDSKY_MAIN_0205E01C_H

View File

@@ -191,7 +191,6 @@ Static main
Object src/main_0205D11C.o
Object asm/main_0205D1F4.o
Object src/main_0205E01C.o
Object asm/main_0205E090.o
Object src/main_0205E288.o
Object asm/main_0205E48C.o
Object src/main_0205E954.o

View File

@@ -1,4 +1,7 @@
#include "main_0205E01C.h"
#include "mission.h"
extern struct mission_deliver_list MISSION_DELIVER_LIST_PTR;
s32 sub_0205E258(struct unkStruct_0205E01C *ptr);
@@ -20,3 +23,40 @@ bool8 sub_0205E01C(struct unkStruct_0205E01C *ptr, s32 arg1, s32 arg2, s32 arg3)
return FALSE;
}
s32 sub_0205E090(s32 arg0, s32 arg1, s32 arg2)
{
s32 i;
for(i = 0; i < 8; i++){
if (sub_0205E01C((struct unkStruct_0205E01C*)(MISSION_DELIVER_LIST_PTR.unk18 + (i * 32)), arg0, arg1, arg2) != 0) {
return 1;
}
}
for(i = 0; i < 8; i++){
if (sub_0205E01C((struct unkStruct_0205E01C*)(MISSION_DELIVER_LIST_PTR.unk18 + 0x100 + (i * 32)), arg0, arg1, arg2) != 0) {
return 1;
}
}
for(i = 0; i < 8; i++){
if (sub_0205E01C((struct unkStruct_0205E01C*)(MISSION_DELIVER_LIST_PTR.unk18 + 0x200 + (i * 32)), arg0, arg1, arg2) != 0) {
return 1;
}
}
for(i = 0; i < 1; i++){
if (sub_0205E01C((struct unkStruct_0205E01C*)(MISSION_DELIVER_LIST_PTR.unk18 + 0x300 + (i * 32)), arg0, arg1, arg2) != 0) {
return 1;
}
}
for(i = 0; i < 1; i++){
if (sub_0205E01C((struct unkStruct_0205E01C*)(MISSION_DELIVER_LIST_PTR.unk18 + 0x320 + (i * 32)), arg0, arg1, arg2) != 0) {
return 1;
}
}
return 0;
}