{"type": "func", "start": 6442837136, "end": 6442837358, "name": "sub_18005E490", "pseudocode": "// \n// sub_18005E490 from 0x18005e490 to 0x18005e56e (222 bytes)\n// \n// 5 xrefs:\n// > sub_18005E490 @ 0x18005e54b\n// > cocos2d::CCClippingNode::visit @ 0x18005e85e\n// > <???> @ 0x180142404\n// > <???> @ 0x180142414\n// > <???> @ 0x1801bd318\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:21:50 +0000\n// \n\n__int64 __fastcall sub_18005E490(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  _QWORD *v5; // rbx\n  __int64 v6; // rdi\n  unsigned __int64 i; // rdi\n\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n    if ( result )\n    {\n      result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n      if ( **(_DWORD **)(result + 56) )\n      {\n        v5 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL);\n        v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL);\n        result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56);\n        for ( i = v6 + 8 * result - 8; (unsigned __int64)v5 <= i; ++v5 )\n        {\n          if ( !*v5 )\n            break;\n          result = sub_18005E490(*v5, a2);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18005E490 from 0x18005e490 to 0x18005e56e (222 bytes)\n; \n; 5 xrefs:\n; > sub_18005E490 @ 0x18005e54b\n; > cocos2d::CCClippingNode::visit @ 0x18005e85e\n; > <???> @ 0x180142404\n; > <???> @ 0x180142414\n; > <???> @ 0x1801bd318\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:21:50 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x18005e490\npush    rsi                                                            ; +0x5, 0x18005e495\nsub     rsp, 20h                                                       ; +0x6, 0x18005e496\nmov     rax, [rcx]                                                     ; +0xa, 0x18005e49a\nmov     rbp, rdx                                                       ; +0xd, 0x18005e49d\nmov     rsi, rcx                                                       ; +0x10, 0x18005e4a0\ncall    qword ptr [rax+290h]                                           ; +0x13, 0x18005e4a3\nmov     rax, [rsi]                                                     ; +0x19, 0x18005e4a9\nmov     rcx, rsi                                                       ; +0x1c, 0x18005e4ac\ncall    qword ptr [rax+1E0h]                                           ; +0x1f, 0x18005e4af\ntest    rax, rax                                                       ; +0x25, 0x18005e4b5\njz      loc_18005E563                                                  ; +0x28, 0x18005e4b8\nmov     rax, [rsi]                                                     ; +0x2e, 0x18005e4be\nmov     rcx, rsi                                                       ; +0x31, 0x18005e4c1\ncall    qword ptr [rax+1E0h]                                           ; +0x34, 0x18005e4c4\ntest    rax, rax                                                       ; +0x3a, 0x18005e4ca\njz      loc_18005E563                                                  ; +0x3d, 0x18005e4cd\nmov     rax, [rsi]                                                     ; +0x43, 0x18005e4d3\nmov     rcx, rsi                                                       ; +0x46, 0x18005e4d6\ncall    qword ptr [rax+1E0h]                                           ; +0x49, 0x18005e4d9\nmov     rcx, [rax+38h]                                                 ; +0x4f, 0x18005e4df\ncmp     dword ptr [rcx], 0                                             ; +0x53, 0x18005e4e3\njbe     short loc_18005E563                                            ; +0x56, 0x18005e4e6\nmov     rax, [rsi]                                                     ; +0x58, 0x18005e4e8\nmov     rcx, rsi                                                       ; +0x5b, 0x18005e4eb\nmov     [rsp+28h+arg_0], rbx                                           ; +0x5e, 0x18005e4ee\nmov     [rsp+28h+arg_8], rdi                                           ; +0x63, 0x18005e4f3\ncall    qword ptr [rax+1E0h]                                           ; +0x68, 0x18005e4f8\nmov     rcx, rsi                                                       ; +0x6e, 0x18005e4fe\nmov     rbx, [rax+38h]                                                 ; +0x71, 0x18005e501\nmov     rax, [rsi]                                                     ; +0x75, 0x18005e505\nmov     rbx, [rbx+10h]                                                 ; +0x78, 0x18005e508\ncall    qword ptr [rax+1E0h]                                           ; +0x7c, 0x18005e50c\nmov     rcx, [rax+38h]                                                 ; +0x82, 0x18005e512\nmov     rax, [rsi]                                                     ; +0x86, 0x18005e516\nmov     rdi, [rcx+10h]                                                 ; +0x89, 0x18005e519\nmov     rcx, rsi                                                       ; +0x8d, 0x18005e51d\ncall    qword ptr [rax+1E0h]                                           ; +0x90, 0x18005e520\nmov     rcx, [rax+38h]                                                 ; +0x96, 0x18005e526\nmov     eax, [rcx]                                                     ; +0x9a, 0x18005e52a\nlea     rdi, [rdi+rax*8]                                               ; +0x9c, 0x18005e52c\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0xa0, 0x18005e530\ncmp     rbx, rdi                                                       ; +0xa4, 0x18005e534\nja      short loc_18005E559                                            ; +0xa7, 0x18005e537\nnop     dword ptr [rax+00000000h]                                      ; +0xa9, 0x18005e539\nmov     rcx, [rbx]                                                     ; +0xb0, 0x18005e540\ntest    rcx, rcx                                                       ; +0xb3, 0x18005e543\njz      short loc_18005E559                                            ; +0xb6, 0x18005e546\nmov     rdx, rbp                                                       ; +0xb8, 0x18005e548\ncall    sub_18005E490                                                  ; +0xbb, 0x18005e54b\nadd     rbx, 8                                                         ; +0xc0, 0x18005e550\ncmp     rbx, rdi                                                       ; +0xc4, 0x18005e554\njbe     short loc_18005E540                                            ; +0xc7, 0x18005e557\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x18005e559\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xce, 0x18005e55e\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xd3, 0x18005e563\nadd     rsp, 20h                                                       ; +0xd8, 0x18005e568\npop     rsi                                                            ; +0xdc, 0x18005e56c\nretn                                                                   ; +0xdd, 0x18005e56d", "xrefs": ["sub_18005E490 @ 0x18005e54b", "cocos2d::CCClippingNode::visit @ 0x18005e85e", "<???> @ 0x180142404", "<???> @ 0x180142414", "<???> @ 0x1801bd318"], "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"}