{"type": "func", "start": 5471944, "end": 5472062, "name": "AchievementBar::create", "pseudocode": "// \n// AchievementBar::create from 0x537ec8 to 0x537f3e (118 bytes)\n// \n// 1 xrefs:\n// > AchievementNotifier::notifyAchievement @ 0x395e62\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:09 +0000\n// \n\ncocos2d::CCNodeRGBA *__fastcall AchievementBar::create(\n        AchievementBar *this,\n        const char *a2,\n        cocos2d::CCSprite *a3,\n        const char *a4,\n        bool a5)\n{\n  char v8; // r8\n  cocos2d::CCNodeRGBA *v9; // r4\n  int v10; // r3\n  cocos2d::CCNodeRGBA *v11; // r0\n\n  v8 = (char)a4;\n  v9 = (cocos2d::CCNodeRGBA *)operator new(0x13Cu);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v9);\n  *(_DWORD *)v9 = &off_CAB300;\n  *((_DWORD *)v9 + 66) = &off_CAB500;\n  *((_DWORD *)v9 + 71) = 0;\n  *((_DWORD *)v9 + 70) = 0;\n  *((_DWORD *)v9 + 72) = 0;\n  if ( AchievementBar::init(v9, this, a2, a3, v8) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n  }\n  else\n  {\n    v10 = *(_DWORD *)v9;\n    v11 = v9;\n    v9 = nullptr;\n    (*(void (__fastcall **)(cocos2d::CCNodeRGBA *))(v10 + 8))(v11);\n  }\n  return v9;\n}", "assembly": "; \n; AchievementBar::create from 0x537ec8 to 0x537f3e (118 bytes)\n; \n; 1 xrefs:\n; > AchievementNotifier::notifyAchievement @ 0x395e62\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:09 +0000\n; \nPUSH.W          {R0,R1,R4-R8,LR}                                       ; +0x0, 0x537ec8\nMOV             R7, R0                                                 ; +0x4, 0x537ecc\nMOV.W           R0, #0x13C; unsigned int                               ; +0x6, 0x537ece\nMOV             R6, R1                                                 ; +0xa, 0x537ed2\nMOV             R5, R2                                                 ; +0xc, 0x537ed4\nMOV             R8, R3                                                 ; +0xe, 0x537ed6\nBL              _Znwj; operator new(uint)                              ; +0x10, 0x537ed8\nMOV             R4, R0                                                 ; +0x14, 0x537edc\nBL              _ZN7cocos2d10CCNodeRGBAC2Ev; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x16, 0x537ede\nLDR             R3, =(_ZTV14AchievementBar_ptr - 0x537EEC)             ; +0x1a, 0x537ee2\nMOV             R0, R4; this                                           ; +0x1c, 0x537ee4\nMOV             R1, R7; char *                                         ; +0x1e, 0x537ee6\nADD             R3, PC; _ZTV14AchievementBar_ptr                       ; +0x20, 0x537ee8\nLDR             R3, [R3]; `vtable for'AchievementBar ...               ; +0x22, 0x537eea\nADD.W           R2, R3, #8                                             ; +0x24, 0x537eec\nADD.W           R3, R3, #0x208                                         ; +0x28, 0x537ef0\nSTR             R2, [R4]                                               ; +0x2c, 0x537ef4\nMOVS            R2, #0                                                 ; +0x2e, 0x537ef6\nSTR.W           R3, [R4,#0x108]                                        ; +0x30, 0x537ef8\nMOVS            R3, #0                                                 ; +0x34, 0x537efc\nSTR.W           R2, [R4,#0x11C]                                        ; +0x36, 0x537efe\nMOV             R2, R6; char *                                         ; +0x3a, 0x537f02\nSTR.W           R3, [R4,#0x118]                                        ; +0x3c, 0x537f04\nSTR.W           R3, [R4,#0x120]                                        ; +0x40, 0x537f08\nMOV             R3, R5; char *                                         ; +0x44, 0x537f0c\nSTR.W           R8, [SP,#8+var_8]; bool                                ; +0x46, 0x537f0e\nBL              _ZN14AchievementBar4initEPKcS1_S1_b; AchievementBar::init(char const*,char const*,char const*,bool) ; +0x4a, 0x537f12\nMOV             R5, R0                                                 ; +0x4e, 0x537f16\nCBZ             R0, loc_537F2C                                         ; +0x50, 0x537f18\nMOV             R0, R4; this                                           ; +0x52, 0x537f1a\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x54, 0x537f1c\nB               loc_537F36                                             ; +0x58, 0x537f20\nMOV             R0, R4; void *                                         ; +0x5a, 0x537f22\nBL              _ZdlPv; operator delete(void *)                        ; +0x5c, 0x537f24\nBL              __cxa_end_cleanup                                      ; +0x60, 0x537f28\nLDR             R3, [R4]                                               ; +0x64, 0x537f2c\nMOV             R0, R4                                                 ; +0x66, 0x537f2e\nMOV             R4, R5                                                 ; +0x68, 0x537f30\nLDR             R3, [R3,#8]                                            ; +0x6a, 0x537f32\nBLX             R3                                                     ; +0x6c, 0x537f34\nMOV             R0, R4                                                 ; +0x6e, 0x537f36\nADD             SP, SP, #8                                             ; +0x70, 0x537f38\nPOP.W           {R4-R8,PC}                                             ; +0x72, 0x537f3a", "xrefs": ["AchievementNotifier::notifyAchievement @ 0x395e62"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}