{"type": "func", "start": 4297616592, "end": 4297616835, "name": "CollisionBlockPopup::onDynamicBlock", "pseudocode": "// \n// CollisionBlockPopup::onDynamicBlock from 0x100286cd0 to 0x100286dc3 (243 bytes)\n// \n// 1 xrefs:\n// > CollisionBlockPopup::init @ 0x100286682\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 CollisionBlockPopup::onDynamicBlock(CollisionBlockPopup *m_gameObjects, cocos2d::CCObject *a2)\n{\n  CollisionBlockPopup *v2; // rbx\n  bool v3; // al\n  EffectGameObject *m_gameObject; // rcx\n  unsigned int v5; // r14d\n  __int64 v6; // r14\n  unsigned int v7; // ebx\n  GameObject *v8; // rax\n\n  v2 = m_gameObjects;\n  v3 = !m_gameObjects->m_dynamicBlock;\n  m_gameObjects->m_dynamicBlock = v3;\n  m_gameObject = m_gameObjects->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_isDynamicBlock = v3;\n    goto LABEL_8;\n  }\n  m_gameObjects = (CollisionBlockPopup *)m_gameObjects->m_gameObjects;\n  if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )\n  {\n    v5 = 0;\n    do\n    {\n      a2 = (cocos2d::CCObject *)v5;\n      *(_BYTE *)(sub_1007200C0(v2->m_gameObjects, v5++) + 1677) = v2->m_dynamicBlock;\n      m_gameObjects = (CollisionBlockPopup *)v2->m_gameObjects;\n    }\n    while ( v5 < (unsigned int)sub_100720070(m_gameObjects) );\n  }\n  if ( v2->m_gameObject )\n  {\nLABEL_8:\n    v6 = sub_10071F9E0(m_gameObjects, a2);\n    sub_10071FCD0(v6, v2->m_gameObject);\n    if ( !v6 )\n      return;\n    goto LABEL_9;\n  }\n  v6 = (__int64)v2->m_gameObjects;\n  if ( !v6 )\n    return;\nLABEL_9:\n  if ( (unsigned int)sub_100720070(v6) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = (GameObject *)sub_1007200C0(v6, v7);\n      LevelEditorLayer::updateObjectLabel(v8);\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(v6) );\n  }\n}", "assembly": "; \n; CollisionBlockPopup::onDynamicBlock from 0x100286cd0 to 0x100286dc3 (243 bytes)\n; \n; 1 xrefs:\n; > CollisionBlockPopup::init @ 0x100286682\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, 0x100286cd0\nmov     rbp, rsp                                                       ; +0x1, 0x100286cd1\npush    r14                                                            ; +0x4, 0x100286cd4\npush    rbx                                                            ; +0x6, 0x100286cd6\nmov     rbx, rdi                                                       ; +0x7, 0x100286cd7\nmovzx   eax, byte ptr [rdi+29Ch]                                       ; +0xa, 0x100286cda\nxor     al, 1                                                          ; +0x11, 0x100286ce1\nmov     [rdi+29Ch], al                                                 ; +0x13, 0x100286ce3\nmov     rcx, [rdi+280h]                                                ; +0x19, 0x100286ce9\ntest    rcx, rcx                                                       ; +0x20, 0x100286cf0\njz      short loc_100286CFD                                            ; +0x23, 0x100286cf3\nmov     [rcx+68Dh], al                                                 ; +0x25, 0x100286cf5\njmp     short loc_100286D5A                                            ; +0x2b, 0x100286cfb\nmov     rdi, [rbx+288h]                                                ; +0x2d, 0x100286cfd\ntest    rdi, rdi                                                       ; +0x34, 0x100286d04\njz      short loc_100286D50                                            ; +0x37, 0x100286d07\ncall    sub_100720070                                                  ; +0x39, 0x100286d09\ntest    eax, eax                                                       ; +0x3e, 0x100286d0e\njz      short loc_100286D50                                            ; +0x40, 0x100286d10\nxor     r14d, r14d                                                     ; +0x42, 0x100286d12\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x100286d15\nmov     rdi, [rbx+288h]                                                ; +0x50, 0x100286d20\nmov     esi, r14d                                                      ; +0x57, 0x100286d27\ncall    sub_1007200C0                                                  ; +0x5a, 0x100286d2a\nmovzx   ecx, byte ptr [rbx+29Ch]                                       ; +0x5f, 0x100286d2f\nmov     [rax+68Dh], cl                                                 ; +0x66, 0x100286d36\ninc     r14d                                                           ; +0x6c, 0x100286d3c\nmov     rdi, [rbx+288h]                                                ; +0x6f, 0x100286d3f\ncall    sub_100720070                                                  ; +0x76, 0x100286d46\ncmp     r14d, eax                                                      ; +0x7b, 0x100286d4b\njb      short loc_100286D20                                            ; +0x7e, 0x100286d4e\ncmp     qword ptr [rbx+280h], 0                                        ; +0x80, 0x100286d50\njz      short loc_100286DB5                                            ; +0x88, 0x100286d58\ncall    sub_10071F9E0                                                  ; +0x8a, 0x100286d5a\nmov     r14, rax                                                       ; +0x8f, 0x100286d5f\nmov     rsi, [rbx+280h]                                                ; +0x92, 0x100286d62\nmov     rdi, rax                                                       ; +0x99, 0x100286d69\ncall    sub_10071FCD0                                                  ; +0x9c, 0x100286d6c\ntest    r14, r14                                                       ; +0xa1, 0x100286d71\njz      short loc_100286DB0                                            ; +0xa4, 0x100286d74\nmov     rdi, r14                                                       ; +0xa6, 0x100286d76\ncall    sub_100720070                                                  ; +0xa9, 0x100286d79\ntest    eax, eax                                                       ; +0xae, 0x100286d7e\njz      short loc_100286DB0                                            ; +0xb0, 0x100286d80\nxor     ebx, ebx                                                       ; +0xb2, 0x100286d82\nnop     word ptr [rax+rax+00000000h]                                   ; +0xb4, 0x100286d84\nmov     rdi, r14                                                       ; +0xc0, 0x100286d90\nmov     esi, ebx                                                       ; +0xc3, 0x100286d93\ncall    sub_1007200C0                                                  ; +0xc5, 0x100286d95\nmov     rdi, rax                                                       ; +0xca, 0x100286d9a\ncall    LevelEditorLayer__updateObjectLabel                            ; +0xcd, 0x100286d9d\ninc     ebx                                                            ; +0xd2, 0x100286da2\nmov     rdi, r14                                                       ; +0xd4, 0x100286da4\ncall    sub_100720070                                                  ; +0xd7, 0x100286da7\ncmp     ebx, eax                                                       ; +0xdc, 0x100286dac\njb      short loc_100286D90                                            ; +0xde, 0x100286dae\npop     rbx                                                            ; +0xe0, 0x100286db0\npop     r14                                                            ; +0xe1, 0x100286db1\npop     rbp                                                            ; +0xe3, 0x100286db3\nretn                                                                   ; +0xe4, 0x100286db4\nmov     r14, [rbx+288h]                                                ; +0xe5, 0x100286db5\ntest    r14, r14                                                       ; +0xec, 0x100286dbc\njnz     short loc_100286D76                                            ; +0xef, 0x100286dbf\njmp     short loc_100286DB0                                            ; +0xf1, 0x100286dc1", "xrefs": ["CollisionBlockPopup::init @ 0x100286682"], "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"}