{"type": "func", "start": 4296178864, "end": 4296178909, "name": "GJBaseGameLayer::canTouchObject", "pseudocode": "// \n// GJBaseGameLayer::canTouchObject from 0x100127cb0 to 0x100127cdd (45 bytes)\n// \n// 0 xrefs:\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 __fastcall GJBaseGameLayer::canTouchObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int m_currentChannel; // ecx\n  bool result; // al\n\n  m_currentChannel = a1->m_gameState.m_currentChannel;\n  result = 1;\n  if ( m_currentChannel )\n  {\n    if ( a2->m_classType == Effect )\n      return LODWORD(a2[1].m_obRect.origin.x) == 0 || LODWORD(a2[1].m_obRect.origin.x) == m_currentChannel;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::canTouchObject from 0x100127cb0 to 0x100127cdd (45 bytes)\n; \n; 0 xrefs:\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, 0x100127cb0\nmov     rbp, rsp                                                       ; +0x1, 0x100127cb1\nmov     ecx, [rdi+33Ch]                                                ; +0x4, 0x100127cb4\nmov     al, 1                                                          ; +0xa, 0x100127cba\ntest    ecx, ecx                                                       ; +0xc, 0x100127cbc\njz      short loc_100127CDB                                            ; +0xe, 0x100127cbe\ncmp     dword ptr [rsi+4E0h], 1                                        ; +0x10, 0x100127cc0\njnz     short loc_100127CDB                                            ; +0x17, 0x100127cc7\nmov     eax, [rsi+6F0h]                                                ; +0x19, 0x100127cc9\ntest    eax, eax                                                       ; +0x1f, 0x100127ccf\nsetz    dl                                                             ; +0x21, 0x100127cd1\ncmp     eax, ecx                                                       ; +0x24, 0x100127cd4\nsetz    al                                                             ; +0x26, 0x100127cd6\nor      al, dl                                                         ; +0x29, 0x100127cd9\npop     rbp                                                            ; +0x2b, 0x100127cdb\nretn                                                                   ; +0x2c, 0x100127cdc", "xrefs": [], "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"}