{"type": "func", "start": 4297014548, "end": 4297014680, "name": "GJBaseGameLayer::triggerAreaEffect", "pseudocode": "// \n// GJBaseGameLayer::triggerAreaEffect from 0x1001f3d14 to 0x1001f3d98 (132 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x100385490\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 __fastcall GJBaseGameLayer::triggerAreaEffect(GJBaseGameLayer *a1, EnterEffectObject *a2)\n{\n  int m_objectID; // w8\n  std::vector<EnterEffectInstance> *p_m_fadeEffectInstances; // x2\n  GJAreaActionType v4; // w3\n\n  m_objectID = a2->m_objectID;\n  if ( m_objectID > 3008 )\n  {\n    if ( (unsigned int)(m_objectID - 3011) >= 5 )\n    {\n      if ( m_objectID == 3009 )\n      {\n        p_m_fadeEffectInstances = &a1->m_gameState.m_fadeEffectInstances;\n        v4 = 3;\n        goto LABEL_6;\n      }\n      if ( m_objectID == 3010 )\n      {\n        p_m_fadeEffectInstances = &a1->m_gameState.m_tintEffectInstances;\n        v4 = Tint;\n        goto LABEL_6;\n      }\n    }\n    else\n    {\n      GJBaseGameLayer::triggerAreaEffectAnimation(a1, a2);\n    }\n  }\n  else\n  {\n    switch ( m_objectID )\n    {\n      case 3006:\n        p_m_fadeEffectInstances = &a1->m_gameState.m_moveEffectInstances;\n        v4 = 0;\n        goto LABEL_6;\n      case 3007:\n        p_m_fadeEffectInstances = &a1->m_gameState.m_rotateEffectInstances;\n        v4 = Rotate;\n        goto LABEL_6;\n      case 3008:\n        p_m_fadeEffectInstances = &a1->m_gameState.m_scaleEffectInstances;\n        v4 = 2;\nLABEL_6:\n        GJBaseGameLayer::addAreaEffect(a1, a2, p_m_fadeEffectInstances, v4);\n        break;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::triggerAreaEffect from 0x1001f3d14 to 0x1001f3d98 (132 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x100385490\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\nLDR             W8, [X1,#0x404]                                        ; +0x0, 0x1001f3d14\nCMP             W8, #0xBC0                                             ; +0x4, 0x1001f3d18\nB.GT            loc_1001F3D44                                          ; +0x8, 0x1001f3d1c\nCMP             W8, #0xBBE                                             ; +0xc, 0x1001f3d20\nB.EQ            loc_1001F3D70                                          ; +0x10, 0x1001f3d24\nCMP             W8, #0xBBF                                             ; +0x14, 0x1001f3d28\nB.EQ            loc_1001F3D7C                                          ; +0x18, 0x1001f3d2c\nCMP             W8, #0xBC0                                             ; +0x1c, 0x1001f3d30\nB.NE            locret_1001F3D88                                       ; +0x20, 0x1001f3d34\nADD             X2, X0, #0x5F8                                         ; +0x24, 0x1001f3d38\nMOV             W3, #2                                                 ; +0x28, 0x1001f3d3c\nB               GJBaseGameLayer__addAreaEffect                         ; +0x2c, 0x1001f3d40\nSUB             W9, W8, #0xBC3                                         ; +0x30, 0x1001f3d44\nCMP             W9, #5                                                 ; +0x34, 0x1001f3d48\nB.CS            loc_1001F3D54                                          ; +0x38, 0x1001f3d4c\nB               GJBaseGameLayer__triggerAreaEffectAnimation            ; +0x3c, 0x1001f3d50\nCMP             W8, #0xBC1                                             ; +0x40, 0x1001f3d54\nB.EQ            loc_1001F3D8C                                          ; +0x44, 0x1001f3d58\nCMP             W8, #0xBC2                                             ; +0x48, 0x1001f3d5c\nB.NE            locret_1001F3D88                                       ; +0x4c, 0x1001f3d60\nADD             X2, X0, #0x628                                         ; +0x50, 0x1001f3d64\nMOV             W3, #4                                                 ; +0x54, 0x1001f3d68\nB               GJBaseGameLayer__addAreaEffect                         ; +0x58, 0x1001f3d6c\nADD             X2, X0, #0x5C8                                         ; +0x5c, 0x1001f3d70\nMOV             W3, #0                                                 ; +0x60, 0x1001f3d74\nB               GJBaseGameLayer__addAreaEffect                         ; +0x64, 0x1001f3d78\nADD             X2, X0, #0x5E0                                         ; +0x68, 0x1001f3d7c\nMOV             W3, #1                                                 ; +0x6c, 0x1001f3d80\nB               GJBaseGameLayer__addAreaEffect                         ; +0x70, 0x1001f3d84\nRET                                                                    ; +0x74, 0x1001f3d88\nADD             X2, X0, #0x610                                         ; +0x78, 0x1001f3d8c\nMOV             W3, #3                                                 ; +0x7c, 0x1001f3d90\nB               GJBaseGameLayer__addAreaEffect                         ; +0x80, 0x1001f3d94", "xrefs": ["EffectGameObject::triggerObject @ 0x100385490"], "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"}