{"type": "func", "start": 3129832, "end": 3129992, "name": "CCCircleAlert::init", "pseudocode": "// \n// CCCircleAlert::init from 0x2fc1e8 to 0x2fc288 (160 bytes)\n// \n// 1 xrefs:\n// > CCCircleAlert::create @ 0x2fc2d0\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\nbool CCCircleAlert::init(CCCircleAlert *a1, float a2, float a3, float a4)\n{\n  float v4; // s16\n  cocos2d::CCSpawn *v7; // r8\n  cocos2d::CCSequence *v8; // r9\n  cocos2d::CCFiniteTimeAction *v9; // r0\n  cocos2d::CCFiniteTimeAction *v10; // r0\n  cocos2d::CCAction *v11; // r5\n  cocos2d::CCDirector *v12; // r0\n  cocos2d::CCActionManager *v13; // r0\n  float v15; // [sp+0h] [bp-Ch]\n  float v16; // [sp+0h] [bp-Ch]\n\n  a1->m_radius = a2;\n  a1->m_opacity = 0.0;\n  *(_WORD *)&a1->m_color.r = -1;\n  a1->m_color.b = -1;\n  v7 = (cocos2d::CCSpawn *)cocos2d::CCActionTween::create(\n                             (cocos2d::CCActionTween *)LODWORD(a4),\n                             COERCE_FLOAT(\"radius\"),\n                             (const char *)LODWORD(a2),\n                             a3,\n                             v4);\n  v8 = (cocos2d::CCSequence *)cocos2d::CCActionTween::create(\n                                COERCE_COCOS2D_CCACTIONTWEEN_(a4 - 0.3),\n                                COERCE_FLOAT(\"opacity\"),\n                                (const char *)LODWORD(a1->m_opacity),\n                                150.0,\n                                v15);\n  v9 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCActionTween::create(\n                                        (cocos2d::CCActionTween *)0x3E99999A,\n                                        COERCE_FLOAT(\"opacity\"),\n                                        (const char *)0x43160000,\n                                        0.0,\n                                        v16);\n  v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCSequence::create(v8, v9, 0);\n  v11 = (cocos2d::CCAction *)cocos2d::CCSpawn::create(v7, v10, 0);\n  v12 = cocos2d::CCDirector::sharedDirector();\n  v13 = v12->getActionManager(v12);\n  cocos2d::CCActionManager::addAction(v13, v11, a1, 0);\n  return 1;\n}", "assembly": "; \n; CCCircleAlert::init from 0x2fc1e8 to 0x2fc288 (160 bytes)\n; \n; 1 xrefs:\n; > CCCircleAlert::create @ 0x2fc2d0\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          {R3-R9,LR}                                             ; +0x0, 0x2fc1e8\nMOV             R4, R0                                                 ; +0x4, 0x2fc1ec\nVPUSH           {D8}; float                                            ; +0x6, 0x2fc1ee\nMOV             R7, R2                                                 ; +0xa, 0x2fc1f2\nSTR.W           R1, [R4,#0x110]                                        ; +0xc, 0x2fc1f4\nMOV             R5, R1                                                 ; +0x10, 0x2fc1f8\nLDR             R1, =(aRadius - 0x2FC20C); \"radius\"                    ; +0x12, 0x2fc1fa\nMOVS            R6, #0                                                 ; +0x14, 0x2fc1fc\nVMOV            S17, R3                                                ; +0x16, 0x2fc1fe\nLDR             R3, =(word_9A9AC0 - 0x2FC20E)                          ; +0x1a, 0x2fc202\nSTR.W           R6, [R0,#0x114]                                        ; +0x1c, 0x2fc204\nADD             R1, PC; \"radius\"                                       ; +0x20, 0x2fc208\nADD             R3, PC; word_9A9AC0                                    ; +0x22, 0x2fc20a\nVLDR            S16, =0.3                                              ; +0x24, 0x2fc20c\nLDRH            R2, [R3]                                               ; +0x28, 0x2fc210\nLDRB            R3, [R3,#(byte_9A9AC2 - 0x9A9AC0)]                     ; +0x2a, 0x2fc212\nSTRH.W          R2, [R0,#0x118]                                        ; +0x2c, 0x2fc214\nMOV             R2, R5; char *                                         ; +0x30, 0x2fc218\nSTRB.W          R3, [R0,#0x11A]                                        ; +0x32, 0x2fc21a\nMOV             R3, R7; float                                          ; +0x36, 0x2fc21e\nVMOV            R0, S17; this                                          ; +0x38, 0x2fc220\nBL              _ZN7cocos2d13CCActionTween6createEfPKcff; cocos2d::CCActionTween::create(float,char const*,float,float) ; +0x3c, 0x2fc224\nVSUB.F32        S15, S17, S16                                          ; +0x40, 0x2fc228\nLDR             R5, =(aOpacity - 0x2FC234); \"opacity\"                  ; +0x44, 0x2fc22c\nLDR             R7, flt_2FC28C                                         ; +0x46, 0x2fc22e\nADD             R5, PC; \"opacity\"                                      ; +0x48, 0x2fc230\nLDR.W           R2, [R4,#0x114]; char *                                ; +0x4a, 0x2fc232\nMOV             R1, R5; float                                          ; +0x4e, 0x2fc236\nMOV             R3, R7; float                                          ; +0x50, 0x2fc238\nMOV             R8, R0                                                 ; +0x52, 0x2fc23a\nVMOV            R0, S15; this                                          ; +0x54, 0x2fc23c\nBL              _ZN7cocos2d13CCActionTween6createEfPKcff; cocos2d::CCActionTween::create(float,char const*,float,float) ; +0x58, 0x2fc240\nMOV             R3, R6; float                                          ; +0x5c, 0x2fc244\nMOV             R1, R5; float                                          ; +0x5e, 0x2fc246\nMOV             R2, R7; char *                                         ; +0x60, 0x2fc248\nMOV             R9, R0                                                 ; +0x62, 0x2fc24a\nVMOV            R0, S16; this                                          ; +0x64, 0x2fc24c\nBL              _ZN7cocos2d13CCActionTween6createEfPKcff; cocos2d::CCActionTween::create(float,char const*,float,float) ; +0x68, 0x2fc250\nMOVS            R2, #0                                                 ; +0x6c, 0x2fc254\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x6e, 0x2fc256\nMOV             R0, R9; this                                           ; +0x70, 0x2fc258\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x72, 0x2fc25a\nMOVS            R2, #0                                                 ; +0x76, 0x2fc25e\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x78, 0x2fc260\nMOV             R0, R8; this                                           ; +0x7a, 0x2fc262\nBL              _ZN7cocos2d7CCSpawn6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSpawn::create(cocos2d::CCFiniteTimeAction *,...) ; +0x7c, 0x2fc264\nMOV             R5, R0                                                 ; +0x80, 0x2fc268\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x82, 0x2fc26a\nLDR             R3, [R0]                                               ; +0x86, 0x2fc26e\nLDR             R3, [R3,#0x48]                                         ; +0x88, 0x2fc270\nBLX             R3                                                     ; +0x8a, 0x2fc272\nMOV             R1, R5; cocos2d::CCAction *                            ; +0x8c, 0x2fc274\nMOV             R2, R4; cocos2d::CCNode *                              ; +0x8e, 0x2fc276\nMOVS            R3, #0; bool                                           ; +0x90, 0x2fc278\nBL              _ZN7cocos2d15CCActionManager9addActionEPNS_8CCActionEPNS_6CCNodeEb; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0x92, 0x2fc27a\nVPOP            {D8}                                                   ; +0x96, 0x2fc27e\nMOVS            R0, #1                                                 ; +0x9a, 0x2fc282\nPOP.W           {R3-R9,PC}                                             ; +0x9c, 0x2fc284", "xrefs": ["CCCircleAlert::create @ 0x2fc2d0"], "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"}