{"type": "func", "start": 4792524, "end": 4792740, "name": "GJBaseGameLayer::bumpPlayer", "pseudocode": "// \n// GJBaseGameLayer::bumpPlayer from 0x4920cc to 0x4921a4 (216 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492a6e\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\nvoid GJBaseGameLayer::bumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)\n{\n  const cocos2d::CCPoint *v6; // r10\n  int v7; // r2\n  bool v8; // r3\n  GameObjectType v9; // r0\n  float BumpMod; // r0\n  _BOOL4 m_isReverse; // r3\n  float v12; // r8\n  GameObjectType v13; // r0\n  GameObjectType v14; // r0\n  GJGameEvent v15; // r0\n  _BYTE v16[8]; // [sp+Ch] [bp-14h] BYREF\n  cocos2d::CCPoint v17; // [sp+14h] [bp-Ch] BYREF\n\n  if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )\n  {\n    v6 = a3->getPosition(a3);\n    cocos2d::CCPoint::CCPoint(&v17, 0.0, -10.0);\n    cocos2d::CCPoint::operator+(v16, v6, &v17);\n    cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_lastPortalPos, COERCE_FLOAT(v16), v7, v8);\n    a3->activatedByPlayer(a3, a2);\n    v9 = a3->getType(a3);\n    BumpMod = GJBaseGameLayer::getBumpMod(a1, a2, v9);\n    m_isReverse = a3->m_isReverse;\n    a2->m_lastActivatedPortal = a3;\n    v12 = BumpMod;\n    if ( m_isReverse )\n      PlayerObject::reversePlayer(a2, a3);\n    v13 = a3->getType(a3);\n    PlayerObject::bumpPlayer(a2, v12, v13, a3->m_hasNoEffects, a3);\n    v14 = a3->getType(a3);\n    v15 = GJBaseGameLayer::objectTypeToGameEvent(a1, v14);\n    GJBaseGameLayer::gameEventTriggered(a1, v15, 0, 0);\n    GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::bumpPlayer from 0x4920cc to 0x4921a4 (216 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492a6e\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.W          {R4-R10,LR}                                            ; +0x0, 0x4920cc\nSUB             SP, SP, #0x20                                          ; +0x4, 0x4920d0\nLDR             R6, =(__stack_chk_guard_ptr - 0x4920DE)                ; +0x6, 0x4920d2\nMOV             R7, R0                                                 ; +0x8, 0x4920d4\nMOV             R5, R1                                                 ; +0xa, 0x4920d6\nMOV             R4, R2                                                 ; +0xc, 0x4920d8\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4920da\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x4920dc\nLDR             R3, [R6]                                               ; +0x12, 0x4920de\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x14, 0x4920e0\nBL              _ZN15GJBaseGameLayer22canBeActivatedByPlayerEP12PlayerObjectP16EffectGameObject; GJBaseGameLayer::canBeActivatedByPlayer(PlayerObject *,EffectGameObject *) ; +0x16, 0x4920e2\nCMP             R0, #0                                                 ; +0x1a, 0x4920e6\nBEQ             loc_492192                                             ; +0x1c, 0x4920e8\nLDR             R3, [R4]                                               ; +0x1e, 0x4920ea\nMOV             R0, R4                                                 ; +0x20, 0x4920ec\nADD.W           R9, SP, #0x20+var_C                                    ; +0x22, 0x4920ee\nADD.W           R8, SP, #0x20+var_14                                   ; +0x26, 0x4920f2\nLDR             R3, [R3,#0x60]                                         ; +0x2a, 0x4920f6\nBLX             R3                                                     ; +0x2c, 0x4920f8\nMOVS            R1, #0; float                                          ; +0x2e, 0x4920fa\nLDR             R2, flt_4921A4; float                                  ; +0x30, 0x4920fc\nMOV             R10, R0                                                ; +0x32, 0x4920fe\nMOV             R0, R9; this                                           ; +0x34, 0x492100\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x36, 0x492102\nMOV             R2, R9                                                 ; +0x3a, 0x492106\nMOV             R0, R8                                                 ; +0x3c, 0x492108\nMOV             R1, R10                                                ; +0x3e, 0x49210a\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x40, 0x49210c\nMOV             R1, R8                                                 ; +0x44, 0x492110\nADD.W           R0, R5, #0x7F8                                         ; +0x46, 0x492112\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x4a, 0x492116\nLDR             R3, [R4]                                               ; +0x4e, 0x49211a\nMOV             R1, R5                                                 ; +0x50, 0x49211c\nMOV             R0, R4                                                 ; +0x52, 0x49211e\nLDR.W           R3, [R3,#0x2F8]                                        ; +0x54, 0x492120\nBLX             R3                                                     ; +0x58, 0x492124\nLDR             R3, [R4]                                               ; +0x5a, 0x492126\nMOV             R0, R4                                                 ; +0x5c, 0x492128\nLDR.W           R3, [R3,#0x37C]                                        ; +0x5e, 0x49212a\nBLX             R3                                                     ; +0x62, 0x49212e\nMOV             R1, R5; PlayerObject *                                 ; +0x64, 0x492130\nMOV             R2, R0; int                                            ; +0x66, 0x492132\nMOV             R0, R7; this                                           ; +0x68, 0x492134\nBL              _ZN15GJBaseGameLayer10getBumpModEP12PlayerObjecti; GJBaseGameLayer::getBumpMod(PlayerObject *,int) ; +0x6a, 0x492136\nLDRB.W          R3, [R4,#0x634]                                        ; +0x6e, 0x49213a\nSTR.W           R4, [R5,#0x84C]                                        ; +0x72, 0x49213e\nMOV             R8, R0                                                 ; +0x76, 0x492142\nCBZ             R3, loc_49214E                                         ; +0x78, 0x492144\nMOV             R0, R5; this                                           ; +0x7a, 0x492146\nMOV             R1, R4; EffectGameObject *                             ; +0x7c, 0x492148\nBL              _ZN12PlayerObject13reversePlayerEP16EffectGameObject; PlayerObject::reversePlayer(EffectGameObject *) ; +0x7e, 0x49214a\nLDR             R3, [R4]                                               ; +0x82, 0x49214e\nMOV             R0, R4                                                 ; +0x84, 0x492150\nLDR.W           R3, [R3,#0x37C]                                        ; +0x86, 0x492152\nBLX             R3                                                     ; +0x8a, 0x492156\nMOV             R1, R8; float                                          ; +0x8c, 0x492158\nLDRB.W          R3, [R4,#0x384]; bool                                  ; +0x8e, 0x49215a\nSTR             R4, [SP,#0x20+var_20]; GameObject *                    ; +0x92, 0x49215e\nMOV             R2, R0; int                                            ; +0x94, 0x492160\nMOV             R0, R5; this                                           ; +0x96, 0x492162\nBL              _ZN12PlayerObject10bumpPlayerEfibP10GameObject; PlayerObject::bumpPlayer(float,int,bool,GameObject *) ; +0x98, 0x492164\nLDR             R3, [R4]                                               ; +0x9c, 0x492168\nMOV             R0, R4                                                 ; +0x9e, 0x49216a\nLDR.W           R3, [R3,#0x37C]                                        ; +0xa0, 0x49216c\nBLX             R3                                                     ; +0xa4, 0x492170\nMOV             R1, R0; int                                            ; +0xa6, 0x492172\nMOV             R0, R7; this                                           ; +0xa8, 0x492174\nBL              _ZN15GJBaseGameLayer21objectTypeToGameEventEi; GJBaseGameLayer::objectTypeToGameEvent(int) ; +0xaa, 0x492176\nMOVS            R2, #0                                                 ; +0xae, 0x49217a\nMOV             R3, R2                                                 ; +0xb0, 0x49217c\nMOV             R1, R0                                                 ; +0xb2, 0x49217e\nMOV             R0, R7                                                 ; +0xb4, 0x492180\nBL              _ZN15GJBaseGameLayer18gameEventTriggeredE11GJGameEventii; GJBaseGameLayer::gameEventTriggered(GJGameEvent,int,int) ; +0xb6, 0x492182\nMOVS            R2, #0                                                 ; +0xba, 0x492186\nMOV             R0, R7                                                 ; +0xbc, 0x492188\nMOVS            R1, #9                                                 ; +0xbe, 0x49218a\nMOV             R3, R2                                                 ; +0xc0, 0x49218c\nBL              _ZN15GJBaseGameLayer18gameEventTriggeredE11GJGameEventii; GJBaseGameLayer::gameEventTriggered(GJGameEvent,int,int) ; +0xc2, 0x49218e\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xc6, 0x492192\nLDR             R3, [R6]                                               ; +0xc8, 0x492194\nCMP             R2, R3                                                 ; +0xca, 0x492196\nBEQ             loc_49219E                                             ; +0xcc, 0x492198\nBLX             __stack_chk_fail                                       ; +0xce, 0x49219a\nADD             SP, SP, #0x20 ; ' '                                    ; +0xd2, 0x49219e\nPOP.W           {R4-R10,PC}                                            ; +0xd4, 0x4921a0", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x492a6e"], "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"}