{"type": "func", "start": 4823224, "end": 4823294, "name": "ColorAction::isInUse", "pseudocode": "// \n// ColorAction::isInUse from 0x4998b8 to 0x4998fe (70 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x371b6c\n// > EditorUI::pasteObjects @ 0x3a3820\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 ColorAction::isInUse(ColorAction *a1)\n{\n  return a1->m_fromColor.r != 255\n      || a1->m_fromColor.g != 255\n      || a1->m_fromColor.b != 255\n      || a1->m_fromOpacity != 1.0\n      || a1->m_copyID\n      || a1->m_blending\n      || a1->m_playerColor > 0;\n}", "assembly": "; \n; ColorAction::isInUse from 0x4998b8 to 0x4998fe (70 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x371b6c\n; > EditorUI::pasteObjects @ 0x3a3820\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\nLDRB.W          R1, [R0,#0x44]                                         ; +0x0, 0x4998b8\nLDRB.W          R2, [R0,#0x45]                                         ; +0x4, 0x4998bc\nCMP             R1, #0xFF                                              ; +0x8, 0x4998c0\nLDRB.W          R3, [R0,#0x46]                                         ; +0xa, 0x4998c2\nBNE             loc_4998E6                                             ; +0xe, 0x4998c6\nCMP             R2, #0xFF                                              ; +0x10, 0x4998c8\nBNE             loc_4998E6                                             ; +0x12, 0x4998ca\nCMP             R3, #0xFF                                              ; +0x14, 0x4998cc\nBNE             loc_4998E6                                             ; +0x16, 0x4998ce\nVMOV.F32        S15, #1.0                                              ; +0x18, 0x4998d0\nVLDR            S14, [R0,#0x5C]                                        ; +0x1c, 0x4998d4\nVCMP.F32        S14, S15                                               ; +0x20, 0x4998d8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x4998dc\nBNE             loc_4998E6                                             ; +0x28, 0x4998e0\nLDR             R3, [R0,#0x74]                                         ; +0x2a, 0x4998e2\nCBZ             R3, loc_4998EA                                         ; +0x2c, 0x4998e4\nMOVS            R0, #1                                                 ; +0x2e, 0x4998e6\nBX              LR                                                     ; +0x30, 0x4998e8\nLDRB.W          R3, [R0,#0x50]                                         ; +0x32, 0x4998ea\nCMP             R3, #0                                                 ; +0x36, 0x4998ee\nBNE             loc_4998E6                                             ; +0x38, 0x4998f0\nLDR             R0, [R0,#0x54]                                         ; +0x3a, 0x4998f2\nCMP             R0, #0                                                 ; +0x3c, 0x4998f4\nITE LE                                                                 ; +0x3e, 0x4998f6\nMOVLE           R0, #0                                                 ; +0x40, 0x4998f8\nMOVGT           R0, #1                                                 ; +0x42, 0x4998fa\nBX              LR                                                     ; +0x44, 0x4998fc", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x371b6c", "EditorUI::pasteObjects @ 0x3a3820"], "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"}