{"type": "func", "start": 4297445840, "end": 4297445896, "name": "GameObject::getSlopeAngle", "pseudocode": "// \n// GameObject::getSlopeAngle from 0x10025d1d0 to 0x10025d208 (56 bytes)\n// \n// 4 xrefs:\n// > PlayerObject::collidedWithSlopeInternal @ 0x100220a88\n// > PlayerObject::collidedWithSlopeInternal @ 0x100221140\n// > PlayerObject::collidedWithSlopeInternal @ 0x1002213e8\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a7fc\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\nfloat __fastcall GameObject::getSlopeAngle(GameObject *a1)\n{\n  __int64 v1; // x0\n  __int64 v3; // [xsp+0h] [xbp-10h] BYREF\n  float v4; // [xsp+8h] [xbp-8h]\n  float v5; // [xsp+Ch] [xbp-4h]\n\n  v1 = ((__int64 (__fastcall *)(GameObject *))a1->getObjectRect)(a1);\n  sub_100022B98(&v3, v1);\n  return atanf(v5 / v4);\n}", "assembly": "; \n; GameObject::getSlopeAngle from 0x10025d1d0 to 0x10025d208 (56 bytes)\n; \n; 4 xrefs:\n; > PlayerObject::collidedWithSlopeInternal @ 0x100220a88\n; > PlayerObject::collidedWithSlopeInternal @ 0x100221140\n; > PlayerObject::collidedWithSlopeInternal @ 0x1002213e8\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a7fc\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\nSUB             SP, SP, #0x20                                          ; +0x0, 0x10025d1d0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10025d1d4\nADD             X29, SP, #0x10                                         ; +0x8, 0x10025d1d8\nLDR             X8, [X0]                                               ; +0xc, 0x10025d1dc\nLDR             X8, [X8,#0x520]                                        ; +0x10, 0x10025d1e0\nBLR             X8                                                     ; +0x14, 0x10025d1e4\nMOV             X1, X0                                                 ; +0x18, 0x10025d1e8\nMOV             X0, SP                                                 ; +0x1c, 0x10025d1ec\nBL              sub_100022B98                                          ; +0x20, 0x10025d1f0\nLDP             S1, S0, [SP,#0x10+var_8]                               ; +0x24, 0x10025d1f4\nFDIV            S0, S0, S1; float                                      ; +0x28, 0x10025d1f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x2c, 0x10025d1fc\nADD             SP, SP, #0x20 ; ' '                                    ; +0x30, 0x10025d200\nB               _atanf                                                 ; +0x34, 0x10025d204", "xrefs": ["PlayerObject::collidedWithSlopeInternal @ 0x100220a88", "PlayerObject::collidedWithSlopeInternal @ 0x100221140", "PlayerObject::collidedWithSlopeInternal @ 0x1002213e8", "LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a7fc"], "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"}