{"type": "func", "start": 5372412528, "end": 5372412654, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x140388270 to 0x1403882ee (126 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x140312bf7\n// > GJBaseGameLayer::updateLevelColors @ 0x140312c32\n// > <???> @ 0x1408bdac4\n// > <???> @ 0x1408bdad4\n// > <???> @ 0x140922c58\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:31:08 +0000\n// \n\nint __fastcall GJMGLayer::updateGroundOpacity(__int64 a1, unsigned __int8 a2, unsigned __int8 a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCArray *v6; // rdi\n  unsigned int v7; // ebx\n  struct cocos2d::CCObject *v8; // rax\n\n  v4 = a3 ^ 1LL;\n  v5 = *(_QWORD *)(a1 + 8 * v4 + 408);\n  if ( v5 )\n  {\n    v6 = (cocos2d::CCArray *)(*(__int64 (**)(void))(*(_QWORD *)v5 + 480LL))();\n    v7 = 0;\n    for ( LODWORD(v4) = cocos2d::CCArray::count(v6); v7 < (unsigned int)v4; LODWORD(v4) = cocos2d::CCArray::count(v6) )\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(v6, v7);\n      (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v8 + 40) + 40LL))((__int64)v8 + 320, a2);\n      ++v7;\n    }\n  }\n  return v4;\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x140388270 to 0x1403882ee (126 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x140312bf7\n; > GJBaseGameLayer::updateLevelColors @ 0x140312c32\n; > <???> @ 0x1408bdac4\n; > <???> @ 0x1408bdad4\n; > <???> @ 0x140922c58\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:31:08 +0000\n; \npush    rsi                                                            ; +0x0, 0x140388270\nsub     rsp, 20h                                                       ; +0x2, 0x140388272\nmovzx   eax, r8b                                                       ; +0x6, 0x140388276\nmovzx   esi, dl                                                        ; +0xa, 0x14038827a\nxor     rax, 1                                                         ; +0xd, 0x14038827d\nmov     rcx, [rcx+rax*8+198h]                                          ; +0x11, 0x140388281\ntest    rcx, rcx                                                       ; +0x19, 0x140388289\njz      short loc_1403882E8                                            ; +0x1c, 0x14038828c\nmov     rax, [rcx]                                                     ; +0x1e, 0x14038828e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x140388291\nmov     [rsp+28h+arg_8], rdi                                           ; +0x26, 0x140388296\ncall    qword ptr [rax+1E0h]                                           ; +0x2b, 0x14038829b\nmov     rcx, rax                                                       ; +0x31, 0x1403882a1\nmov     rdi, rax                                                       ; +0x34, 0x1403882a4\nxor     ebx, ebx                                                       ; +0x37, 0x1403882a7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x39, 0x1403882a9\ntest    eax, eax                                                       ; +0x3f, 0x1403882af\njz      short loc_1403882DE                                            ; +0x41, 0x1403882b1\nmov     edx, ebx                                                       ; +0x43, 0x1403882b3\nmov     rcx, rdi                                                       ; +0x45, 0x1403882b5\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x1403882b8\nmovzx   edx, sil                                                       ; +0x4e, 0x1403882be\nlea     rcx, [rax+140h]                                                ; +0x52, 0x1403882c2\nmov     rax, [rcx]                                                     ; +0x59, 0x1403882c9\ncall    qword ptr [rax+28h]                                            ; +0x5c, 0x1403882cc\nmov     rcx, rdi                                                       ; +0x5f, 0x1403882cf\ninc     ebx                                                            ; +0x62, 0x1403882d2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x64, 0x1403882d4\ncmp     ebx, eax                                                       ; +0x6a, 0x1403882da\njb      short loc_1403882B3                                            ; +0x6c, 0x1403882dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6e, 0x1403882de\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x73, 0x1403882e3\nadd     rsp, 20h                                                       ; +0x78, 0x1403882e8\npop     rsi                                                            ; +0x7c, 0x1403882ec\nretn                                                                   ; +0x7d, 0x1403882ed", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x140312bf7", "GJBaseGameLayer::updateLevelColors @ 0x140312c32", "<???> @ 0x1408bdac4", "<???> @ 0x1408bdad4", "<???> @ 0x140922c58"], "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"}