{"type": "func", "start": 5372158288, "end": 5372158457, "name": "GJBaseGameLayer::getParticleKey2", "pseudocode": "// \n// GJBaseGameLayer::getParticleKey2 from 0x14034a150 to 0x14034a1f9 (169 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::createParticle @ 0x14034a4a6\n// > GJBaseGameLayer::claimParticle @ 0x14034a745\n// > GJBaseGameLayer::unclaimParticle @ 0x14034a962\n// > <???> @ 0x14091ffdc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:44 +0000\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_14003D230(a2, CString, v8);\n  sub_14003D310((__int64)a3);\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getParticleKey2 from 0x14034a150 to 0x14034a1f9 (169 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::createParticle @ 0x14034a4a6\n; > GJBaseGameLayer::claimParticle @ 0x14034a745\n; > GJBaseGameLayer::unclaimParticle @ 0x14034a962\n; > <???> @ 0x14091ffdc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:44 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14034a150\npush    rdi                                                            ; +0x5, 0x14034a155\nsub     rsp, 40h                                                       ; +0x6, 0x14034a156\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14034a15a\nxor     rax, rsp                                                       ; +0x11, 0x14034a161\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x14034a164\nmov     rbx, r8                                                        ; +0x19, 0x14034a169\nmov     rdi, rdx                                                       ; +0x1c, 0x14034a16c\nmov     [rsp+48h+var_20], rdx                                          ; +0x1f, 0x14034a16f\nmov     [rsp+48h+var_20], rbx                                          ; +0x24, 0x14034a174\nmov     rdx, r8                                                        ; +0x29, 0x14034a179\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2c, 0x14034a17c\njbe     short loc_14034A186                                            ; +0x31, 0x14034a181\nmov     rdx, [r8]                                                      ; +0x33, 0x14034a183\nlea     r8, a2_0; \"#2\"                                                 ; +0x36, 0x14034a186\nlea     rcx, aSS_0; \"%s%s\"                                             ; +0x3d, 0x14034a18d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x44, 0x14034a194\nmov     rcx, rax                                                       ; +0x4a, 0x14034a19a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4d, 0x14034a19d\nxorps   xmm0, xmm0                                                     ; +0x53, 0x14034a1a3\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x56, 0x14034a1a6\nmov     qword ptr [rdi+10h], 0                                         ; +0x59, 0x14034a1a9\nmov     qword ptr [rdi+18h], 0                                         ; +0x61, 0x14034a1b1\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x69, 0x14034a1b9\ninc     r8                                                             ; +0x70, 0x14034a1c0\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x14034a1c3\njnz     short loc_14034A1C0                                            ; +0x78, 0x14034a1c8\nmov     rdx, rax                                                       ; +0x7a, 0x14034a1ca\nmov     rcx, rdi                                                       ; +0x7d, 0x14034a1cd\ncall    sub_14003D230                                                  ; +0x80, 0x14034a1d0\nnop                                                                    ; +0x85, 0x14034a1d5\nmov     rcx, rbx                                                       ; +0x86, 0x14034a1d6\ncall    sub_14003D310                                                  ; +0x89, 0x14034a1d9\nmov     rax, rdi                                                       ; +0x8e, 0x14034a1de\nmov     rcx, [rsp+48h+var_18]                                          ; +0x91, 0x14034a1e1\nxor     rcx, rsp; StackCookie                                          ; +0x96, 0x14034a1e6\ncall    __security_check_cookie                                        ; +0x99, 0x14034a1e9\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x9e, 0x14034a1ee\nadd     rsp, 40h                                                       ; +0xa3, 0x14034a1f3\npop     rdi                                                            ; +0xa7, 0x14034a1f7\nretn                                                                   ; +0xa8, 0x14034a1f8", "xrefs": ["GJBaseGameLayer::createParticle @ 0x14034a4a6", "GJBaseGameLayer::claimParticle @ 0x14034a745", "GJBaseGameLayer::unclaimParticle @ 0x14034a962", "<???> @ 0x14091ffdc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}