{"type": "func", "start": 5371984688, "end": 5371985222, "name": "GJBaseGameLayer::createPlayerCollisionBlock", "pseudocode": "// \n// GJBaseGameLayer::createPlayerCollisionBlock from 0x14031fb30 to 0x14031fd46 (534 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::init @ 0x1403ee806\n// > PlayLayer::setupHasCompleted @ 0x1405059e3\n// > <???> @ 0x1408b55b0\n// > <???> @ 0x1408b55c0\n// > <???> @ 0x14091ed94\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:22 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::createPlayerCollisionBlock(__int64 a1)\n{\n  int i; // ebp\n  char *v3; // r14\n  __int64 *v4; // rsi\n  __int64 v5; // rdi\n  const struct cocos2d::CCPoint *v6; // rax\n  cocos2d::CCPoint *v7; // rcx\n  __int64 v8; // rax\n  __int128 v9; // [rsp+20h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-38h]\n  __int64 v11; // [rsp+38h] [rbp-30h]\n  char v12; // [rsp+78h] [rbp+10h] BYREF\n  char v13; // [rsp+80h] [rbp+18h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 12672) )\n  {\n    for ( i = 0; i < 2; ++i )\n    {\n      v3 = GameObject::createWithKey(1816);\n      cocos2d::CCObject::retain((cocos2d::CCObject *)v3);\n      (*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 1112LL))(v3);\n      v10 = 0;\n      v11 = 0;\n      v9 = 0;\n      *(_QWORD *)&v9 = sub_14003D460(0x20u);\n      v10 = 30;\n      v11 = 31;\n      strcpy((char *)v9, \"edit_eCollisionBlock01_001.png\");\n      GameObject::addColorSprite((__int64)v3, (__int64)&v9);\n      v10 = 0;\n      v11 = 0;\n      v9 = 0;\n      *(_QWORD *)&v9 = sub_14003D460(0x20u);\n      v10 = 30;\n      v11 = 31;\n      strcpy((char *)v9, \"edit_eCollisionBlock01_001.png\");\n      (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v3 + 1120LL))(v3, &v9);\n      if ( i )\n      {\n        *(_QWORD *)(a1 + 12680) = v3;\n        *((_DWORD *)v3 + 424) = 10001;\n        v4 = *(__int64 **)(a1 + 12680);\n        v5 = *v4;\n        v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3520) + 200LL))(*(_QWORD *)(a1 + 3520));\n        v7 = (cocos2d::CCPoint *)&v13;\n      }\n      else\n      {\n        *(_QWORD *)(a1 + 12672) = v3;\n        *((_DWORD *)v3 + 424) = 10000;\n        v4 = *(__int64 **)(a1 + 12672);\n        v5 = *v4;\n        v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512));\n        v7 = (cocos2d::CCPoint *)&v12;\n      }\n      cocos2d::CCPoint::CCPoint(v7, v6);\n      (*(void (__fastcall **)(__int64 *, __int64))(v5 + 1216))(v4, v8);\n      v3[559] = 1;\n      v3[1311] = 1;\n      (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1192LL))(a1, v3);\n      cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3544), (struct cocos2d::CCObject *)v3);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::createPlayerCollisionBlock from 0x14031fb30 to 0x14031fd46 (534 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::init @ 0x1403ee806\n; > PlayLayer::setupHasCompleted @ 0x1405059e3\n; > <???> @ 0x1408b55b0\n; > <???> @ 0x1408b55c0\n; > <???> @ 0x14091ed94\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:22 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14031fb30\npush    rbx                                                            ; +0x3, 0x14031fb33\nsub     rsp, 60h                                                       ; +0x4, 0x14031fb34\ncmp     qword ptr [rcx+3180h], 0                                       ; +0x8, 0x14031fb38\nmov     rbx, rcx                                                       ; +0x10, 0x14031fb40\njnz     loc_14031FD40                                                  ; +0x13, 0x14031fb43\nmov     [rax+20h], rbp                                                 ; +0x19, 0x14031fb49\nmov     [rax-20h], r14                                                 ; +0x1d, 0x14031fb4d\nmov     [rax-28h], r15                                                 ; +0x21, 0x14031fb51\nxor     r15d, r15d                                                     ; +0x25, 0x14031fb55\nmov     [rax-10h], rsi                                                 ; +0x28, 0x14031fb58\nmov     ebp, r15d                                                      ; +0x2c, 0x14031fb5c\nmov     [rax-18h], rdi                                                 ; +0x2f, 0x14031fb5f\nmov     ecx, 718h                                                      ; +0x33, 0x14031fb63\ncall    GameObject__createWithKey                                      ; +0x38, 0x14031fb68\nmov     rcx, rax                                                       ; +0x3d, 0x14031fb6d\nmov     r14, rax                                                       ; +0x40, 0x14031fb70\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x43, 0x14031fb73\nmov     rcx, [r14]                                                     ; +0x49, 0x14031fb79\nmov     rdx, [rcx+458h]                                                ; +0x4c, 0x14031fb7c\nmov     rcx, r14                                                       ; +0x53, 0x14031fb83\ncall    rdx                                                            ; +0x56, 0x14031fb86\nxorps   xmm0, xmm0                                                     ; +0x58, 0x14031fb88\nmov     [rsp+68h+var_38], r15                                          ; +0x5b, 0x14031fb8b\nmov     ecx, 20h ; ' '                                                 ; +0x60, 0x14031fb90\nmov     [rsp+68h+var_30], r15                                          ; +0x65, 0x14031fb95\nmovups  [rsp+68h+var_48], xmm0                                         ; +0x6a, 0x14031fb9a\ncall    sub_14003D460                                                  ; +0x6f, 0x14031fb9f\nmovups  xmm0, cs:xmmword_14076C098                                     ; +0x74, 0x14031fba4\nmov     qword ptr [rsp+68h+var_48], rax                                ; +0x7b, 0x14031fbab\nlea     rdx, [rsp+68h+var_48]                                          ; +0x80, 0x14031fbb0\nmov     [rsp+68h+var_38], 1Eh                                          ; +0x85, 0x14031fbb5\nmov     [rsp+68h+var_30], 1Fh                                          ; +0x8e, 0x14031fbbe\nmovups  xmmword ptr [rax], xmm0                                        ; +0x97, 0x14031fbc7\nmovsd   xmm0, cs:qword_14076C0A8                                       ; +0x9a, 0x14031fbca\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0xa2, 0x14031fbd2\nmov     ecx, cs:dword_14076C0B0                                        ; +0xa7, 0x14031fbd7\nmov     [rax+18h], ecx                                                 ; +0xad, 0x14031fbdd\nmovzx   ecx, cs:word_14076C0B4                                         ; +0xb0, 0x14031fbe0\nmov     [rax+1Ch], cx                                                  ; +0xb7, 0x14031fbe7\nmov     rcx, r14                                                       ; +0xbb, 0x14031fbeb\nmov     [rax+1Eh], r15b                                                ; +0xbe, 0x14031fbee\ncall    GameObject__addColorSprite                                     ; +0xc2, 0x14031fbf2\nxorps   xmm0, xmm0                                                     ; +0xc7, 0x14031fbf7\nmov     [rsp+68h+var_38], r15                                          ; +0xca, 0x14031fbfa\nmov     ecx, 20h ; ' '                                                 ; +0xcf, 0x14031fbff\nmov     [rsp+68h+var_30], r15                                          ; +0xd4, 0x14031fc04\nmovups  [rsp+68h+var_48], xmm0                                         ; +0xd9, 0x14031fc09\ncall    sub_14003D460                                                  ; +0xde, 0x14031fc0e\nmovups  xmm0, cs:xmmword_14076C098                                     ; +0xe3, 0x14031fc13\nmov     qword ptr [rsp+68h+var_48], rax                                ; +0xea, 0x14031fc1a\nlea     rdx, [rsp+68h+var_48]                                          ; +0xef, 0x14031fc1f\nmov     [rsp+68h+var_38], 1Eh                                          ; +0xf4, 0x14031fc24\nmov     [rsp+68h+var_30], 1Fh                                          ; +0xfd, 0x14031fc2d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x106, 0x14031fc36\nmovsd   xmm0, cs:qword_14076C0A8                                       ; +0x109, 0x14031fc39\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0x111, 0x14031fc41\nmov     ecx, cs:dword_14076C0B0                                        ; +0x116, 0x14031fc46\nmov     [rax+18h], ecx                                                 ; +0x11c, 0x14031fc4c\nmovzx   ecx, cs:word_14076C0B4                                         ; +0x11f, 0x14031fc4f\nmov     [rax+1Ch], cx                                                  ; +0x126, 0x14031fc56\nmov     rcx, r14                                                       ; +0x12a, 0x14031fc5a\nmov     [rax+1Eh], r15b                                                ; +0x12d, 0x14031fc5d\nmov     rax, [r14]                                                     ; +0x131, 0x14031fc61\ncall    qword ptr [rax+460h]                                           ; +0x134, 0x14031fc64\ntest    ebp, ebp                                                       ; +0x13a, 0x14031fc6a\njnz     short loc_14031FCA1                                            ; +0x13c, 0x14031fc6c\nmov     [rbx+3180h], r14                                               ; +0x13e, 0x14031fc6e\nmov     dword ptr [r14+6A0h], 2710h                                    ; +0x145, 0x14031fc75\nmov     rcx, [rbx+0DB8h]                                               ; +0x150, 0x14031fc80\nmov     rsi, [rbx+3180h]                                               ; +0x157, 0x14031fc87\nmov     rax, [rcx]                                                     ; +0x15e, 0x14031fc8e\nmov     rdi, [rsi]                                                     ; +0x161, 0x14031fc91\ncall    qword ptr [rax+0C8h]                                           ; +0x164, 0x14031fc94\nlea     rcx, [rsp+68h+arg_8]                                           ; +0x16a, 0x14031fc9a\njmp     short loc_14031FCD5                                            ; +0x16f, 0x14031fc9f\nmov     [rbx+3188h], r14                                               ; +0x171, 0x14031fca1\nmov     dword ptr [r14+6A0h], 2711h                                    ; +0x178, 0x14031fca8\nmov     rcx, [rbx+0DC0h]                                               ; +0x183, 0x14031fcb3\nmov     rsi, [rbx+3188h]                                               ; +0x18a, 0x14031fcba\nmov     rax, [rcx]                                                     ; +0x191, 0x14031fcc1\nmov     rdi, [rsi]                                                     ; +0x194, 0x14031fcc4\ncall    qword ptr [rax+0C8h]                                           ; +0x197, 0x14031fcc7\nlea     rcx, [rsp+68h+arg_10]                                          ; +0x19d, 0x14031fccd\nmov     rdx, rax                                                       ; +0x1a5, 0x14031fcd5\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1a8, 0x14031fcd8\nmov     rdx, rax                                                       ; +0x1ae, 0x14031fcde\nmov     rcx, rsi                                                       ; +0x1b1, 0x14031fce1\ncall    qword ptr [rdi+4C0h]                                           ; +0x1b4, 0x14031fce4\nmov     byte ptr [r14+22Fh], 1                                         ; +0x1ba, 0x14031fcea\nmov     rdx, r14                                                       ; +0x1c2, 0x14031fcf2\nmov     byte ptr [r14+51Fh], 1                                         ; +0x1c5, 0x14031fcf5\nmov     rcx, rbx                                                       ; +0x1cd, 0x14031fcfd\nmov     rax, [rbx]                                                     ; +0x1d0, 0x14031fd00\ncall    qword ptr [rax+4A8h]                                           ; +0x1d3, 0x14031fd03\nmov     rcx, [rbx+0DD8h]                                               ; +0x1d9, 0x14031fd09\nmov     rdx, r14                                                       ; +0x1e0, 0x14031fd10\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1e3, 0x14031fd13\ninc     ebp                                                            ; +0x1e9, 0x14031fd19\ncmp     ebp, 2                                                         ; +0x1eb, 0x14031fd1b\njl      loc_14031FB63                                                  ; +0x1ee, 0x14031fd1e\nmov     r15, [rsp+68h+var_28]                                          ; +0x1f4, 0x14031fd24\nmov     r14, [rsp+68h+var_20]                                          ; +0x1f9, 0x14031fd29\nmov     rdi, [rsp+68h+var_18]                                          ; +0x1fe, 0x14031fd2e\nmov     rsi, [rsp+68h+var_10]                                          ; +0x203, 0x14031fd33\nmov     rbp, [rsp+68h+arg_18]                                          ; +0x208, 0x14031fd38\nadd     rsp, 60h                                                       ; +0x210, 0x14031fd40\npop     rbx                                                            ; +0x214, 0x14031fd44\nretn                                                                   ; +0x215, 0x14031fd45", "xrefs": ["LevelEditorLayer::init @ 0x1403ee806", "PlayLayer::setupHasCompleted @ 0x1405059e3", "<???> @ 0x1408b55b0", "<???> @ 0x1408b55c0", "<???> @ 0x14091ed94"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}