{"type": "func", "start": 4808152, "end": 4808248, "name": "GJBaseGameLayer::controlAreaEffect", "pseudocode": "// \n// GJBaseGameLayer::controlAreaEffect from 0x495dd8 to 0x495e38 (96 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x495f7c\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 GJBaseGameLayer::controlAreaEffect(\n        GJBaseGameLayer *a1,\n        EnterEffectObject *a2,\n        std::vector<EnterEffectInstance> *a3,\n        GJActionCommand a4)\n{\n  unsigned int v4; // r4\n  EnterEffectInstance *v8; // r1\n\n  v4 = 0;\n  while ( v4 < -1944890851 * (((char *)a3->m_finish - (char *)a3->m_start) >> 2) )\n  {\n    v8 = &a3->m_start[v4];\n    if ( v8->m_gameObject != a2 )\n      goto LABEL_11;\n    if ( a4 )\n    {\n      if ( a4 == Pause )\n      {\n        v8->m_paused = 1;\n        v8->m_paused2 = 1;\n      }\n      else if ( a4 == Resume )\n      {\n        v8->m_paused = 0;\n        v8->m_paused2 = 0;\n      }\nLABEL_11:\n      ++v4;\n    }\n    else\n    {\n      std::vector<EnterEffectInstance>::erase((int)a3, (int)v8);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlAreaEffect from 0x495dd8 to 0x495e38 (96 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x495f7c\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          {R4-R10,LR}                                            ; +0x0, 0x495dd8\nMOVS            R4, #0                                                 ; +0x4, 0x495ddc\nLDR.W           R9, =0x8C13521D                                        ; +0x6, 0x495dde\nMOV             R8, R1                                                 ; +0xa, 0x495de2\nMOV             R6, R2                                                 ; +0xc, 0x495de4\nMOV             R5, R3                                                 ; +0xe, 0x495de6\nMOV.W           R10, #0xD4                                             ; +0x10, 0x495de8\nMOV             R7, R4                                                 ; +0x14, 0x495dec\nLDR             R1, [R6]                                               ; +0x16, 0x495dee\nLDR             R0, [R6,#4]                                            ; +0x18, 0x495df0\nSUBS            R0, R0, R1                                             ; +0x1a, 0x495df2\nASRS            R0, R0, #2                                             ; +0x1c, 0x495df4\nMUL             R0, R9, R0                                             ; +0x1e, 0x495df6\nCMP             R4, R0                                                 ; +0x22, 0x495dfa\nBCS             locret_495E30                                          ; +0x24, 0x495dfc\nMLA             R1, R10, R4, R1                                        ; +0x26, 0x495dfe\nLDR.W           R3, [R1,#0xA4]                                         ; +0x2a, 0x495e02\nCMP             R3, R8                                                 ; +0x2e, 0x495e06\nBNE             loc_495E34                                             ; +0x30, 0x495e08\nCBNZ            R5, loc_495E14                                         ; +0x32, 0x495e0a\nMOV             R0, R6                                                 ; +0x34, 0x495e0c\nBL              _ZNSt6vectorI19EnterEffectInstanceSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE; std::vector<EnterEffectInstance>::erase(__gnu_cxx::__normal_iterator<EnterEffectInstance const*,std::vector<EnterEffectInstance>>) ; +0x36, 0x495e0e\nB               loc_495DEE                                             ; +0x3a, 0x495e12\nCMP             R5, #1                                                 ; +0x3c, 0x495e14\nBNE             loc_495E22                                             ; +0x3e, 0x495e16\nSTRB.W          R5, [R1,#0xBC]                                         ; +0x40, 0x495e18\nSTRB.W          R5, [R1,#0xBD]                                         ; +0x44, 0x495e1c\nB               loc_495E34                                             ; +0x48, 0x495e20\nCMP             R5, #2                                                 ; +0x4a, 0x495e22\nBNE             loc_495E34                                             ; +0x4c, 0x495e24\nSTRB.W          R7, [R1,#0xBC]                                         ; +0x4e, 0x495e26\nSTRB.W          R7, [R1,#0xBD]                                         ; +0x52, 0x495e2a\nB               loc_495E34                                             ; +0x56, 0x495e2e\nPOP.W           {R4-R10,PC}                                            ; +0x58, 0x495e30\nADDS            R4, #1                                                 ; +0x5c, 0x495e34\nB               loc_495DEE                                             ; +0x5e, 0x495e36", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x495f7c"], "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"}