{"type": "func", "start": 4295051064, "end": 4295051296, "name": "GJEffectManager::colorForGroupID", "pseudocode": "// \n// GJEffectManager::colorForGroupID from 0x100014738 to 0x100014820 (232 bytes)\n// \n// 5 xrefs:\n// > GameObject::groupColor @ 0x100262518\n// > LevelEditorLayer::updateVisibility @ 0x10035ed58\n// > LevelEditorLayer::updateVisibility @ 0x10035efc0\n// > LevelEditorLayer::updateObjectColors @ 0x10035f378\n// > LevelEditorLayer::updateObjectColors @ 0x10035f56c\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\ncocos2d::ccColor3B __fastcall GJEffectManager::colorForGroupID(\n        GJEffectManager *a1,\n        int a2,\n        const cocos2d::ccColor3B *a3,\n        bool a4)\n{\n  unsigned __int64 v4; // x8\n  unsigned __int64 v5; // x9\n  __int64 v8; // x0\n  PulseEffectAction *v9; // x21\n  PulseEffectAction *v10; // x22\n  int v12; // [xsp+8h] [xbp-28h] BYREF\n  cocos2d::ccColor3B v13; // [xsp+Ch] [xbp-24h] BYREF\n\n  LODWORD(v4) = a2 & ~(a2 >> 31);\n  if ( (int)v4 >= 9999 )\n    v4 = 9999;\n  else\n    v4 = (unsigned int)v4;\n  v5 = *(_QWORD *)&a1->m_unkVector2f0.__begin_[(v4 >> 3) & 0x7F8];\n  v12 = v4;\n  v13 = *a3;\n  if ( ((v5 >> v4) & 1) != 0 )\n  {\n    v8 = sub_100018814(&a1->m_pulseEffectMap, &v12);\n    if ( v8 )\n    {\n      v9 = *(PulseEffectAction **)(v8 + 24);\n      v10 = *(PulseEffectAction **)(v8 + 32);\n      while ( 1 )\n      {\n        if ( v9 == v10 )\n          return (cocos2d::ccColor3B)(*(unsigned __int16 *)&v13.r | (v13.b << 16));\n        if ( !v9->m_mainOnly )\n          break;\n        if ( a4 )\n          goto LABEL_14;\n        if ( v9->m_detailOnly )\n          goto LABEL_13;\nLABEL_15:\n        ++v9;\n      }\n      if ( v9->m_detailOnly )\n      {\nLABEL_13:\n        if ( a4 )\n          goto LABEL_15;\n      }\nLABEL_14:\n      v13 = GJEffectManager::colorForPulseEffect(a1, &v13, v9);\n      goto LABEL_15;\n    }\n  }\n  return (cocos2d::ccColor3B)(*(unsigned __int16 *)&v13.r | (v13.b << 16));\n}", "assembly": "; \n; GJEffectManager::colorForGroupID from 0x100014738 to 0x100014820 (232 bytes)\n; \n; 5 xrefs:\n; > GameObject::groupColor @ 0x100262518\n; > LevelEditorLayer::updateVisibility @ 0x10035ed58\n; > LevelEditorLayer::updateVisibility @ 0x10035efc0\n; > LevelEditorLayer::updateObjectColors @ 0x10035f378\n; > LevelEditorLayer::updateObjectColors @ 0x10035f56c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100014738\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10001473c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100014740\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100014744\nADD             X29, SP, #0x30                                         ; +0x10, 0x100014748\nBIC             W8, W1, W1,ASR#31                                      ; +0x14, 0x10001474c\nMOV             W9, #0x270F                                            ; +0x18, 0x100014750\nCMP             W8, W9                                                 ; +0x1c, 0x100014754\nCSEL            W8, W8, W9, LT                                         ; +0x20, 0x100014758\nLDR             X9, [X0,#0x2B0]                                        ; +0x24, 0x10001475c\nLSR             X10, X8, #3                                            ; +0x28, 0x100014760\nAND             X10, X10, #0x7F8                                       ; +0x2c, 0x100014764\nLDR             X9, [X9,X10]                                           ; +0x30, 0x100014768\nSTR             W8, [SP,#0x30+var_28]                                  ; +0x34, 0x10001476c\nLDRH            W10, [X2]                                              ; +0x38, 0x100014770\nSTRH            W10, [SP,#0x30+var_24]                                 ; +0x3c, 0x100014774\nLDRB            W10, [X2,#2]                                           ; +0x40, 0x100014778\nSTRB            W10, [SP,#0x30+var_22]                                 ; +0x44, 0x10001477c\nLSR             X8, X9, X8                                             ; +0x48, 0x100014780\nTBZ             W8, #0, loc_100014800                                  ; +0x4c, 0x100014784\nMOV             X19, X3                                                ; +0x50, 0x100014788\nMOV             X20, X0                                                ; +0x54, 0x10001478c\nADD             X0, X0, #0x170                                         ; +0x58, 0x100014790\nADD             X1, SP, #0x30+var_28                                   ; +0x5c, 0x100014794\nBL              sub_100018814                                          ; +0x60, 0x100014798\nCBZ             X0, loc_100014800                                      ; +0x64, 0x10001479c\nLDP             X21, X22, [X0,#0x18]                                   ; +0x68, 0x1000147a0\nCMP             X21, X22                                               ; +0x6c, 0x1000147a4\nB.EQ            loc_100014800                                          ; +0x70, 0x1000147a8\nLDRB            W8, [X21,#0x38]                                        ; +0x74, 0x1000147ac\nTBZ             W8, #0, loc_1000147C8                                  ; +0x78, 0x1000147b0\nTBNZ            W19, #0, loc_1000147DC                                 ; +0x7c, 0x1000147b4\nLDRB            W8, [X21,#0x39]                                        ; +0x80, 0x1000147b8\nEOR             W8, W8, #1                                             ; +0x84, 0x1000147bc\nTBZ             W8, #0, loc_1000147D8                                  ; +0x88, 0x1000147c0\nB               loc_1000147F8                                          ; +0x8c, 0x1000147c4\nLDRB            W8, [X21,#0x39]                                        ; +0x90, 0x1000147c8\nTBZ             W8, #0, loc_1000147DC                                  ; +0x94, 0x1000147cc\nMOV             W8, #0                                                 ; +0x98, 0x1000147d0\nTBNZ            W8, #0, loc_1000147F8                                  ; +0x9c, 0x1000147d4\nTBNZ            W19, #0, loc_1000147F8                                 ; +0xa0, 0x1000147d8\nADD             X1, SP, #0x30+var_24                                   ; +0xa4, 0x1000147dc\nMOV             X0, X20                                                ; +0xa8, 0x1000147e0\nMOV             X2, X21                                                ; +0xac, 0x1000147e4\nBL              GJEffectManager__colorForPulseEffect                   ; +0xb0, 0x1000147e8\nSTRH            W0, [SP,#0x30+var_24]                                  ; +0xb4, 0x1000147ec\nLSR             W8, W0, #0x10                                          ; +0xb8, 0x1000147f0\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0xbc, 0x1000147f4\nADD             X21, X21, #0x48 ; 'H'                                  ; +0xc0, 0x1000147f8\nB               loc_1000147A4                                          ; +0xc4, 0x1000147fc\nLDRB            W8, [SP,#0x30+var_22]                                  ; +0xc8, 0x100014800\nLDRH            W9, [SP,#0x30+var_24]                                  ; +0xcc, 0x100014804\nORR             W0, W9, W8,LSL#16                                      ; +0xd0, 0x100014808\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x10001480c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x100014810\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x100014814\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe0, 0x100014818\nRET                                                                    ; +0xe4, 0x10001481c", "xrefs": ["GameObject::groupColor @ 0x100262518", "LevelEditorLayer::updateVisibility @ 0x10035ed58", "LevelEditorLayer::updateVisibility @ 0x10035efc0", "LevelEditorLayer::updateObjectColors @ 0x10035f378", "LevelEditorLayer::updateObjectColors @ 0x10035f56c"], "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"}