{"type": "func", "start": 4675948, "end": 4675970, "name": "GJBaseGameLayer::objectTypeToGameEvent", "pseudocode": "// \n// GJBaseGameLayer::objectTypeToGameEvent from 0x47596c to 0x475982 (22 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::ringJump @ 0x34e148\n// > GJBaseGameLayer::playerWillSwitchMode @ 0x491684\n// > GJBaseGameLayer::bumpPlayer @ 0x492176\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\nGJGameEvent GJBaseGameLayer::objectTypeToGameEvent(GJBaseGameLayer *a1, int a2)\n{\n  unsigned int v2; // r1\n\n  v2 = a2 - 3;\n  if ( v2 > 0x2B )\n    return 0;\n  else\n    return *((unsigned __int8 *)&unk_9ABF60 + v2 + 52);\n}", "assembly": "; \n; GJBaseGameLayer::objectTypeToGameEvent from 0x47596c to 0x475982 (22 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::ringJump @ 0x34e148\n; > GJBaseGameLayer::playerWillSwitchMode @ 0x491684\n; > GJBaseGameLayer::bumpPlayer @ 0x492176\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\nSUBS            R1, #3                                                 ; +0x0, 0x47596c\nCMP             R1, #0x2B ; '+'                                        ; +0x2, 0x47596e\nBHI             loc_47597E                                             ; +0x4, 0x475970\nLDR             R3, =(unk_9ABF60 - 0x475978)                           ; +0x6, 0x475972\nADD             R3, PC; unk_9ABF60                                     ; +0x8, 0x475974\nADD             R1, R3                                                 ; +0xa, 0x475976\nLDRB.W          R0, [R1,#0x34]                                         ; +0xc, 0x475978\nBX              LR                                                     ; +0x10, 0x47597c\nMOVS            R0, #0                                                 ; +0x12, 0x47597e\nBX              LR                                                     ; +0x14, 0x475980", "xrefs": ["PlayerObject::ringJump @ 0x34e148", "GJBaseGameLayer::playerWillSwitchMode @ 0x491684", "GJBaseGameLayer::bumpPlayer @ 0x492176"], "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"}