{"type": "func", "start": 4298292632, "end": 4298292812, "name": "GJStoreItem::create", "pseudocode": "// \n// GJStoreItem::create from 0x10032bd98 to 0x10032be4c (180 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::addStoreItem @ 0x10032bd10\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\nGJStoreItem *__fastcall GJStoreItem::create(int a1, int a2, int a3, int a4, ShopType a5)\n{\n  char *v10; // x19\n\n  v10 = (char *)operator new(0x170u);\n  cocos2d::CCNode::CCNode((__int64)v10);\n  *(_QWORD *)v10 = &off_1007F05D8;\n  *((_DWORD *)v10 + 91) = 0;\n  *(_OWORD *)(v10 + 316) = 0u;\n  *(_OWORD *)(v10 + 332) = 0u;\n  *(_OWORD *)(v10 + 348) = 0u;\n  if ( GJStoreItem::init((GJStoreItem *)v10, a1, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);\n    return nullptr;\n  }\n  return (GJStoreItem *)v10;\n}", "assembly": "; \n; GJStoreItem::create from 0x10032bd98 to 0x10032be4c (180 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::addStoreItem @ 0x10032bd10\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10032bd98\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10032bd9c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10032bda0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10032bda4\nADD             X29, SP, #0x30                                         ; +0x10, 0x10032bda8\nMOV             X20, X4                                                ; +0x14, 0x10032bdac\nMOV             X21, X3                                                ; +0x18, 0x10032bdb0\nMOV             X22, X2                                                ; +0x1c, 0x10032bdb4\nMOV             X23, X1                                                ; +0x20, 0x10032bdb8\nMOV             X24, X0                                                ; +0x24, 0x10032bdbc\nMOV             W0, #0x170; __sz                                       ; +0x28, 0x10032bdc0\nBL              __Znwm; operator new(ulong)                            ; +0x2c, 0x10032bdc4\nMOV             X19, X0                                                ; +0x30, 0x10032bdc8\nBL              cocos2d__CCNode__CCNode                                ; +0x34, 0x10032bdcc\nADRL            X8, unk_1007F05C8                                      ; +0x38, 0x10032bdd0\nADD             X8, X8, #(off_1007F05D8 - 0x1007F05C8)                 ; +0x40, 0x10032bdd8\nSTR             X8, [X19]                                              ; +0x44, 0x10032bddc\nADD             X8, X19, #0x13C                                        ; +0x48, 0x10032bde0\nSTR             WZR, [X19,#0x16C]                                      ; +0x4c, 0x10032bde4\nMOVI            V0.16B, #0                                             ; +0x50, 0x10032bde8\nSTP             Q0, Q0, [X8]                                           ; +0x54, 0x10032bdec\nSTR             Q0, [X8,#0x20]                                         ; +0x58, 0x10032bdf0\nMOV             X0, X19                                                ; +0x5c, 0x10032bdf4\nMOV             X1, X24                                                ; +0x60, 0x10032bdf8\nMOV             X2, X23                                                ; +0x64, 0x10032bdfc\nMOV             X3, X22                                                ; +0x68, 0x10032be00\nMOV             X4, X21                                                ; +0x6c, 0x10032be04\nMOV             X5, X20                                                ; +0x70, 0x10032be08\nBL              GJStoreItem__init                                      ; +0x74, 0x10032be0c\nCBZ             W0, loc_10032BE20                                      ; +0x78, 0x10032be10\nMOV             X0, X19                                                ; +0x7c, 0x10032be14\nBL              cocos2d__CCObject__autorelease                         ; +0x80, 0x10032be18\nB               loc_10032BE34                                          ; +0x84, 0x10032be1c\nLDR             X8, [X19]                                              ; +0x88, 0x10032be20\nLDR             X8, [X8,#0x10]                                         ; +0x8c, 0x10032be24\nMOV             X0, X19                                                ; +0x90, 0x10032be28\nBLR             X8                                                     ; +0x94, 0x10032be2c\nMOV             X19, #0                                                ; +0x98, 0x10032be30\nMOV             X0, X19                                                ; +0x9c, 0x10032be34\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x10032be38\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x10032be3c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa8, 0x10032be40\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xac, 0x10032be44\nRET                                                                    ; +0xb0, 0x10032be48", "xrefs": ["GameStatsManager::addStoreItem @ 0x10032bd10"], "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"}