{"type": "func", "start": 4651692, "end": 4651724, "name": "GJBaseGameLayer::canTouchObject", "pseudocode": "// \n// GJBaseGameLayer::canTouchObject from 0x46faac to 0x46facc (32 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492570\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; // r3\n  GameObjectClassType m_classType; // r0\n  GLfloat y; // r2\n\n  m_currentChannel = a1->m_gameState.m_currentChannel;\n  if ( m_currentChannel && (m_classType = a2->m_classType, m_classType == Effect) )\n  {\n    y = a2[1].m_sQuad.tr.vertices.y;\n    if ( y != 0.0 )\n      LOBYTE(m_classType) = LODWORD(y) == m_currentChannel;\n  }\n  else\n  {\n    LOBYTE(m_classType) = 1;\n  }\n  return m_classType;\n}", "assembly": "; \n; GJBaseGameLayer::canTouchObject from 0x46faac to 0x46facc (32 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492570\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.W           R3, [R0,#0x2DC]                                        ; +0x0, 0x46faac\nCBZ             R3, loc_46FAC8                                         ; +0x4, 0x46fab0\nLDR.W           R0, [R1,#0x434]                                        ; +0x6, 0x46fab2\nCMP             R0, #1                                                 ; +0xa, 0x46fab6\nBNE             loc_46FAC8                                             ; +0xc, 0x46fab8\nLDR.W           R2, [R1,#0x630]                                        ; +0xe, 0x46faba\nCBZ             R2, locret_46FACA                                      ; +0x12, 0x46fabe\nSUBS            R3, R2, R3                                             ; +0x14, 0x46fac0\nNEGS            R0, R3                                                 ; +0x16, 0x46fac2\nADCS            R0, R3                                                 ; +0x18, 0x46fac4\nBX              LR                                                     ; +0x1a, 0x46fac6\nMOVS            R0, #1                                                 ; +0x1c, 0x46fac8\nBX              LR                                                     ; +0x1e, 0x46faca", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x492570"], "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"}