{"type": "func", "start": 4296191328, "end": 4296191739, "name": "GJBaseGameLayer::updatePlayerCollisionBlocks", "pseudocode": "// \n// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x10012ad60 to 0x10012aefb (411 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::resetLevel @ 0x1000beb33\n// > GJBaseGameLayer::updateCollisionBlocks @ 0x10012af5e\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 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(GJBaseGameLayer *a1)\n{\n  GameObject *m_player1CollisionBlock; // r15\n  PlayerObject *m_player1; // r12\n  GameObject *m_player2CollisionBlock; // r15\n  PlayerObject *m_player2; // r12\n  _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  m_player1CollisionBlock = a1->m_player1CollisionBlock;\n  m_player1 = a1->m_player1;\n  ((void (__fastcall *)(_BYTE *, PlayerObject *))m_player1->getRealPosition)(v6, m_player1);\n  ((void (__fastcall *)(GameObject *, _BYTE *))m_player1CollisionBlock->setStartPos)(m_player1CollisionBlock, v6);\n  m_player1CollisionBlock->m_startRotationX = ((float (__fastcall *)(PlayerObject *))m_player1->getRotation)(m_player1);\n  m_player1CollisionBlock->m_startRotationY = ((float (__fastcall *)(PlayerObject *))m_player1->getRotation)(m_player1);\n  m_player1CollisionBlock->m_scaleX = m_player1->m_scaleX;\n  *(_QWORD *)&m_player1CollisionBlock->m_spriteWidthScale = *(_QWORD *)&m_player1->m_spriteWidthScale;\n  m_player1CollisionBlock->m_scaleY = m_player1->m_scaleY;\n  m_player1CollisionBlock->m_isOrientedBoxDirty = 1;\n  GameObject::calculateOrientedBox(m_player1CollisionBlock);\n  GJBaseGameLayer::removeObjectFromSection(a1, m_player1CollisionBlock);\n  ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->addToSection)(a1, m_player1CollisionBlock);\n  m_player2CollisionBlock = a1->m_player2CollisionBlock;\n  m_player2 = a1->m_player2;\n  ((void (__fastcall *)(_BYTE *, PlayerObject *))m_player2->getRealPosition)(v6, m_player2);\n  ((void (__fastcall *)(GameObject *, _BYTE *))m_player2CollisionBlock->setStartPos)(m_player2CollisionBlock, v6);\n  m_player2CollisionBlock->m_startRotationX = ((float (__fastcall *)(PlayerObject *))m_player2->getRotation)(m_player2);\n  m_player2CollisionBlock->m_startRotationY = ((float (__fastcall *)(PlayerObject *))m_player2->getRotation)(m_player2);\n  m_player2CollisionBlock->m_scaleX = m_player2->m_scaleX;\n  *(_QWORD *)&m_player2CollisionBlock->m_spriteWidthScale = *(_QWORD *)&m_player2->m_spriteWidthScale;\n  m_player2CollisionBlock->m_scaleY = m_player2->m_scaleY;\n  m_player2CollisionBlock->m_isOrientedBoxDirty = 1;\n  GameObject::calculateOrientedBox(m_player2CollisionBlock);\n  GJBaseGameLayer::removeObjectFromSection(a1, m_player2CollisionBlock);\n  ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->addToSection)(a1, m_player2CollisionBlock);\n}", "assembly": "; \n; GJBaseGameLayer::updatePlayerCollisionBlocks from 0x10012ad60 to 0x10012aefb (411 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::resetLevel @ 0x1000beb33\n; > GJBaseGameLayer::updateCollisionBlocks @ 0x10012af5e\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    rbp                                                            ; +0x0, 0x10012ad60\nmov     rbp, rsp                                                       ; +0x1, 0x10012ad61\npush    r15                                                            ; +0x4, 0x10012ad64\npush    r14                                                            ; +0x6, 0x10012ad66\npush    r12                                                            ; +0x8, 0x10012ad68\npush    rbx                                                            ; +0xa, 0x10012ad6a\nsub     rsp, 10h                                                       ; +0xb, 0x10012ad6b\nmov     rbx, rdi                                                       ; +0xf, 0x10012ad6f\nmov     r15, [rdi+2F38h]                                               ; +0x12, 0x10012ad72\nmov     r12, [rdi+0CA0h]                                               ; +0x19, 0x10012ad79\nmov     rax, [r12]                                                     ; +0x20, 0x10012ad80\nlea     r14, [rbp+var_28]                                              ; +0x24, 0x10012ad84\nmov     rdi, r14                                                       ; +0x28, 0x10012ad88\nmov     rsi, r12                                                       ; +0x2b, 0x10012ad8b\ncall    qword ptr [rax+540h]                                           ; +0x2e, 0x10012ad8e\nmov     rax, [r15]                                                     ; +0x34, 0x10012ad94\nmov     rdi, r15                                                       ; +0x37, 0x10012ad97\nmov     rsi, r14                                                       ; +0x3a, 0x10012ad9a\ncall    qword ptr [rax+548h]                                           ; +0x3d, 0x10012ad9d\nmov     rax, [r12]                                                     ; +0x43, 0x10012ada3\nmov     rdi, r12                                                       ; +0x47, 0x10012ada7\ncall    qword ptr [rax+160h]                                           ; +0x4a, 0x10012adaa\nmovss   dword ptr [r15+3CCh], xmm0                                     ; +0x50, 0x10012adb0\nmov     rax, [r12]                                                     ; +0x59, 0x10012adb9\nmov     rdi, r12                                                       ; +0x5d, 0x10012adbd\ncall    qword ptr [rax+160h]                                           ; +0x60, 0x10012adc0\nmovss   dword ptr [r15+3D0h], xmm0                                     ; +0x66, 0x10012adc6\nmovss   xmm0, dword ptr [r12+480h]                                     ; +0x6f, 0x10012adcf\nmovss   dword ptr [r15+480h], xmm0                                     ; +0x79, 0x10012add9\nmovsd   xmm0, qword ptr [r12+38Ch]                                     ; +0x82, 0x10012ade2\nmovsd   qword ptr [r15+38Ch], xmm0                                     ; +0x8c, 0x10012adec\nmovss   xmm0, dword ptr [r12+484h]                                     ; +0x95, 0x10012adf5\nmovss   dword ptr [r15+484h], xmm0                                     ; +0x9f, 0x10012adff\nmov     byte ptr [r15+361h], 1                                         ; +0xa8, 0x10012ae08\nmov     rdi, r15                                                       ; +0xb0, 0x10012ae10\ncall    GameObject__calculateOrientedBox                               ; +0xb3, 0x10012ae13\nmov     rdi, rbx                                                       ; +0xb8, 0x10012ae18\nmov     rsi, r15                                                       ; +0xbb, 0x10012ae1b\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0xbe, 0x10012ae1e\nmov     rax, [rbx]                                                     ; +0xc3, 0x10012ae23\nmov     rdi, rbx                                                       ; +0xc6, 0x10012ae26\nmov     rsi, r15                                                       ; +0xc9, 0x10012ae29\ncall    qword ptr [rax+508h]                                           ; +0xcc, 0x10012ae2c\nmov     r15, [rbx+2F40h]                                               ; +0xd2, 0x10012ae32\nmov     r12, [rbx+0CA8h]                                               ; +0xd9, 0x10012ae39\nmov     rax, [r12]                                                     ; +0xe0, 0x10012ae40\nmov     rdi, r14                                                       ; +0xe4, 0x10012ae44\nmov     rsi, r12                                                       ; +0xe7, 0x10012ae47\ncall    qword ptr [rax+540h]                                           ; +0xea, 0x10012ae4a\nmov     rax, [r15]                                                     ; +0xf0, 0x10012ae50\nmov     rdi, r15                                                       ; +0xf3, 0x10012ae53\nmov     rsi, r14                                                       ; +0xf6, 0x10012ae56\ncall    qword ptr [rax+548h]                                           ; +0xf9, 0x10012ae59\nmov     rax, [r12]                                                     ; +0xff, 0x10012ae5f\nmov     rdi, r12                                                       ; +0x103, 0x10012ae63\ncall    qword ptr [rax+160h]                                           ; +0x106, 0x10012ae66\nmovss   dword ptr [r15+3CCh], xmm0                                     ; +0x10c, 0x10012ae6c\nmov     rax, [r12]                                                     ; +0x115, 0x10012ae75\nmov     rdi, r12                                                       ; +0x119, 0x10012ae79\ncall    qword ptr [rax+160h]                                           ; +0x11c, 0x10012ae7c\nmovss   dword ptr [r15+3D0h], xmm0                                     ; +0x122, 0x10012ae82\nmovss   xmm0, dword ptr [r12+480h]                                     ; +0x12b, 0x10012ae8b\nmovss   dword ptr [r15+480h], xmm0                                     ; +0x135, 0x10012ae95\nmovsd   xmm0, qword ptr [r12+38Ch]                                     ; +0x13e, 0x10012ae9e\nmovsd   qword ptr [r15+38Ch], xmm0                                     ; +0x148, 0x10012aea8\nmovss   xmm0, dword ptr [r12+484h]                                     ; +0x151, 0x10012aeb1\nmovss   dword ptr [r15+484h], xmm0                                     ; +0x15b, 0x10012aebb\nmov     byte ptr [r15+361h], 1                                         ; +0x164, 0x10012aec4\nmov     rdi, r15                                                       ; +0x16c, 0x10012aecc\ncall    GameObject__calculateOrientedBox                               ; +0x16f, 0x10012aecf\nmov     rdi, rbx                                                       ; +0x174, 0x10012aed4\nmov     rsi, r15                                                       ; +0x177, 0x10012aed7\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x17a, 0x10012aeda\nmov     rax, [rbx]                                                     ; +0x17f, 0x10012aedf\nmov     rdi, rbx                                                       ; +0x182, 0x10012aee2\nmov     rsi, r15                                                       ; +0x185, 0x10012aee5\ncall    qword ptr [rax+508h]                                           ; +0x188, 0x10012aee8\nadd     rsp, 10h                                                       ; +0x18e, 0x10012aeee\npop     rbx                                                            ; +0x192, 0x10012aef2\npop     r12                                                            ; +0x193, 0x10012aef3\npop     r14                                                            ; +0x195, 0x10012aef5\npop     r15                                                            ; +0x197, 0x10012aef7\npop     rbp                                                            ; +0x199, 0x10012aef9\nretn                                                                   ; +0x19a, 0x10012aefa", "xrefs": ["PlayLayer::resetLevel @ 0x1000beb33", "GJBaseGameLayer::updateCollisionBlocks @ 0x10012af5e"], "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"}