{"type": "func", "start": 4369724, "end": 4369842, "name": "AchievementBar::create", "pseudocode": "// \n// AchievementBar::create from 0x42ad3c to 0x42adb2 (118 bytes)\n// \n// 1 xrefs:\n// > AchievementNotifier::notifyAchievement @ 0x2bedb2\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\nAchievementBar *AchievementBar::create(const char *a1, const char *a2, const char *a3, bool a4)\n{\n  AchievementBar *v8; // r4\n  AchievementBar_vtbl *v9; // r3\n  AchievementBar *v10; // r0\n\n  v8 = (AchievementBar *)operator new(0x13Cu);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v8);\n  v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AchievementBar_vtbl *)&off_A60EC8;\n  v8->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A610C0;\n  v8->m_unkUnused = 0;\n  v8->m_layerColor = nullptr;\n  v8->m_nextScene = nullptr;\n  if ( AchievementBar::init(v8, a1, a2, a3, a4) )\n  {\n    cocos2d::CCObject::autorelease(v8);\n  }\n  else\n  {\n    v9 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v10 = v8;\n    v8 = nullptr;\n    v9->~AchievementBar_0(v10);\n  }\n  return v8;\n}", "assembly": "; \n; AchievementBar::create from 0x42ad3c to 0x42adb2 (118 bytes)\n; \n; 1 xrefs:\n; > AchievementNotifier::notifyAchievement @ 0x2bedb2\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          {R0,R1,R4-R8,LR}                                       ; +0x0, 0x42ad3c\nMOV             R7, R0                                                 ; +0x4, 0x42ad40\nMOV.W           R0, #0x13C; unsigned int                               ; +0x6, 0x42ad42\nMOV             R6, R1                                                 ; +0xa, 0x42ad46\nMOV             R5, R2                                                 ; +0xc, 0x42ad48\nMOV             R8, R3                                                 ; +0xe, 0x42ad4a\nBL              _Znwj; operator new(uint)                              ; +0x10, 0x42ad4c\nMOV             R4, R0                                                 ; +0x14, 0x42ad50\nBL              _ZN7cocos2d10CCNodeRGBAC2Ev; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x16, 0x42ad52\nLDR             R3, =(_ZTV14AchievementBar_ptr - 0x42AD60)             ; +0x1a, 0x42ad56\nMOV             R0, R4; this                                           ; +0x1c, 0x42ad58\nMOV             R1, R7; char *                                         ; +0x1e, 0x42ad5a\nADD             R3, PC; _ZTV14AchievementBar_ptr                       ; +0x20, 0x42ad5c\nLDR             R3, [R3]; `vtable for'AchievementBar ...               ; +0x22, 0x42ad5e\nADD.W           R2, R3, #8                                             ; +0x24, 0x42ad60\nADD.W           R3, R3, #0x200                                         ; +0x28, 0x42ad64\nSTR             R2, [R4]                                               ; +0x2c, 0x42ad68\nMOVS            R2, #0                                                 ; +0x2e, 0x42ad6a\nSTR.W           R3, [R4,#0x108]                                        ; +0x30, 0x42ad6c\nMOVS            R3, #0                                                 ; +0x34, 0x42ad70\nSTR.W           R2, [R4,#0x11C]                                        ; +0x36, 0x42ad72\nMOV             R2, R6; char *                                         ; +0x3a, 0x42ad76\nSTR.W           R3, [R4,#0x118]                                        ; +0x3c, 0x42ad78\nSTR.W           R3, [R4,#0x120]                                        ; +0x40, 0x42ad7c\nMOV             R3, R5; char *                                         ; +0x44, 0x42ad80\nSTR.W           R8, [SP,#8+var_8]; bool                                ; +0x46, 0x42ad82\nBL              _ZN14AchievementBar4initEPKcS1_S1_b; AchievementBar::init(char const*,char const*,char const*,bool) ; +0x4a, 0x42ad86\nMOV             R5, R0                                                 ; +0x4e, 0x42ad8a\nCBZ             R0, loc_42ADA0                                         ; +0x50, 0x42ad8c\nMOV             R0, R4; this                                           ; +0x52, 0x42ad8e\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x54, 0x42ad90\nB               loc_42ADAA                                             ; +0x58, 0x42ad94\nMOV             R0, R4; p                                              ; +0x5a, 0x42ad96\nBL              _ZdlPv; operator delete(void *)                        ; +0x5c, 0x42ad98\nBL              __cxa_end_cleanup                                      ; +0x60, 0x42ad9c\nLDR             R3, [R4]                                               ; +0x64, 0x42ada0\nMOV             R0, R4                                                 ; +0x66, 0x42ada2\nMOV             R4, R5                                                 ; +0x68, 0x42ada4\nLDR             R3, [R3,#8]                                            ; +0x6a, 0x42ada6\nBLX             R3                                                     ; +0x6c, 0x42ada8\nMOV             R0, R4                                                 ; +0x6e, 0x42adaa\nADD             SP, SP, #8                                             ; +0x70, 0x42adac\nPOP.W           {R4-R8,PC}                                             ; +0x72, 0x42adae", "xrefs": ["AchievementNotifier::notifyAchievement @ 0x2bedb2"], "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"}