{"type": "func", "start": 5371069760, "end": 5371069929, "name": "GJBaseGameLayer::getParticleKey2", "pseudocode": "// \n// GJBaseGameLayer::getParticleKey2 from 0x140240540 to 0x1402405e9 (169 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::createParticle @ 0x140240874\n// > GJBaseGameLayer::claimParticle @ 0x140240adc\n// > GJBaseGameLayer::unclaimParticle @ 0x140240cf2\n// > <???> @ 0x1406ce3c4\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\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GJBaseGameLayer::getParticleKey2(__int64 a1, _QWORD *a2, const char *a3)\n{\n  const char *v5; // rdx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n\n  v5 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v5 = *(const char **)a3;\n  v6 = cocos2d::CCString::createWithFormat(\"%s%s\", v5, \"#2\");\n  CString = cocos2d::CCString::getCString(v6);\n  *(_OWORD *)a2 = 0;\n  a2[2] = 0;\n  a2[3] = 0;\n  v8 = -1;\n  do\n    ++v8;\n  while ( CString[v8] );\n  sub_14003A930(a2, CString, v8);\n  sub_14003A830((__int64)a3);\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getParticleKey2 from 0x140240540 to 0x1402405e9 (169 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::createParticle @ 0x140240874\n; > GJBaseGameLayer::claimParticle @ 0x140240adc\n; > GJBaseGameLayer::unclaimParticle @ 0x140240cf2\n; > <???> @ 0x1406ce3c4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140240540\npush    rdi                                                            ; +0x5, 0x140240545\nsub     rsp, 40h                                                       ; +0x6, 0x140240546\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14024054a\nxor     rax, rsp                                                       ; +0x11, 0x140240551\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x140240554\nmov     rbx, r8                                                        ; +0x19, 0x140240559\nmov     rdi, rdx                                                       ; +0x1c, 0x14024055c\nmov     [rsp+48h+var_20], rdx                                          ; +0x1f, 0x14024055f\nmov     [rsp+48h+var_20], rbx                                          ; +0x24, 0x140240564\nmov     rdx, r8                                                        ; +0x29, 0x140240569\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2c, 0x14024056c\njbe     short loc_140240576                                            ; +0x31, 0x140240571\nmov     rdx, [r8]                                                      ; +0x33, 0x140240573\nlea     r8, a2; \"#2\"                                                   ; +0x36, 0x140240576\nlea     rcx, aSS_0; \"%s%s\"                                             ; +0x3d, 0x14024057d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x44, 0x140240584\nmov     rcx, rax                                                       ; +0x4a, 0x14024058a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4d, 0x14024058d\nxorps   xmm0, xmm0                                                     ; +0x53, 0x140240593\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x56, 0x140240596\nmov     qword ptr [rdi+10h], 0                                         ; +0x59, 0x140240599\nmov     qword ptr [rdi+18h], 0                                         ; +0x61, 0x1402405a1\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x69, 0x1402405a9\ninc     r8                                                             ; +0x70, 0x1402405b0\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x1402405b3\njnz     short loc_1402405B0                                            ; +0x78, 0x1402405b8\nmov     rdx, rax                                                       ; +0x7a, 0x1402405ba\nmov     rcx, rdi                                                       ; +0x7d, 0x1402405bd\ncall    sub_14003A930                                                  ; +0x80, 0x1402405c0\nnop                                                                    ; +0x85, 0x1402405c5\nmov     rcx, rbx                                                       ; +0x86, 0x1402405c6\ncall    sub_14003A830                                                  ; +0x89, 0x1402405c9\nmov     rax, rdi                                                       ; +0x8e, 0x1402405ce\nmov     rcx, [rsp+48h+var_18]                                          ; +0x91, 0x1402405d1\nxor     rcx, rsp; StackCookie                                          ; +0x96, 0x1402405d6\ncall    __security_check_cookie                                        ; +0x99, 0x1402405d9\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x9e, 0x1402405de\nadd     rsp, 40h                                                       ; +0xa3, 0x1402405e3\npop     rdi                                                            ; +0xa7, 0x1402405e7\nretn                                                                   ; +0xa8, 0x1402405e8", "xrefs": ["GJBaseGameLayer::createParticle @ 0x140240874", "GJBaseGameLayer::claimParticle @ 0x140240adc", "GJBaseGameLayer::unclaimParticle @ 0x140240cf2", "<???> @ 0x1406ce3c4"], "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"}