{"type": "func", "start": 4301177744, "end": 4301177877, "name": "GJMGLayer::updateGroundColor", "pseudocode": "// \n// GJMGLayer::updateGroundColor from 0x1005ec390 to 0x1005ec415 (133 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000de9fb\n// > LevelEditorLayer::updateEditorMode @ 0x1000dea0e\n// > GJBaseGameLayer::updateLevelColors @ 0x1001147cf\n// > GJBaseGameLayer::updateLevelColors @ 0x1001147f3\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 GJMGLayer::updateGroundColor(GJMGLayer *a1, cocos2d::ccColor3B a2, bool a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  unsigned int v6; // r14d\n  __int64 v7; // rax\n  cocos2d::ccColor3B v8; // [rsp+0h] [rbp-1Ch] BYREF\n  char v9; // [rsp+3h] [rbp-19h]\n\n  v9 = HIBYTE(v3);\n  v8 = a2;\n  v4 = *((_QWORD *)&a1->m_ground1Sprite + !a3);\n  if ( v4 )\n  {\n    v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 472LL))(v4);\n    if ( (unsigned int)sub_100720070(v5) )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_1007200C0(v5, v6);\n        (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v7 + 944LL))(v7, &v8);\n        ++v6;\n      }\n      while ( v6 < (unsigned int)sub_100720070(v5) );\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundColor from 0x1005ec390 to 0x1005ec415 (133 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000de9fb\n; > LevelEditorLayer::updateEditorMode @ 0x1000dea0e\n; > GJBaseGameLayer::updateLevelColors @ 0x1001147cf\n; > GJBaseGameLayer::updateLevelColors @ 0x1001147f3\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, 0x1005ec390\nmov     rbp, rsp                                                       ; +0x1, 0x1005ec391\npush    r15                                                            ; +0x4, 0x1005ec394\npush    r14                                                            ; +0x6, 0x1005ec396\npush    rbx                                                            ; +0x8, 0x1005ec398\npush    rax                                                            ; +0x9, 0x1005ec399\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1005ec39a\nshr     esi, 10h                                                       ; +0xe, 0x1005ec39e\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1005ec3a1\nxor     dl, 1                                                          ; +0x15, 0x1005ec3a5\nmovzx   eax, dl                                                        ; +0x18, 0x1005ec3a8\nmov     rdi, [rdi+rax*8+198h]                                          ; +0x1b, 0x1005ec3ab\ntest    rdi, rdi                                                       ; +0x23, 0x1005ec3b3\njz      short loc_1005EC40A                                            ; +0x26, 0x1005ec3b6\nmov     rax, [rdi]                                                     ; +0x28, 0x1005ec3b8\ncall    qword ptr [rax+1D8h]                                           ; +0x2b, 0x1005ec3bb\nmov     rbx, rax                                                       ; +0x31, 0x1005ec3c1\nmov     rdi, rax                                                       ; +0x34, 0x1005ec3c4\ncall    sub_100720070                                                  ; +0x37, 0x1005ec3c7\ntest    eax, eax                                                       ; +0x3c, 0x1005ec3cc\njz      short loc_1005EC40A                                            ; +0x3e, 0x1005ec3ce\nxor     r14d, r14d                                                     ; +0x40, 0x1005ec3d0\nlea     r15, [rbp+var_1C]                                              ; +0x43, 0x1005ec3d3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x1005ec3d7\nmov     rdi, rbx                                                       ; +0x50, 0x1005ec3e0\nmov     esi, r14d                                                      ; +0x53, 0x1005ec3e3\ncall    sub_1007200C0                                                  ; +0x56, 0x1005ec3e6\nmov     rcx, [rax]                                                     ; +0x5b, 0x1005ec3eb\nmov     rdi, rax                                                       ; +0x5e, 0x1005ec3ee\nmov     rsi, r15                                                       ; +0x61, 0x1005ec3f1\ncall    qword ptr [rcx+3B0h]                                           ; +0x64, 0x1005ec3f4\ninc     r14d                                                           ; +0x6a, 0x1005ec3fa\nmov     rdi, rbx                                                       ; +0x6d, 0x1005ec3fd\ncall    sub_100720070                                                  ; +0x70, 0x1005ec400\ncmp     r14d, eax                                                      ; +0x75, 0x1005ec405\njb      short loc_1005EC3E0                                            ; +0x78, 0x1005ec408\nadd     rsp, 8                                                         ; +0x7a, 0x1005ec40a\npop     rbx                                                            ; +0x7e, 0x1005ec40e\npop     r14                                                            ; +0x7f, 0x1005ec40f\npop     r15                                                            ; +0x81, 0x1005ec411\npop     rbp                                                            ; +0x83, 0x1005ec413\nretn                                                                   ; +0x84, 0x1005ec414", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000de9fb", "LevelEditorLayer::updateEditorMode @ 0x1000dea0e", "GJBaseGameLayer::updateLevelColors @ 0x1001147cf", "GJBaseGameLayer::updateLevelColors @ 0x1001147f3"], "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"}