{"type": "func", "start": 4301046208, "end": 4301046250, "name": "EnhancedGameObject::updateState", "pseudocode": "// \n// EnhancedGameObject::updateState from 0x1005cc1c0 to 0x1005cc1ea (42 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processStateObjects @ 0x10012a80a\n// > GJBaseGameLayer::update @ 0x100152958\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 EnhancedGameObject::updateState(EnhancedGameObject *a1, int a2)\n{\n  if ( a1->m_state >= a2 )\n  {\n    if ( a1->m_poweredOn )\n      return;\n  }\n  else\n  {\n    a1->m_poweredOn = 0;\n  }\n  ((void (__fastcall *)(EnhancedGameObject *))a1->powerOffObject)(a1);\n}", "assembly": "; \n; EnhancedGameObject::updateState from 0x1005cc1c0 to 0x1005cc1ea (42 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processStateObjects @ 0x10012a80a\n; > GJBaseGameLayer::update @ 0x100152958\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    rbp                                                            ; +0x0, 0x1005cc1c0\nmov     rbp, rsp                                                       ; +0x1, 0x1005cc1c1\ncmp     [rdi+544h], esi                                                ; +0x4, 0x1005cc1c4\njge     short loc_1005CC1D5                                            ; +0xa, 0x1005cc1ca\nmov     byte ptr [rdi+543h], 0                                         ; +0xc, 0x1005cc1cc\njmp     short loc_1005CC1E0                                            ; +0x13, 0x1005cc1d3\ntest    byte ptr [rdi+543h], 1                                         ; +0x15, 0x1005cc1d5\njz      short loc_1005CC1E0                                            ; +0x1c, 0x1005cc1dc\npop     rbp                                                            ; +0x1e, 0x1005cc1de\nretn                                                                   ; +0x1f, 0x1005cc1df\nmov     rax, [rdi]                                                     ; +0x20, 0x1005cc1e0\npop     rbp                                                            ; +0x23, 0x1005cc1e3\njmp     qword ptr [rax+718h]                                           ; +0x24, 0x1005cc1e4", "xrefs": ["GJBaseGameLayer::processStateObjects @ 0x10012a80a", "GJBaseGameLayer::update @ 0x100152958"], "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"}