; ; AchievementManager::achievementForUnlock from 0x3bf3a8 to 0x3bf524 (380 bytes) ; ; 6 xrefs: ; > GJGarageLayer::achievementForUnlock @ 0x50c258 ; > GJGarageLayer::titleForUnlock @ 0x50c4b8 ; > GJGarageLayer::descriptionForUnlock @ 0x50c56c ; > ItemInfoPopup::init @ 0x50db9a ; > GameStatsManager::getItemUnlockStateLite @ 0x528dbc ; > GameStatsManager::generateItemUnlockableData @ 0x52b790 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:46:29 +0000 ; PUSH.W {R4-R10,LR} ; +0x0, 0x3bf3a8 MOV R9, R2 ; +0x4, 0x3bf3ac LDR R6, =(__stack_chk_guard_ptr - 0x3BF3BC) ; +0x6, 0x3bf3ae SUB.W SP, SP, #0x218 ; +0x8, 0x3bf3b0 ADD R5, SP, #0x218+var_204 ; +0xc, 0x3bf3b4 SUBS R3, #1; switch 15 cases ; +0xe, 0x3bf3b6 ADD R6, PC; __stack_chk_guard_ptr ; +0x10, 0x3bf3b8 LDR R6, [R6]; __stack_chk_guard ; +0x12, 0x3bf3ba MOV R10, R1 ; +0x14, 0x3bf3bc ADD.W R8, SP, #0x218+var_1F8 ; +0x16, 0x3bf3be MOV.W R1, #0x1F4 ; +0x1a, 0x3bf3c2 LDR R2, [R6] ; +0x1e, 0x3bf3c6 MOV R7, R0 ; +0x20, 0x3bf3c8 STR R1, [R5,#4] ; +0x22, 0x3bf3ca MOV R4, SP ; +0x24, 0x3bf3cc STR.W R8, [R5,#8] ; +0x26, 0x3bf3ce STR R2, [SP,#0x218+var_4] ; +0x2a, 0x3bf3d2 MOVS R2, #0 ; +0x2c, 0x3bf3d4 STR R2, [R5] ; +0x2e, 0x3bf3d6 CMP R3, #0xE ; +0x30, 0x3bf3d8 BHI def_3BF3DC; jumptable 003BF3DC default case ; +0x32, 0x3bf3da TBB.W [PC,R3]; switch jump ; +0x34, 0x3bf3dc DCB 8; jump table for switch statement ; +0x38, 0x3bf3e0 DCB 0xB ; +0x39, 0x3bf3e1 DCB 0xE ; +0x3a, 0x3bf3e2 DCB 0x11 ; +0x3b, 0x3bf3e3 DCB 0x14 ; +0x3c, 0x3bf3e4 DCB 0x17 ; +0x3d, 0x3bf3e5 DCB 0x1A ; +0x3e, 0x3bf3e6 DCB 0x1D ; +0x3f, 0x3bf3e7 DCB 0x20 ; +0x40, 0x3bf3e8 DCB 0x23 ; +0x41, 0x3bf3e9 DCB 0x26 ; +0x42, 0x3bf3ea DCB 0x2F ; +0x43, 0x3bf3eb DCB 0x29 ; +0x44, 0x3bf3ec DCB 0x2C ; +0x45, 0x3bf3ed DCB 0x32 ; +0x46, 0x3bf3ee ALIGN 2 ; +0x47, 0x3bf3ef LDR R3, =(aIcon_0 - 0x3BF3F6); jumptable 003BF3DC case 1 ; +0x48, 0x3bf3f0 ADD R3, PC; "icon_" ; +0x4a, 0x3bf3f2 B loc_3BF44E ; +0x4c, 0x3bf3f4 LDR R3, =(aColor - 0x3BF3FC); jumptable 003BF3DC case 2 ; +0x4e, 0x3bf3f6 ADD R3, PC; "color_" ; +0x50, 0x3bf3f8 B loc_3BF44E ; +0x52, 0x3bf3fa LDR R3, =(aColor2 - 0x3BF402); jumptable 003BF3DC case 3 ; +0x54, 0x3bf3fc ADD R3, PC; "color2_" ; +0x56, 0x3bf3fe B loc_3BF44E ; +0x58, 0x3bf400 LDR R3, =(aShip - 0x3BF408); jumptable 003BF3DC case 4 ; +0x5a, 0x3bf402 ADD R3, PC; "ship_" ; +0x5c, 0x3bf404 B loc_3BF44E ; +0x5e, 0x3bf406 LDR R3, =(aBall - 0x3BF40E); jumptable 003BF3DC case 5 ; +0x60, 0x3bf408 ADD R3, PC; "ball_" ; +0x62, 0x3bf40a B loc_3BF44E ; +0x64, 0x3bf40c LDR R3, =(aBird - 0x3BF414); jumptable 003BF3DC case 6 ; +0x66, 0x3bf40e ADD R3, PC; "bird_" ; +0x68, 0x3bf410 B loc_3BF44E ; +0x6a, 0x3bf412 LDR R3, =(aDart - 0x3BF41A); jumptable 003BF3DC case 7 ; +0x6c, 0x3bf414 ADD R3, PC; "dart_" ; +0x6e, 0x3bf416 B loc_3BF44E ; +0x70, 0x3bf418 LDR R3, =(aRobot - 0x3BF420); jumptable 003BF3DC case 8 ; +0x72, 0x3bf41a ADD R3, PC; "robot_" ; +0x74, 0x3bf41c B loc_3BF44E ; +0x76, 0x3bf41e LDR R3, =(aSpider - 0x3BF426); jumptable 003BF3DC case 9 ; +0x78, 0x3bf420 ADD R3, PC; "spider_" ; +0x7a, 0x3bf422 B loc_3BF44E ; +0x7c, 0x3bf424 LDR R3, =(aSpecial - 0x3BF42C); jumptable 003BF3DC case 10 ; +0x7e, 0x3bf426 ADD R3, PC; "special_" ; +0x80, 0x3bf428 B loc_3BF44E ; +0x82, 0x3bf42a LDR R3, =(aDeath - 0x3BF432); jumptable 003BF3DC case 11 ; +0x84, 0x3bf42c ADD R3, PC; "death_" ; +0x86, 0x3bf42e B loc_3BF44E ; +0x88, 0x3bf430 LDR R3, =(aSwing - 0x3BF438); jumptable 003BF3DC case 13 ; +0x8a, 0x3bf432 ADD R3, PC; "swing_" ; +0x8c, 0x3bf434 B loc_3BF44E ; +0x8e, 0x3bf436 LDR R3, =(aJetpack - 0x3BF43E); jumptable 003BF3DC case 14 ; +0x90, 0x3bf438 ADD R3, PC; "jetpack_" ; +0x92, 0x3bf43a B loc_3BF44E ; +0x94, 0x3bf43c LDR R3, =(aItem - 0x3BF444); jumptable 003BF3DC case 12 ; +0x96, 0x3bf43e ADD R3, PC; "item_" ; +0x98, 0x3bf440 B loc_3BF44E ; +0x9a, 0x3bf442 LDR R3, =(aShipstreak - 0x3BF44A); jumptable 003BF3DC case 15 ; +0x9c, 0x3bf444 ADD R3, PC; "shipstreak_" ; +0x9e, 0x3bf446 B loc_3BF44E ; +0xa0, 0x3bf448 LDR R3, =(asc_B79E73 - 0x3BF450); jumptable 003BF3DC default case ; +0xa2, 0x3bf44a ADD R3, PC; " _" ; +0xa4, 0x3bf44c STR R3, [R4] ; +0xa6, 0x3bf44e MOV R0, R5 ; +0xa8, 0x3bf450 STR R2, [R4,#4] ; +0xaa, 0x3bf452 LDM.W R4, {R1,R2} ; +0xac, 0x3bf454 BL _ZN3fmt11BasicWriterIcElsENS_14BasicStringRefIcEE; fmt::BasicWriter::operator<<(fmt::BasicStringRef) ; +0xb0, 0x3bf458 CMP.W R9, #9 ; +0xb4, 0x3bf45c BGT loc_3BF476 ; +0xb8, 0x3bf460 LDR R3, =(a0 - 0x3BF46A); "0" ; +0xba, 0x3bf462 MOV R0, R5 ; +0xbc, 0x3bf464 ADD R3, PC; "0" ; +0xbe, 0x3bf466 STR R3, [R4] ; +0xc0, 0x3bf468 MOVS R3, #0 ; +0xc2, 0x3bf46a STR R3, [R4,#4] ; +0xc4, 0x3bf46c LDM.W R4, {R1,R2} ; +0xc6, 0x3bf46e BL _ZN3fmt11BasicWriterIcElsENS_14BasicStringRefIcEE; fmt::BasicWriter::operator<<(fmt::BasicStringRef) ; +0xca, 0x3bf472 MOV R0, R5 ; +0xce, 0x3bf476 MOV R1, R9 ; +0xd0, 0x3bf478 MOV R2, R4 ; +0xd2, 0x3bf47a STR.W R9, [R4] ; +0xd4, 0x3bf47c BL _ZN3fmt11BasicWriterIcE9FormatIntIiNS_13IntFormatSpecIiNS_8TypeSpecILc0EEEcEEEEvT_RKT0_; fmt::BasicWriter::FormatInt,char>>(int,fmt::IntFormatSpec,char> const&) ; +0xd8, 0x3bf480 LDR R4, [R5] ; +0xdc, 0x3bf484 LDR R3, [R5,#4] ; +0xde, 0x3bf486 ADDS R1, R4, #1; unsigned int ; +0xe0, 0x3bf488 LDR.W R9, [R10,#0x110] ; +0xe2, 0x3bf48a CMP R1, R3 ; +0xe6, 0x3bf48e BHI loc_3BF4B6 ; +0xe8, 0x3bf490 LDR R2, [R5,#8] ; +0xea, 0x3bf492 MOVS R3, #0 ; +0xec, 0x3bf494 STRB R3, [R2,R4] ; +0xee, 0x3bf496 ADD R4, SP, #0x218+var_210 ; +0xf0, 0x3bf498 LDR.W R10, [R5,#8] ; +0xf2, 0x3bf49a STR R3, [R4] ; +0xf6, 0x3bf49e STR R3, [R4,#4] ; +0xf8, 0x3bf4a0 STR R3, [R4,#8] ; +0xfa, 0x3bf4a2 MOV R0, R10; char * ; +0xfc, 0x3bf4a4 BLX strlen ; +0xfe, 0x3bf4a6 MOV R1, R10 ; +0x102, 0x3bf4aa MOV R2, R0 ; +0x104, 0x3bf4ac MOV R0, R4 ; +0x106, 0x3bf4ae BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x108, 0x3bf4b0 B loc_3BF4BE ; +0x10c, 0x3bf4b4 MOV R0, R5; int ; +0x10e, 0x3bf4b6 BL _ZN3fmt8internal5ArrayIcLj500EE4growEj; fmt::internal::Array::grow(uint) ; +0x110, 0x3bf4b8 B loc_3BF492 ; +0x114, 0x3bf4bc MOV R0, R9 ; +0x116, 0x3bf4be MOV R1, R4 ; +0x118, 0x3bf4c0 BL _ZN7cocos2d12CCDictionary11valueForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x11a, 0x3bf4c2 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x11e, 0x3bf4c6 MOVS R3, #0 ; +0x122, 0x3bf4ca STR R3, [R7] ; +0x124, 0x3bf4cc STR R3, [R7,#4] ; +0x126, 0x3bf4ce MOV R9, R0 ; +0x128, 0x3bf4d0 STR R3, [R7,#8] ; +0x12a, 0x3bf4d2 BLX strlen ; +0x12c, 0x3bf4d4 MOV R1, R9 ; +0x130, 0x3bf4d8 MOV R2, R0 ; +0x132, 0x3bf4da MOV R0, R7 ; +0x134, 0x3bf4dc BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x136, 0x3bf4de MOV R0, R4 ; +0x13a, 0x3bf4e2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x13c, 0x3bf4e4 LDR R0, [R5,#8]; void * ; +0x140, 0x3bf4e8 CMP R0, R8 ; +0x142, 0x3bf4ea BEQ loc_3BF50E ; +0x144, 0x3bf4ec CBZ R0, loc_3BF50E ; +0x146, 0x3bf4ee BL _ZdaPv; operator delete[](void *) ; +0x148, 0x3bf4f0 B loc_3BF50E ; +0x14c, 0x3bf4f4 MOV R0, R4 ; +0x14e, 0x3bf4f6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x150, 0x3bf4f8 B loc_3BF4FE ; +0x154, 0x3bf4fc LDR R0, [R5,#8]; void * ; +0x156, 0x3bf4fe CMP R0, R8 ; +0x158, 0x3bf500 BEQ loc_3BF50A ; +0x15a, 0x3bf502 CBZ R0, loc_3BF50A ; +0x15c, 0x3bf504 BL _ZdaPv; operator delete[](void *) ; +0x15e, 0x3bf506 BL __cxa_end_cleanup ; +0x162, 0x3bf50a LDR R2, [SP,#0x218+var_4] ; +0x166, 0x3bf50e MOV R0, R7 ; +0x168, 0x3bf510 LDR R3, [R6] ; +0x16a, 0x3bf512 CMP R2, R3 ; +0x16c, 0x3bf514 BEQ loc_3BF51C ; +0x16e, 0x3bf516 BLX __stack_chk_fail ; +0x170, 0x3bf518 ADD.W SP, SP, #0x218 ; +0x174, 0x3bf51c POP.W {R4-R10,PC} ; +0x178, 0x3bf520