{"type": "func", "start": 5371491200, "end": 5371491448, "name": "GJRobotSprite::setOpacity", "pseudocode": "// \n// GJRobotSprite::setOpacity from 0x1402a7380 to 0x1402a7478 (248 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14057c4e8\n// > <???> @ 0x14057c588\n// > <???> @ 0x1406d2138\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 GJRobotSprite::setOpacity(GJRobotSprite *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->m_bRectRotated); ++i )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_bRectRotated, i);\n    (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v6[5].m_unknown2 + 40LL))(&v6[5].m_unknown2, a2);\n  }\n  ((void (__fastcall *)(cocos2d::CCTextureProtocol *, _QWORD))a1->m_pobBatchNode->CCAnimatedSprite::__vftable[1].getBlendFunc)(\n    &a1->m_pobBatchNode->cocos2d::CCTextureProtocol,\n    a2);\n  v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_obOffsetPosition.y + 464LL))(*(_QWORD *)&a1->m_obOffsetPosition.y);\n  if ( cocos2d::CCArray::count(v7) )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v3);\n      (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v8[5].m_unknown2 + 40LL))(&v8[5].m_unknown2, a2);\n      ++v3;\n    }\n    while ( v3 < cocos2d::CCArray::count(v7) );\n  }\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_obUnflippedOffsetPositionFromCenter.y + 320LL)\n                                          + 40LL))(\n    *(_QWORD *)&a1->m_obUnflippedOffsetPositionFromCenter.y + 320LL,\n    a2);\n}", "assembly": "; \n; GJRobotSprite::setOpacity from 0x1402a7380 to 0x1402a7478 (248 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14057c4e8\n; > <???> @ 0x14057c588\n; > <???> @ 0x1406d2138\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402a7380\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1402a7385\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1402a738a\npush    rdi                                                            ; +0xf, 0x1402a738f\nsub     rsp, 20h                                                       ; +0x10, 0x1402a7390\nmov     rsi, rcx                                                       ; +0x14, 0x1402a7394\nxor     ebx, ebx                                                       ; +0x17, 0x1402a7397\nmov     rcx, [rcx+1B8h]                                                ; +0x19, 0x1402a7399\nmov     edi, ebx                                                       ; +0x20, 0x1402a73a0\nmovzx   ebp, dl                                                        ; +0x22, 0x1402a73a2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x1402a73a5\ntest    eax, eax                                                       ; +0x2b, 0x1402a73ab\njz      short loc_1402A73E3                                            ; +0x2d, 0x1402a73ad\nnop                                                                    ; +0x2f, 0x1402a73af\nmov     rcx, [rsi+1B8h]                                                ; +0x30, 0x1402a73b0\nmov     edx, edi                                                       ; +0x37, 0x1402a73b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1402a73b9\nmovzx   edx, bpl                                                       ; +0x3f, 0x1402a73bf\nlea     rcx, [rax+140h]                                                ; +0x43, 0x1402a73c3\nmov     rax, [rcx]                                                     ; +0x4a, 0x1402a73ca\ncall    qword ptr [rax+28h]                                            ; +0x4d, 0x1402a73cd\nmov     rcx, [rsi+1B8h]                                                ; +0x50, 0x1402a73d0\ninc     edi                                                            ; +0x57, 0x1402a73d7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x1402a73d9\ncmp     edi, eax                                                       ; +0x5f, 0x1402a73df\njb      short loc_1402A73B0                                            ; +0x61, 0x1402a73e1\nmov     rcx, [rsi+170h]                                                ; +0x63, 0x1402a73e3\nmovzx   edx, bpl                                                       ; +0x6a, 0x1402a73ea\nadd     rcx, 140h                                                      ; +0x6e, 0x1402a73ee\nmov     rax, [rcx]                                                     ; +0x75, 0x1402a73f5\ncall    qword ptr [rax+28h]                                            ; +0x78, 0x1402a73f8\nmov     rcx, [rsi+1C0h]                                                ; +0x7b, 0x1402a73fb\nmov     rax, [rcx]                                                     ; +0x82, 0x1402a7402\ncall    qword ptr [rax+1D0h]                                           ; +0x85, 0x1402a7405\nmov     rcx, rax                                                       ; +0x8b, 0x1402a740b\nmov     rdi, rax                                                       ; +0x8e, 0x1402a740e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x91, 0x1402a7411\ntest    eax, eax                                                       ; +0x97, 0x1402a7417\njz      short loc_1402A744B                                            ; +0x99, 0x1402a7419\nnop     dword ptr [rax+rax+00h]                                        ; +0x9b, 0x1402a741b\nmov     edx, ebx                                                       ; +0xa0, 0x1402a7420\nmov     rcx, rdi                                                       ; +0xa2, 0x1402a7422\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x1402a7425\nmovzx   edx, bpl                                                       ; +0xab, 0x1402a742b\nlea     rcx, [rax+140h]                                                ; +0xaf, 0x1402a742f\nmov     rax, [rcx]                                                     ; +0xb6, 0x1402a7436\ncall    qword ptr [rax+28h]                                            ; +0xb9, 0x1402a7439\nmov     rcx, rdi                                                       ; +0xbc, 0x1402a743c\ninc     ebx                                                            ; +0xbf, 0x1402a743f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc1, 0x1402a7441\ncmp     ebx, eax                                                       ; +0xc7, 0x1402a7447\njb      short loc_1402A7420                                            ; +0xc9, 0x1402a7449\nmov     rcx, [rsi+1C8h]                                                ; +0xcb, 0x1402a744b\nmovzx   edx, bpl                                                       ; +0xd2, 0x1402a7452\nadd     rcx, 140h                                                      ; +0xd6, 0x1402a7456\nmov     rax, [rcx]                                                     ; +0xdd, 0x1402a745d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe0, 0x1402a7460\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xe5, 0x1402a7465\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xea, 0x1402a746a\nadd     rsp, 20h                                                       ; +0xef, 0x1402a746f\npop     rdi                                                            ; +0xf3, 0x1402a7473\njmp     qword ptr [rax+28h]                                            ; +0xf4, 0x1402a7474", "xrefs": ["<???> @ 0x14057c4e8", "<???> @ 0x14057c588", "<???> @ 0x1406d2138"], "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"}