{"type": "func", "start": 5372157904, "end": 5372158285, "name": "GJBaseGameLayer::getParticleKey", "pseudocode": "// \n// GJBaseGameLayer::getParticleKey from 0x140349fd0 to 0x14034a14d (381 bytes)\n// \n// 3 xrefs:\n// > GameObject::createAndAddParticle @ 0x140295cc8\n// > GJBaseGameLayer::createParticle @ 0x14034a2aa\n// > <???> @ 0x14091ffd0\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=2\n_QWORD *__fastcall GJBaseGameLayer::getParticleKey(\n        __int64 a1,\n        _QWORD *a2,\n        unsigned int a3,\n        void *a4,\n        unsigned int a5,\n        unsigned int a6)\n{\n  _BYTE *v9; // rax\n  size_t v10; // rbx\n  size_t v11; // r8\n  void **v12; // rdx\n  void *v13; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-258h] BYREF\n  __int128 v16; // [rsp+50h] [rbp-248h]\n  _BYTE v17[528]; // [rsp+60h] [rbp-238h] BYREF\n\n  fmt::BasicWriter<char>::BasicWriter<char>(v17);\n  fmt::BasicWriter<char>::operator<<(v17, a3);\n  Block[0] = a4;\n  Block[1] = nullptr;\n  fmt::BasicWriter<char>::operator<<(v17, Block);\n  fmt::BasicWriter<char>::operator<<(v17, a5);\n  fmt::BasicWriter<char>::operator<<(v17, a6);\n  v9 = (_BYTE *)fmt::BasicWriter<char>::c_str(v17);\n  *(_OWORD *)Block = 0;\n  v16 = 0;\n  v10 = -1;\n  v11 = -1;\n  do\n    ++v11;\n  while ( v9[v11] );\n  sub_14003D230(Block, v9, v11);\n  v12 = Block;\n  if ( *((_QWORD *)&v16 + 1) > 0xFu )\n    v12 = (void **)Block[0];\n  *(_OWORD *)a2 = 0;\n  a2[2] = 0;\n  a2[3] = 0;\n  do\n    ++v10;\n  while ( *((_BYTE *)v12 + v10) );\n  sub_14003D230(a2, v12, v10);\n  if ( *((_QWORD *)&v16 + 1) > 0xFu )\n  {\n    v13 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )\n    {\n      v13 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v13);\n  }\n  fmt::BasicWriter<char>::~BasicWriter<char>(v17);\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getParticleKey from 0x140349fd0 to 0x14034a14d (381 bytes)\n; \n; 3 xrefs:\n; > GameObject::createAndAddParticle @ 0x140295cc8\n; > GJBaseGameLayer::createParticle @ 0x14034a2aa\n; > <???> @ 0x14091ffd0\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, 0x140349fd0\npush    rbp                                                            ; +0x5, 0x140349fd5\npush    rsi                                                            ; +0x6, 0x140349fd6\npush    rdi                                                            ; +0x7, 0x140349fd7\nsub     rsp, 280h                                                      ; +0x8, 0x140349fd8\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140349fdf\nxor     rax, rsp                                                       ; +0x16, 0x140349fe6\nmov     [rsp+298h+var_28], rax                                         ; +0x19, 0x140349fe9\nmov     rdi, r9                                                        ; +0x21, 0x140349ff1\nmov     ebx, r8d                                                       ; +0x24, 0x140349ff4\nmov     rsi, rdx                                                       ; +0x27, 0x140349ff7\nmov     [rsp+298h+Block], rdx                                          ; +0x2a, 0x140349ffa\nxor     ebp, ebp                                                       ; +0x2f, 0x140349fff\nlea     rcx, [rsp+298h+var_238]                                        ; +0x31, 0x14034a001\ncall    cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::BasicWriter<char>(void) ; +0x36, 0x14034a006\nnop                                                                    ; +0x3c, 0x14034a00c\nmov     edx, ebx                                                       ; +0x3d, 0x14034a00d\nlea     rcx, [rsp+298h+var_238]                                        ; +0x3f, 0x14034a00f\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x44, 0x14034a014\nmov     [rsp+298h+Block], rdi                                          ; +0x4a, 0x14034a01a\nmov     [rsp+298h+Block+8], rbp                                        ; +0x4f, 0x14034a01f\nlea     rdx, [rsp+298h+Block]                                          ; +0x54, 0x14034a024\nlea     rcx, [rsp+298h+var_238]                                        ; +0x59, 0x14034a029\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x5e, 0x14034a02e\nmov     edx, [rsp+298h+arg_20]                                         ; +0x64, 0x14034a034\nlea     rcx, [rsp+298h+var_238]                                        ; +0x6b, 0x14034a03b\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x70, 0x14034a040\nmov     edx, [rsp+298h+arg_28]                                         ; +0x76, 0x14034a046\nlea     rcx, [rsp+298h+var_238]                                        ; +0x7d, 0x14034a04d\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x82, 0x14034a052\nlea     rcx, [rsp+298h+var_238]                                        ; +0x88, 0x14034a058\ncall    cs:?c_str@?$BasicWriter@D@fmt@@QEBAPEBDXZ; fmt::BasicWriter<char>::c_str(void) ; +0x8d, 0x14034a05d\nxorps   xmm0, xmm0                                                     ; +0x93, 0x14034a063\nmovups  xmmword ptr [rsp+298h+Block], xmm0                             ; +0x96, 0x14034a066\nxorps   xmm1, xmm1                                                     ; +0x9b, 0x14034a06b\nmovdqu  [rsp+298h+var_248], xmm1                                       ; +0x9e, 0x14034a06e\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xa4, 0x14034a074\nmov     r8, rbx                                                        ; +0xab, 0x14034a07b\nxchg    ax, ax                                                         ; +0xae, 0x14034a07e\ninc     r8                                                             ; +0xb0, 0x14034a080\ncmp     byte ptr [rax+r8], 0                                           ; +0xb3, 0x14034a083\njnz     short loc_14034A080                                            ; +0xb8, 0x14034a088\nmov     rdx, rax                                                       ; +0xba, 0x14034a08a\nlea     rcx, [rsp+298h+Block]                                          ; +0xbd, 0x14034a08d\ncall    sub_14003D230                                                  ; +0xc2, 0x14034a092\nnop                                                                    ; +0xc7, 0x14034a097\nlea     rdx, [rsp+298h+Block]                                          ; +0xc8, 0x14034a098\ncmp     qword ptr [rsp+298h+var_248+8], 0Fh                            ; +0xcd, 0x14034a09d\ncmova   rdx, [rsp+298h+Block]                                          ; +0xd3, 0x14034a0a3\nxorps   xmm0, xmm0                                                     ; +0xd9, 0x14034a0a9\nmovups  xmmword ptr [rsi], xmm0                                        ; +0xdc, 0x14034a0ac\nmov     [rsi+10h], rbp                                                 ; +0xdf, 0x14034a0af\nmov     [rsi+18h], rbp                                                 ; +0xe3, 0x14034a0b3\ninc     rbx                                                            ; +0xe7, 0x14034a0b7\ncmp     byte ptr [rdx+rbx], 0                                          ; +0xea, 0x14034a0ba\njnz     short loc_14034A0B7                                            ; +0xee, 0x14034a0be\nmov     r8, rbx                                                        ; +0xf0, 0x14034a0c0\nmov     rcx, rsi                                                       ; +0xf3, 0x14034a0c3\ncall    sub_14003D230                                                  ; +0xf6, 0x14034a0c6\nnop                                                                    ; +0xfb, 0x14034a0cb\nmov     rdx, qword ptr [rsp+298h+var_248+8]                            ; +0xfc, 0x14034a0cc\ncmp     rdx, 0Fh                                                       ; +0x101, 0x14034a0d1\njbe     short loc_14034A11C                                            ; +0x105, 0x14034a0d5\ninc     rdx                                                            ; +0x107, 0x14034a0d7\nmov     rcx, [rsp+298h+Block]; Block                                   ; +0x10a, 0x14034a0da\nmov     rax, rcx                                                       ; +0x10f, 0x14034a0df\ncmp     rdx, 1000h                                                     ; +0x112, 0x14034a0e2\njb      short loc_14034A116                                            ; +0x119, 0x14034a0e9\nadd     rdx, 27h ; '''                                                 ; +0x11b, 0x14034a0eb\nmov     rcx, [rcx-8]                                                   ; +0x11f, 0x14034a0ef\nsub     rax, rcx                                                       ; +0x123, 0x14034a0f3\nsub     rax, 8                                                         ; +0x126, 0x14034a0f6\ncmp     rax, 1Fh                                                       ; +0x12a, 0x14034a0fa\njbe     short loc_14034A116                                            ; +0x12e, 0x14034a0fe\nmov     [rsp+298h+Reserved], rbp; Reserved                             ; +0x130, 0x14034a100\nxor     r9d, r9d; LineNo                                               ; +0x135, 0x14034a105\nxor     r8d, r8d; FileName                                             ; +0x138, 0x14034a108\nxor     edx, edx; FunctionName                                         ; +0x13b, 0x14034a10b\nxor     ecx, ecx; Expression                                           ; +0x13d, 0x14034a10d\ncall    cs:_invoke_watson                                              ; +0x13f, 0x14034a10f\nalign 2                                                                ; +0x145, 0x14034a115\ncall    j_j_free                                                       ; +0x146, 0x14034a116\nnop                                                                    ; +0x14b, 0x14034a11b\nlea     rcx, [rsp+298h+var_238]                                        ; +0x14c, 0x14034a11c\ncall    cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::~BasicWriter<char>(void) ; +0x151, 0x14034a121\nmov     rax, rsi                                                       ; +0x157, 0x14034a127\nmov     rcx, [rsp+298h+var_28]                                         ; +0x15a, 0x14034a12a\nxor     rcx, rsp; StackCookie                                          ; +0x162, 0x14034a132\ncall    __security_check_cookie                                        ; +0x165, 0x14034a135\nmov     rbx, [rsp+298h+arg_0]                                          ; +0x16a, 0x14034a13a\nadd     rsp, 280h                                                      ; +0x172, 0x14034a142\npop     rdi                                                            ; +0x179, 0x14034a149\npop     rsi                                                            ; +0x17a, 0x14034a14a\npop     rbp                                                            ; +0x17b, 0x14034a14b\nretn                                                                   ; +0x17c, 0x14034a14c", "xrefs": ["GameObject::createAndAddParticle @ 0x140295cc8", "GJBaseGameLayer::createParticle @ 0x14034a2aa", "<???> @ 0x14091ffd0"], "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"}