{"type": "func", "start": 3974348, "end": 3974432, "name": "GJLocalScore::create", "pseudocode": "// \n// GJLocalScore::create from 0x3ca4cc to 0x3ca520 (84 bytes)\n// \n// 1 xrefs:\n// > LevelLeaderboard::getLocalScores @ 0x4e4e02\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\nGJLocalScore *GJLocalScore::create(int a1, int a2)\n{\n  GJLocalScore *v4; // r4\n  GJLocalScore_vtbl *v5; // r3\n  int *v6; // r0\n\n  v4 = (GJLocalScore *)operator new(0x40u);\n  cocos2d::CCObject::CCObject(v4);\n  v4->__vftable = (GJLocalScore_vtbl *)&off_A50130;\n  v4->m_points = 0;\n  v4->m_type = 0;\n  v4->m_currentScore = 0;\n  if ( GJLocalScore::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    v5 = v4->__vftable;\n    v6 = (int *)v4;\n    v4 = nullptr;\n    v5->~GJLocalScore_0((GJLocalScore *)v6);\n  }\n  return v4;\n}", "assembly": "; \n; GJLocalScore::create from 0x3ca4cc to 0x3ca520 (84 bytes)\n; \n; 1 xrefs:\n; > LevelLeaderboard::getLocalScores @ 0x4e4e02\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            {R4-R6,LR}                                             ; +0x0, 0x3ca4cc\nMOV             R6, R0                                                 ; +0x2, 0x3ca4ce\nMOVS            R0, #0x40 ; '@'; unsigned int                          ; +0x4, 0x3ca4d0\nMOV             R5, R1                                                 ; +0x6, 0x3ca4d2\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x3ca4d4\nMOV             R4, R0                                                 ; +0xc, 0x3ca4d8\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0xe, 0x3ca4da\nLDR             R3, =(_ZTV12GJLocalScore_ptr - 0x3CA4EA)               ; +0x12, 0x3ca4de\nMOV             R2, R5; int                                            ; +0x14, 0x3ca4e0\nMOV             R0, R4; this                                           ; +0x16, 0x3ca4e2\nMOV             R1, R6; int                                            ; +0x18, 0x3ca4e4\nADD             R3, PC; _ZTV12GJLocalScore_ptr                         ; +0x1a, 0x3ca4e6\nLDR             R3, [R3]; `vtable for'GJLocalScore ...                 ; +0x1c, 0x3ca4e8\nADDS            R3, #8                                                 ; +0x1e, 0x3ca4ea\nSTR             R3, [R4]                                               ; +0x20, 0x3ca4ec\nMOVS            R3, #0                                                 ; +0x22, 0x3ca4ee\nSTR             R3, [R4,#0x34]                                         ; +0x24, 0x3ca4f0\nSTR             R3, [R4,#0x38]                                         ; +0x26, 0x3ca4f2\nSTRB.W          R3, [R4,#0x3C]                                         ; +0x28, 0x3ca4f4\nBL              _ZN12GJLocalScore4initEii; GJLocalScore::init(int,int) ; +0x2c, 0x3ca4f8\nMOV             R5, R0                                                 ; +0x30, 0x3ca4fc\nCBZ             R0, loc_3CA512                                         ; +0x32, 0x3ca4fe\nMOV             R0, R4; this                                           ; +0x34, 0x3ca500\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x36, 0x3ca502\nB               loc_3CA51C                                             ; +0x3a, 0x3ca506\nMOV             R0, R4; p                                              ; +0x3c, 0x3ca508\nBL              _ZdlPv; operator delete(void *)                        ; +0x3e, 0x3ca50a\nBL              __cxa_end_cleanup                                      ; +0x42, 0x3ca50e\nLDR             R3, [R4]                                               ; +0x46, 0x3ca512\nMOV             R0, R4                                                 ; +0x48, 0x3ca514\nMOV             R4, R5                                                 ; +0x4a, 0x3ca516\nLDR             R3, [R3,#8]                                            ; +0x4c, 0x3ca518\nBLX             R3                                                     ; +0x4e, 0x3ca51a\nMOV             R0, R4                                                 ; +0x50, 0x3ca51c\nPOP             {R4-R6,PC}                                             ; +0x52, 0x3ca51e", "xrefs": ["LevelLeaderboard::getLocalScores @ 0x4e4e02"], "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"}