{"type": "func", "start": 4776580, "end": 4776742, "name": "GJBaseGameLayer::getParticleKey", "pseudocode": "// \n// GJBaseGameLayer::getParticleKey from 0x48e284 to 0x48e326 (162 bytes)\n// \n// 2 xrefs:\n// > GameObject::createAndAddParticle @ 0x35512a\n// > GJBaseGameLayer::createParticle @ 0x48e36a\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::getParticleKey(int a1, int a2, int a3, char *a4, int a5, int a6)\n{\n  char *v8; // r0\n  char *v10[2]; // [sp+4h] [bp-210h] BYREF\n  unsigned int v11[3]; // [sp+Ch] [bp-208h] BYREF\n  char v12; // [sp+18h] [bp-1FCh] BYREF\n\n  v11[0] = 0;\n  v11[1] = 500;\n  v11[2] = (unsigned int)&v12;\n  fmt::BasicWriter<char>::operator<<(v11, a3);\n  v10[0] = a4;\n  v10[1] = nullptr;\n  fmt::BasicWriter<char>::operator<<(v11, a4, 0);\n  fmt::BasicWriter<char>::operator<<(v11, a5);\n  fmt::BasicWriter<char>::operator<<(v11, a6);\n  v8 = (char *)fmt::BasicWriter<char>::c_str((int *)v11);\n  sub_776584((int)v10, v8);\n  sub_776584(a1, v10[0]);\n  sub_774008(v10);\n  fmt::internal::Array<char,500u>::free((int)v11);\n  return a1;\n}", "assembly": "; \n; GJBaseGameLayer::getParticleKey from 0x48e284 to 0x48e326 (162 bytes)\n; \n; 2 xrefs:\n; > GameObject::createAndAddParticle @ 0x35512a\n; > GJBaseGameLayer::createParticle @ 0x48e36a\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.W          {R4-R9,LR}                                             ; +0x0, 0x48e284\nMOV             R9, R3                                                 ; +0x4, 0x48e288\nLDR             R3, =(__stack_chk_guard_ptr - 0x48E298)                ; +0x6, 0x48e28a\nSUB.W           SP, SP, #0x214                                         ; +0x8, 0x48e28c\nADD             R4, SP, #0x214+var_208                                 ; +0xc, 0x48e290\nMOVS            R5, #0                                                 ; +0xe, 0x48e292\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x10, 0x48e294\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x12, 0x48e296\nMOV             R8, R0                                                 ; +0x14, 0x48e298\nMOV             R0, R4                                                 ; +0x16, 0x48e29a\nSTR             R5, [R4]                                               ; +0x18, 0x48e29c\nLDR             R1, [R3]                                               ; +0x1a, 0x48e29e\nMOV             R7, R3                                                 ; +0x1c, 0x48e2a0\nMOV             R6, R5                                                 ; +0x1e, 0x48e2a2\nSTR             R1, [SP,#0x214+var_8]                                  ; +0x20, 0x48e2a4\nMOV.W           R1, #0x1F4                                             ; +0x22, 0x48e2a6\nSTR             R1, [R4,#4]                                            ; +0x26, 0x48e2aa\nADD             R1, SP, #0x214+var_1FC                                 ; +0x28, 0x48e2ac\nSTR             R1, [R4,#8]                                            ; +0x2a, 0x48e2ae\nMOV             R1, R2                                                 ; +0x2c, 0x48e2b0\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x2e, 0x48e2b2\nADD             R5, SP, #0x214+var_210                                 ; +0x32, 0x48e2b6\nMOV             R0, R4                                                 ; +0x34, 0x48e2b8\nSTR.W           R9, [R5]                                               ; +0x36, 0x48e2ba\nSTR             R6, [R5,#4]                                            ; +0x3a, 0x48e2be\nLDM.W           R5, {R1,R2}                                            ; +0x3c, 0x48e2c0\nBL              _ZN3fmt11BasicWriterIcElsENS_14BasicStringRefIcEE; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x40, 0x48e2c4\nMOV             R0, R4                                                 ; +0x44, 0x48e2c8\nLDR             R1, [SP,#0x214+arg_0]                                  ; +0x46, 0x48e2ca\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x48, 0x48e2cc\nMOV             R0, R4                                                 ; +0x4c, 0x48e2d0\nLDR             R1, [SP,#0x214+arg_4]                                  ; +0x4e, 0x48e2d2\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x50, 0x48e2d4\nMOV             R0, R4                                                 ; +0x54, 0x48e2d8\nBL              _ZNK3fmt11BasicWriterIcE5c_strEv; fmt::BasicWriter<char>::c_str(void) ; +0x56, 0x48e2da\nMOV             R1, R0; char *                                         ; +0x5a, 0x48e2de\nMOV             R2, SP                                                 ; +0x5c, 0x48e2e0\nMOV             R0, R5; int                                            ; +0x5e, 0x48e2e2\nBL              sub_776584                                             ; +0x60, 0x48e2e4\nMOV             R0, R8; int                                            ; +0x64, 0x48e2e8\nLDR             R1, [R5]; char *                                       ; +0x66, 0x48e2ea\nMOV             R2, SP                                                 ; +0x68, 0x48e2ec\nBL              sub_776584                                             ; +0x6a, 0x48e2ee\nMOV             R0, R5                                                 ; +0x6e, 0x48e2f2\nBL              sub_774008                                             ; +0x70, 0x48e2f4\nMOV             R0, R4                                                 ; +0x74, 0x48e2f8\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x76, 0x48e2fa\nLDR             R2, [SP,#0x214+var_8]                                  ; +0x7a, 0x48e2fe\nLDR             R3, [R7]                                               ; +0x7c, 0x48e300\nMOV             R0, R8                                                 ; +0x7e, 0x48e302\nCMP             R2, R3                                                 ; +0x80, 0x48e304\nBEQ             loc_48E31E                                             ; +0x82, 0x48e306\nBLX             __stack_chk_fail                                       ; +0x84, 0x48e308\nMOV             R0, R5                                                 ; +0x88, 0x48e30c\nBL              sub_774008                                             ; +0x8a, 0x48e30e\nB               loc_48E314                                             ; +0x8e, 0x48e312\nMOV             R0, R4                                                 ; +0x90, 0x48e314\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x92, 0x48e316\nBL              __cxa_end_cleanup                                      ; +0x96, 0x48e31a\nADD.W           SP, SP, #0x214                                         ; +0x9a, 0x48e31e\nPOP.W           {R4-R9,PC}                                             ; +0x9e, 0x48e322", "xrefs": ["GameObject::createAndAddParticle @ 0x35512a", "GJBaseGameLayer::createParticle @ 0x48e36a"], "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"}