{"type": "func", "start": 8785216, "end": 8785484, "name": "GJBaseGameLayer::updatePlayerCollisionBlocks", "pseudocode": "// \n// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x860d40 to 0x860e4c (268 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::resetLevel @ 0x5e55a4\n// > GJBaseGameLayer::updateCollisionBlocks @ 0x860eb8\n// > <???> @ 0x553f8\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::updatePlayerCollisionBlocks(GJBaseGameLayer *a1)\n{\n  int v2; // w24\n  GameObject *m_player1CollisionBlock; // x19\n  PlayerObject *i; // x20\n  void (__fastcall *setStartPos)(GameObject *__hidden, cocos2d::CCPoint); // x26\n  float v6; // s0\n  PlayerObject_vtbl *v7; // x1\n  float m_scaleY; // w1\n  float m_spriteWidthScale; // w4\n  float m_scaleX; // w3\n  float m_spriteHeightScale; // w2\n  __int64 v12; // [xsp+50h] [xbp+50h] BYREF\n\n  v2 = 0;\n  m_player1CollisionBlock = a1->m_player1CollisionBlock;\n  for ( i = a1->m_player1; ; i = a1->m_player2 )\n  {\n    setStartPos = m_player1CollisionBlock->setStartPos;\n    ((void (__fastcall *)(__int64 *__return_ptr, PlayerObject *))i->getRealPosition)(&v12, i);\n    ((void (__fastcall *)(GameObject *, __int64 *))setStartPos)(m_player1CollisionBlock, &v12);\n    v6 = i->getRotation(i);\n    v7 = i->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    m_player1CollisionBlock->m_startRotationX = v6;\n    m_player1CollisionBlock->m_startRotationY = v7->getRotation(i);\n    m_scaleY = i->m_scaleY;\n    m_spriteWidthScale = i->m_spriteWidthScale;\n    m_scaleX = i->m_scaleX;\n    m_spriteHeightScale = i->m_spriteHeightScale;\n    m_player1CollisionBlock->m_isOrientedBoxDirty = 1;\n    m_player1CollisionBlock->m_scaleY = m_scaleY;\n    m_player1CollisionBlock->m_spriteWidthScale = m_spriteWidthScale;\n    m_player1CollisionBlock->m_scaleX = m_scaleX;\n    m_player1CollisionBlock->m_spriteHeightScale = m_spriteHeightScale;\n    GameObject::calculateOrientedBox(m_player1CollisionBlock);\n    GJBaseGameLayer::reorderObjectSection(a1, m_player1CollisionBlock);\n    if ( v2 )\n      break;\n    m_player1CollisionBlock = a1->m_player2CollisionBlock;\n    v2 = 1;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updatePlayerCollisionBlocks from 0x860d40 to 0x860e4c (268 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::resetLevel @ 0x5e55a4\n; > GJBaseGameLayer::updateCollisionBlocks @ 0x860eb8\n; > <???> @ 0x553f8\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x860d40\nMOV             X29, SP                                                ; +0x4, 0x860d44\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x860d48\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x860d4c\nMOV             X21, X0                                                ; +0x10, 0x860d50\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x14, 0x860d54\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x18, 0x860d58\nLDR             X0, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x860d5c\nMOV             W24, #0                                                ; +0x20, 0x860d60\nLDR             X19, [X21,#0x3110]                                     ; +0x24, 0x860d64\nADD             X23, X29, #0x60+var_10                                 ; +0x28, 0x860d68\nLDR             X20, [X21,#0xDF8]                                      ; +0x2c, 0x860d6c\nLDR             X0, [X0]                                               ; +0x30, 0x860d70\nSTP             X25, X26, [SP,#0x60+var_20]                            ; +0x34, 0x860d74\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x38, 0x860d78\nMOV             W25, #1                                                ; +0x3c, 0x860d7c\nLDR             X1, [X20]                                              ; +0x40, 0x860d80\nMOV             X8, X23                                                ; +0x44, 0x860d84\nLDR             X2, [X19]                                              ; +0x48, 0x860d88\nMOV             X0, X20                                                ; +0x4c, 0x860d8c\nLDR             X1, [X1,#0x540]                                        ; +0x50, 0x860d90\nLDR             X26, [X2,#0x548]                                       ; +0x54, 0x860d94\nBLR             X1                                                     ; +0x58, 0x860d98\nMOV             X0, X19                                                ; +0x5c, 0x860d9c\nMOV             X1, X23                                                ; +0x60, 0x860da0\nBLR             X26                                                    ; +0x64, 0x860da4\nLDR             X1, [X20]                                              ; +0x68, 0x860da8\nMOV             X0, X20                                                ; +0x6c, 0x860dac\nLDR             X1, [X1,#0x160]                                        ; +0x70, 0x860db0\nBLR             X1                                                     ; +0x74, 0x860db4\nLDR             X1, [X20]                                              ; +0x78, 0x860db8\nMOV             X0, X20                                                ; +0x7c, 0x860dbc\nSTR             S0, [X19,#0x3BC]                                       ; +0x80, 0x860dc0\nLDR             X1, [X1,#0x160]                                        ; +0x84, 0x860dc4\nBLR             X1                                                     ; +0x88, 0x860dc8\nSTR             S0, [X19,#0x3C0]                                       ; +0x8c, 0x860dcc\nMOV             X0, X19; this                                          ; +0x90, 0x860dd0\nLDR             W1, [X20,#0x474]                                       ; +0x94, 0x860dd4\nLDR             W4, [X20,#0x37C]                                       ; +0x98, 0x860dd8\nLDR             W3, [X20,#0x470]                                       ; +0x9c, 0x860ddc\nLDR             W2, [X20,#0x380]                                       ; +0xa0, 0x860de0\nSTRB            W25, [X19,#0x351]                                      ; +0xa4, 0x860de4\nSTR             W1, [X19,#0x474]                                       ; +0xa8, 0x860de8\nSTR             W4, [X19,#0x37C]                                       ; +0xac, 0x860dec\nSTR             W3, [X19,#0x470]                                       ; +0xb0, 0x860df0\nSTR             W2, [X19,#0x380]                                       ; +0xb4, 0x860df4\nBL              _ZN10GameObject20calculateOrientedBoxEv; GameObject::calculateOrientedBox(void) ; +0xb8, 0x860df8\nMOV             X0, X21; this                                          ; +0xbc, 0x860dfc\nMOV             X1, X19; GameObject *                                  ; +0xc0, 0x860e00\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0xc4, 0x860e04\nCBZ             W24, loc_860E38                                        ; +0xc8, 0x860e08\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xcc, 0x860e0c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xd0, 0x860e10\nLDR             X0, [X22]                                              ; +0xd4, 0x860e14\nCMP             X1, X0                                                 ; +0xd8, 0x860e18\nB.NE            loc_860E48                                             ; +0xdc, 0x860e1c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xe0, 0x860e20\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xe4, 0x860e24\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0xe8, 0x860e28\nLDP             X25, X26, [SP,#0x60+var_20]                            ; +0xec, 0x860e2c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xf0, 0x860e30\nRET                                                                    ; +0xf4, 0x860e34\nLDR             X19, [X21,#0x3118]                                     ; +0xf8, 0x860e38\nMOV             W24, #1                                                ; +0xfc, 0x860e3c\nLDR             X20, [X21,#0xE00]                                      ; +0x100, 0x860e40\nB               loc_860D80                                             ; +0x104, 0x860e44\nBL              .__stack_chk_fail                                      ; +0x108, 0x860e48", "xrefs": ["PlayLayer::resetLevel @ 0x5e55a4", "GJBaseGameLayer::updateCollisionBlocks @ 0x860eb8", "<???> @ 0x553f8"], "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"}