{"type": "func", "start": 4666552, "end": 4666736, "name": "GJBaseGameLayer::updatePlayerCollisionBlocks", "pseudocode": "// \n// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x4734b8 to 0x473570 (184 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::resetLevel @ 0x31fc80\n// > GJBaseGameLayer::updateCollisionBlocks @ 0x473590\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  PlayerObject *m_player1; // r5\n  GameObject **p_m_player2CollisionBlock; // r8\n  GameObject *m_player1CollisionBlock; // r4\n  int i; // r9\n  void (__fastcall *setStartPos)(GameObject *__hidden, cocos2d::CCPoint); // r11\n  int v7; // r0\n  float (__fastcall *getRotation)(cocos2d::CCNode *__hidden); // r3\n  float m_scaleY; // r3\n  cocos2d::CCPoint v10; // [sp+4h] [bp-10h] BYREF\n\n  m_player1 = a1->m_player1;\n  p_m_player2CollisionBlock = &a1->m_player2CollisionBlock;\n  m_player1CollisionBlock = a1->m_player1CollisionBlock;\n  for ( i = 0; ; i = 1 )\n  {\n    setStartPos = m_player1CollisionBlock->setStartPos;\n    m_player1->getRealPosition(&v10, m_player1);\n    ((void (__fastcall *)(GameObject *, cocos2d::CCPoint *))setStartPos)(m_player1CollisionBlock, &v10);\n    v7 = ((int (__fastcall *)(PlayerObject *))m_player1->getRotation)(m_player1);\n    getRotation = m_player1->getRotation;\n    LODWORD(m_player1CollisionBlock->m_startRotationX) = v7;\n    LODWORD(m_player1CollisionBlock->m_startRotationY) = ((int (__fastcall *)(PlayerObject *))getRotation)(m_player1);\n    m_player1CollisionBlock->m_spriteWidthScale = m_player1->m_spriteWidthScale;\n    m_player1CollisionBlock->m_scaleX = m_player1->m_scaleX;\n    m_player1CollisionBlock->m_spriteHeightScale = m_player1->m_spriteHeightScale;\n    m_scaleY = m_player1->m_scaleY;\n    m_player1CollisionBlock->m_isOrientedBoxDirty = 1;\n    m_player1CollisionBlock->m_scaleY = m_scaleY;\n    GameObject::calculateOrientedBox(m_player1CollisionBlock);\n    GJBaseGameLayer::reorderObjectSection(a1, m_player1CollisionBlock);\n    if ( i == 1 )\n      break;\n    m_player1CollisionBlock = *p_m_player2CollisionBlock;\n    m_player1 = a1->m_player2;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updatePlayerCollisionBlocks from 0x4734b8 to 0x473570 (184 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::resetLevel @ 0x31fc80\n; > GJBaseGameLayer::updateCollisionBlocks @ 0x473590\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             R3, =(__stack_chk_guard_ptr - 0x4734C2)                ; +0x0, 0x4734b8\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x4734ba\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4734be\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4734c0\nSUB             SP, SP, #0x14                                          ; +0xa, 0x4734c2\nADD.W           R8, R0, #0x2A00                                        ; +0xc, 0x4734c4\nLDR             R2, [R3]                                               ; +0x10, 0x4734c8\nMOV             R6, R3                                                 ; +0x12, 0x4734ca\nADD.W           R3, R0, #0x2A00                                        ; +0x14, 0x4734cc\nLDR.W           R5, [R0,#0x8B8]                                        ; +0x18, 0x4734d0\nADD.W           R8, R8, #0x18                                          ; +0x1c, 0x4734d4\nADD.W           R10, SP, #0x14+var_10                                  ; +0x20, 0x4734d8\nLDR             R4, [R3,#0x14]                                         ; +0x24, 0x4734dc\nMOV             R7, R0                                                 ; +0x26, 0x4734de\nMOV.W           R9, #0                                                 ; +0x28, 0x4734e0\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x2c, 0x4734e4\nLDR             R3, [R4]                                               ; +0x2e, 0x4734e6\nMOV             R1, R5                                                 ; +0x30, 0x4734e8\nMOV             R0, R10                                                ; +0x32, 0x4734ea\nLDR.W           R11, [R3,#0x2A4]                                       ; +0x34, 0x4734ec\nLDR             R3, [R5]                                               ; +0x38, 0x4734f0\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x3a, 0x4734f2\nBLX             R3                                                     ; +0x3e, 0x4734f6\nMOV             R1, R10                                                ; +0x40, 0x4734f8\nMOV             R0, R4                                                 ; +0x42, 0x4734fa\nBLX             R11                                                    ; +0x44, 0x4734fc\nLDR             R3, [R5]                                               ; +0x46, 0x4734fe\nMOV             R0, R5                                                 ; +0x48, 0x473500\nLDR.W           R3, [R3,#0xB0]                                         ; +0x4a, 0x473502\nBLX             R3                                                     ; +0x4e, 0x473506\nLDR             R3, [R5]                                               ; +0x50, 0x473508\nLDR.W           R3, [R3,#0xB0]                                         ; +0x52, 0x47350a\nSTR.W           R0, [R4,#0x33C]                                        ; +0x56, 0x47350e\nMOV             R0, R5                                                 ; +0x5a, 0x473512\nBLX             R3                                                     ; +0x5c, 0x473514\nSTR.W           R0, [R4,#0x340]                                        ; +0x5e, 0x473516\nMOV             R0, R4; this                                           ; +0x62, 0x47351a\nLDR.W           R3, [R5,#0x2FC]                                        ; +0x64, 0x47351c\nSTR.W           R3, [R4,#0x2FC]                                        ; +0x68, 0x473520\nLDR.W           R3, [R5,#0x3E8]                                        ; +0x6c, 0x473524\nSTR.W           R3, [R4,#0x3E8]                                        ; +0x70, 0x473528\nLDR.W           R3, [R5,#0x300]                                        ; +0x74, 0x47352c\nSTR.W           R3, [R4,#0x300]                                        ; +0x78, 0x473530\nLDR.W           R3, [R5,#0x3EC]                                        ; +0x7c, 0x473534\nMOVS            R5, #1                                                 ; +0x80, 0x473538\nSTRB.W          R5, [R4,#0x2D5]                                        ; +0x82, 0x47353a\nSTR.W           R3, [R4,#0x3EC]                                        ; +0x86, 0x47353e\nBL              _ZN10GameObject20calculateOrientedBoxEv; GameObject::calculateOrientedBox(void) ; +0x8a, 0x473542\nMOV             R0, R7; this                                           ; +0x8e, 0x473546\nMOV             R1, R4; GameObject *                                   ; +0x90, 0x473548\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x92, 0x47354a\nCMP             R9, R5                                                 ; +0x96, 0x47354e\nBEQ             loc_47355E                                             ; +0x98, 0x473550\nMOV             R9, R5                                                 ; +0x9a, 0x473552\nLDR.W           R4, [R8]                                               ; +0x9c, 0x473554\nLDR.W           R5, [R7,#0x8BC]                                        ; +0xa0, 0x473558\nB               loc_4734E6                                             ; +0xa4, 0x47355c\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xa6, 0x47355e\nLDR             R3, [R6]                                               ; +0xa8, 0x473560\nCMP             R2, R3                                                 ; +0xaa, 0x473562\nBEQ             loc_47356A                                             ; +0xac, 0x473564\nBLX             __stack_chk_fail                                       ; +0xae, 0x473566\nADD             SP, SP, #0x14                                          ; +0xb2, 0x47356a\nPOP.W           {R4-R11,PC}                                            ; +0xb4, 0x47356c", "xrefs": ["PlayLayer::resetLevel @ 0x31fc80", "GJBaseGameLayer::updateCollisionBlocks @ 0x473590"], "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"}