{"type": "func", "start": 8761296, "end": 8761352, "name": "GJBaseGameLayer::canTouchObject", "pseudocode": "// \n// GJBaseGameLayer::canTouchObject from 0x85afd0 to 0x85b008 (56 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x88ba9c\n// > <???> @ 0x65850\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 GJBaseGameLayer::canTouchObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int m_currentChannel; // w2\n  bool result; // w0\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 || m_currentChannel == LODWORD(a2[1].m_obRect.origin.x);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::canTouchObject from 0x85afd0 to 0x85b008 (56 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x88ba9c\n; > <???> @ 0x65850\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             W2, [X0,#0x33C]                                        ; +0x0, 0x85afd0\nMOV             W0, #1                                                 ; +0x4, 0x85afd4\nCBZ             W2, locret_85AFE8                                      ; +0x8, 0x85afd8\nLDR             W3, [X1,#0x4D0]                                        ; +0xc, 0x85afdc\nCMP             W3, W0                                                 ; +0x10, 0x85afe0\nB.EQ            loc_85AFEC                                             ; +0x14, 0x85afe4\nRET                                                                    ; +0x18, 0x85afe8\nLDR             W0, [X1,#0x6E0]                                        ; +0x1c, 0x85afec\nCMP             W0, WZR                                                ; +0x20, 0x85aff0\nCSET            W1, EQ                                                 ; +0x24, 0x85aff4\nCMP             W2, W0                                                 ; +0x28, 0x85aff8\nCSET            W0, EQ                                                 ; +0x2c, 0x85affc\nORR             W0, W1, W0                                             ; +0x30, 0x85b000\nRET                                                                    ; +0x34, 0x85b004", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x88ba9c", "<???> @ 0x65850"], "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"}