{"type": "func", "start": 5372564672, "end": 5372564920, "name": "GJRobotSprite::setOpacity", "pseudocode": "// \n// GJRobotSprite::setOpacity from 0x1403ad4c0 to 0x1403ad5b8 (248 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14077f6a0\n// > <???> @ 0x14077f740\n// > <???> @ 0x140923af8\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:21 +0000\n// \n\n__int64 __fastcall GJRobotSprite::setOpacity(__int64 a1, unsigned __int8 a2)\n{\n  unsigned int v3; // ebx\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n  cocos2d::CCArray *v7; // rdi\n  struct cocos2d::CCObject *v8; // rax\n\n  v3 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 440)); ++i )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 440), i);\n    (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v6 + 40) + 40LL))((__int64)v6 + 320, a2);\n  }\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 368) + 320LL) + 40LL))(\n    *(_QWORD *)(a1 + 368) + 320LL,\n    a2);\n  v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 480LL))(*(_QWORD *)(a1 + 448));\n  if ( cocos2d::CCArray::count(v7) )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v3);\n      (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v8 + 40) + 40LL))((__int64)v8 + 320, a2);\n      ++v3;\n    }\n    while ( v3 < cocos2d::CCArray::count(v7) );\n  }\n  return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 456) + 320LL) + 40LL))(\n           *(_QWORD *)(a1 + 456) + 320LL,\n           a2);\n}", "assembly": "; \n; GJRobotSprite::setOpacity from 0x1403ad4c0 to 0x1403ad5b8 (248 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14077f6a0\n; > <???> @ 0x14077f740\n; > <???> @ 0x140923af8\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:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403ad4c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403ad4c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1403ad4ca\npush    rdi                                                            ; +0xf, 0x1403ad4cf\nsub     rsp, 20h                                                       ; +0x10, 0x1403ad4d0\nmov     rsi, rcx                                                       ; +0x14, 0x1403ad4d4\nxor     ebx, ebx                                                       ; +0x17, 0x1403ad4d7\nmov     rcx, [rcx+1B8h]                                                ; +0x19, 0x1403ad4d9\nmov     edi, ebx                                                       ; +0x20, 0x1403ad4e0\nmovzx   ebp, dl                                                        ; +0x22, 0x1403ad4e2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x1403ad4e5\ntest    eax, eax                                                       ; +0x2b, 0x1403ad4eb\njz      short loc_1403AD523                                            ; +0x2d, 0x1403ad4ed\nnop                                                                    ; +0x2f, 0x1403ad4ef\nmov     rcx, [rsi+1B8h]                                                ; +0x30, 0x1403ad4f0\nmov     edx, edi                                                       ; +0x37, 0x1403ad4f7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1403ad4f9\nmovzx   edx, bpl                                                       ; +0x3f, 0x1403ad4ff\nlea     rcx, [rax+140h]                                                ; +0x43, 0x1403ad503\nmov     rax, [rcx]                                                     ; +0x4a, 0x1403ad50a\ncall    qword ptr [rax+28h]                                            ; +0x4d, 0x1403ad50d\nmov     rcx, [rsi+1B8h]                                                ; +0x50, 0x1403ad510\ninc     edi                                                            ; +0x57, 0x1403ad517\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x1403ad519\ncmp     edi, eax                                                       ; +0x5f, 0x1403ad51f\njb      short loc_1403AD4F0                                            ; +0x61, 0x1403ad521\nmov     rcx, [rsi+170h]                                                ; +0x63, 0x1403ad523\nmovzx   edx, bpl                                                       ; +0x6a, 0x1403ad52a\nadd     rcx, 140h                                                      ; +0x6e, 0x1403ad52e\nmov     rax, [rcx]                                                     ; +0x75, 0x1403ad535\ncall    qword ptr [rax+28h]                                            ; +0x78, 0x1403ad538\nmov     rcx, [rsi+1C0h]                                                ; +0x7b, 0x1403ad53b\nmov     rax, [rcx]                                                     ; +0x82, 0x1403ad542\ncall    qword ptr [rax+1E0h]                                           ; +0x85, 0x1403ad545\nmov     rcx, rax                                                       ; +0x8b, 0x1403ad54b\nmov     rdi, rax                                                       ; +0x8e, 0x1403ad54e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x91, 0x1403ad551\ntest    eax, eax                                                       ; +0x97, 0x1403ad557\njz      short loc_1403AD58B                                            ; +0x99, 0x1403ad559\nnop     dword ptr [rax+rax+00h]                                        ; +0x9b, 0x1403ad55b\nmov     edx, ebx                                                       ; +0xa0, 0x1403ad560\nmov     rcx, rdi                                                       ; +0xa2, 0x1403ad562\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x1403ad565\nmovzx   edx, bpl                                                       ; +0xab, 0x1403ad56b\nlea     rcx, [rax+140h]                                                ; +0xaf, 0x1403ad56f\nmov     rax, [rcx]                                                     ; +0xb6, 0x1403ad576\ncall    qword ptr [rax+28h]                                            ; +0xb9, 0x1403ad579\nmov     rcx, rdi                                                       ; +0xbc, 0x1403ad57c\ninc     ebx                                                            ; +0xbf, 0x1403ad57f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc1, 0x1403ad581\ncmp     ebx, eax                                                       ; +0xc7, 0x1403ad587\njb      short loc_1403AD560                                            ; +0xc9, 0x1403ad589\nmov     rcx, [rsi+1C8h]                                                ; +0xcb, 0x1403ad58b\nmovzx   edx, bpl                                                       ; +0xd2, 0x1403ad592\nadd     rcx, 140h                                                      ; +0xd6, 0x1403ad596\nmov     rax, [rcx]                                                     ; +0xdd, 0x1403ad59d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe0, 0x1403ad5a0\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xe5, 0x1403ad5a5\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xea, 0x1403ad5aa\nadd     rsp, 20h                                                       ; +0xef, 0x1403ad5af\npop     rdi                                                            ; +0xf3, 0x1403ad5b3\njmp     qword ptr [rax+28h]                                            ; +0xf4, 0x1403ad5b4", "xrefs": ["<???> @ 0x14077f6a0", "<???> @ 0x14077f740", "<???> @ 0x140923af8"], "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"}