{"type": "func", "start": 5300920, "end": 5301020, "name": "GJMapObject::touchMonster", "pseudocode": "// \n// GJMapObject::touchMonster from 0x50e2b8 to 0x50e31c (100 bytes)\n// \n// 1 xrefs:\n// > MapSelectLayer::checkTouchMonster @ 0x50e78c\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\nvoid GJMapObject::touchMonster(GJMapObject *a1)\n{\n  int v2; // r3\n  cocos2d::CCSequence *v3; // r5\n  cocos2d::CCTintTo *v4; // r0\n  cocos2d::CCAction *v5; // r5\n\n  v2 = a1->m_monstersTouched + 1;\n  a1->m_monstersTouched = v2;\n  if ( v2 <= 9 )\n  {\n    cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1->m_mainNode[4].m_eGLServerState, 2);\n    v3 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create(0.05, 0xFFu, 0, 0);\n    v4 = cocos2d::CCTintTo::create(0.5, 0, 0, 0);\n    v5 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v3, v4, 0);\n    v5->setTag(v5, 2);\n    cocos2d::CCNode::runAction((cocos2d::CCNode *)a1->m_mainNode[4].m_eGLServerState, v5);\n  }\n}", "assembly": "; \n; GJMapObject::touchMonster from 0x50e2b8 to 0x50e31c (100 bytes)\n; \n; 1 xrefs:\n; > MapSelectLayer::checkTouchMonster @ 0x50e78c\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            {R3-R5,LR}; unsigned __int8                            ; +0x0, 0x50e2b8\nMOV             R4, R0                                                 ; +0x2, 0x50e2ba\nLDR.W           R3, [R0,#0x128]                                        ; +0x4, 0x50e2bc\nADDS            R3, #1                                                 ; +0x8, 0x50e2c0\nSTR.W           R3, [R0,#0x128]                                        ; +0xa, 0x50e2c2\nCMP             R3, #9                                                 ; +0xe, 0x50e2c6\nBGT             locret_50E31A                                          ; +0x10, 0x50e2c8\nLDR.W           R3, [R0,#0x10C]                                        ; +0x12, 0x50e2ca\nMOVS            R1, #2; int                                            ; +0x16, 0x50e2ce\nLDR.W           R0, [R3,#0x4F4]; this                                  ; +0x18, 0x50e2d0\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x1c, 0x50e2d4\nMOVS            R2, #0; unsigned __int8                                ; +0x20, 0x50e2d8\nMOV             R3, R2; unsigned __int8                                ; +0x22, 0x50e2da\nMOVS            R1, #0xFF; float                                       ; +0x24, 0x50e2dc\nLDR             R0, =0x3D4CCCCD; this                                  ; +0x26, 0x50e2de\nBL              _ZN7cocos2d8CCTintTo6createEfhhh; cocos2d::CCTintTo::create(float,uchar,uchar,uchar) ; +0x28, 0x50e2e0\nMOVS            R1, #0; float                                          ; +0x2c, 0x50e2e4\nMOV             R3, R1; unsigned __int8                                ; +0x2e, 0x50e2e6\nMOV             R2, R1; unsigned __int8                                ; +0x30, 0x50e2e8\nMOV             R5, R0                                                 ; +0x32, 0x50e2ea\nMOV.W           R0, #0x3F000000; this                                  ; +0x34, 0x50e2ec\nBL              _ZN7cocos2d8CCTintTo6createEfhhh; cocos2d::CCTintTo::create(float,uchar,uchar,uchar) ; +0x38, 0x50e2f0\nMOVS            R2, #0                                                 ; +0x3c, 0x50e2f4\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x3e, 0x50e2f6\nMOV             R0, R5; this                                           ; +0x40, 0x50e2f8\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x42, 0x50e2fa\nMOVS            R1, #2                                                 ; +0x46, 0x50e2fe\nLDR             R3, [R0]                                               ; +0x48, 0x50e300\nMOV             R5, R0                                                 ; +0x4a, 0x50e302\nLDR             R3, [R3,#0x24]                                         ; +0x4c, 0x50e304\nBLX             R3                                                     ; +0x4e, 0x50e306\nLDR.W           R3, [R4,#0x10C]                                        ; +0x50, 0x50e308\nMOV             R1, R5; cocos2d::CCAction *                            ; +0x54, 0x50e30c\nLDR.W           R0, [R3,#0x4F4]; this                                  ; +0x56, 0x50e30e\nPOP.W           {R3-R5,LR}                                             ; +0x5a, 0x50e312\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x5e, 0x50e316\nPOP             {R3-R5,PC}                                             ; +0x62, 0x50e31a", "xrefs": ["MapSelectLayer::checkTouchMonster @ 0x50e78c"], "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"}