{"type": "func", "start": 4685436, "end": 4685496, "name": "GJBaseGameLayer::getParticleKey2", "pseudocode": "// \n// GJBaseGameLayer::getParticleKey2 from 0x477e7c to 0x477eb8 (60 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::claimParticle @ 0x477f44\n// > GJBaseGameLayer::unclaimParticle @ 0x47804a\n// > GJBaseGameLayer::createParticle @ 0x48e3e2\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GJBaseGameLayer::getParticleKey2(int a1, int a2, const char **a3)\n{\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%s%s\",\n                              *a3,\n                              \"#2\",\n                              _stack_chk_guard,\n                              a1,\n                              a2,\n                              a3);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_776584(a1, CString);\n  return a1;\n}", "assembly": "; \n; GJBaseGameLayer::getParticleKey2 from 0x477e7c to 0x477eb8 (60 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::claimParticle @ 0x477f44\n; > GJBaseGameLayer::unclaimParticle @ 0x47804a\n; > GJBaseGameLayer::createParticle @ 0x48e3e2\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x0, 0x477e7c\nMOV             R5, R0                                                 ; +0x2, 0x477e7e\nLDR             R4, =(__stack_chk_guard_ptr - 0x477E88)                ; +0x4, 0x477e80\nLDR             R1, [R2]; char *                                       ; +0x6, 0x477e82\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x477e84\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x477e86\nLDR             R0, =(aSS_0 - 0x477E92); \"%s%s\"                        ; +0xc, 0x477e88\nLDR             R2, =(a2_0 - 0x477E94); \"#2\"                           ; +0xe, 0x477e8a\nLDR             R3, [R4]                                               ; +0x10, 0x477e8c\nADD             R0, PC; \"%s%s\"                                         ; +0x12, 0x477e8e\nADD             R2, PC; \"#2\"                                           ; +0x14, 0x477e90\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x16, 0x477e92\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x18, 0x477e94\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1c, 0x477e98\nMOV             R2, SP                                                 ; +0x20, 0x477e9c\nMOV             R1, R0; char *                                         ; +0x22, 0x477e9e\nMOV             R0, R5; int                                            ; +0x24, 0x477ea0\nBL              sub_776584                                             ; +0x26, 0x477ea2\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x2a, 0x477ea6\nLDR             R3, [R4]                                               ; +0x2c, 0x477ea8\nMOV             R0, R5                                                 ; +0x2e, 0x477eaa\nCMP             R2, R3                                                 ; +0x30, 0x477eac\nBEQ             loc_477EB4                                             ; +0x32, 0x477eae\nBLX             __stack_chk_fail                                       ; +0x34, 0x477eb0\nADD             SP, SP, #0xC                                           ; +0x38, 0x477eb4\nPOP             {R4,R5,PC}                                             ; +0x3a, 0x477eb6", "xrefs": ["GJBaseGameLayer::claimParticle @ 0x477f44", "GJBaseGameLayer::unclaimParticle @ 0x47804a", "GJBaseGameLayer::createParticle @ 0x48e3e2"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}