{"type": "func", "start": 6442828880, "end": 6442829102, "name": "sub_18005C450", "pseudocode": "// \n// sub_18005C450 from 0x18005c450 to 0x18005c52e (222 bytes)\n// \n// 5 xrefs:\n// > sub_18005C450 @ 0x18005c50b\n// > cocos2d::CCClippingNode::visit @ 0x18005c81a\n// > <???> @ 0x180139148\n// > <???> @ 0x180139158\n// > <???> @ 0x1801b3060\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\n__int64 __fastcall sub_18005C450(__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 + 640LL))(a1);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1);\n    if ( result )\n    {\n      result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1);\n      if ( **(_DWORD **)(result + 56) )\n      {\n        v5 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1) + 56) + 16LL);\n        v6 = 8LL * **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1) + 56);\n        result = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1) + 56) + 16LL)\n               - 8LL;\n        for ( i = result + v6; (unsigned __int64)v5 <= i; ++v5 )\n        {\n          if ( !*v5 )\n            break;\n          result = sub_18005C450(*v5, a2);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18005C450 from 0x18005c450 to 0x18005c52e (222 bytes)\n; \n; 5 xrefs:\n; > sub_18005C450 @ 0x18005c50b\n; > cocos2d::CCClippingNode::visit @ 0x18005c81a\n; > <???> @ 0x180139148\n; > <???> @ 0x180139158\n; > <???> @ 0x1801b3060\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_10], rbp                                              ; +0x0, 0x18005c450\npush    rsi                                                            ; +0x5, 0x18005c455\nsub     rsp, 20h                                                       ; +0x6, 0x18005c456\nmov     rax, [rcx]                                                     ; +0xa, 0x18005c45a\nmov     rbp, rdx                                                       ; +0xd, 0x18005c45d\nmov     rsi, rcx                                                       ; +0x10, 0x18005c460\ncall    qword ptr [rax+280h]                                           ; +0x13, 0x18005c463\nmov     rax, [rsi]                                                     ; +0x19, 0x18005c469\nmov     rcx, rsi                                                       ; +0x1c, 0x18005c46c\ncall    qword ptr [rax+1D0h]                                           ; +0x1f, 0x18005c46f\ntest    rax, rax                                                       ; +0x25, 0x18005c475\njz      loc_18005C523                                                  ; +0x28, 0x18005c478\nmov     rax, [rsi]                                                     ; +0x2e, 0x18005c47e\nmov     rcx, rsi                                                       ; +0x31, 0x18005c481\ncall    qword ptr [rax+1D0h]                                           ; +0x34, 0x18005c484\ntest    rax, rax                                                       ; +0x3a, 0x18005c48a\njz      loc_18005C523                                                  ; +0x3d, 0x18005c48d\nmov     rax, [rsi]                                                     ; +0x43, 0x18005c493\nmov     rcx, rsi                                                       ; +0x46, 0x18005c496\ncall    qword ptr [rax+1D0h]                                           ; +0x49, 0x18005c499\nmov     rcx, [rax+38h]                                                 ; +0x4f, 0x18005c49f\ncmp     dword ptr [rcx], 0                                             ; +0x53, 0x18005c4a3\njbe     short loc_18005C523                                            ; +0x56, 0x18005c4a6\nmov     rax, [rsi]                                                     ; +0x58, 0x18005c4a8\nmov     rcx, rsi                                                       ; +0x5b, 0x18005c4ab\nmov     [rsp+28h+arg_0], rbx                                           ; +0x5e, 0x18005c4ae\nmov     [rsp+28h+arg_8], rdi                                           ; +0x63, 0x18005c4b3\ncall    qword ptr [rax+1D0h]                                           ; +0x68, 0x18005c4b8\nmov     rcx, rsi                                                       ; +0x6e, 0x18005c4be\nmov     rbx, [rax+38h]                                                 ; +0x71, 0x18005c4c1\nmov     rax, [rsi]                                                     ; +0x75, 0x18005c4c5\nmov     rbx, [rbx+10h]                                                 ; +0x78, 0x18005c4c8\ncall    qword ptr [rax+1D0h]                                           ; +0x7c, 0x18005c4cc\nmov     rcx, [rax+38h]                                                 ; +0x82, 0x18005c4d2\nmov     rax, [rsi]                                                     ; +0x86, 0x18005c4d6\nmov     edi, [rcx]                                                     ; +0x89, 0x18005c4d9\nmov     rcx, rsi                                                       ; +0x8b, 0x18005c4db\nshl     rdi, 3                                                         ; +0x8e, 0x18005c4de\ncall    qword ptr [rax+1D0h]                                           ; +0x92, 0x18005c4e2\nmov     rcx, [rax+38h]                                                 ; +0x98, 0x18005c4e8\nmov     rax, [rcx+10h]                                                 ; +0x9c, 0x18005c4ec\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa0, 0x18005c4f0\nadd     rdi, rax                                                       ; +0xa4, 0x18005c4f4\ncmp     rbx, rdi                                                       ; +0xa7, 0x18005c4f7\nja      short loc_18005C519                                            ; +0xaa, 0x18005c4fa\nnop     dword ptr [rax+00h]                                            ; +0xac, 0x18005c4fc\nmov     rcx, [rbx]                                                     ; +0xb0, 0x18005c500\ntest    rcx, rcx                                                       ; +0xb3, 0x18005c503\njz      short loc_18005C519                                            ; +0xb6, 0x18005c506\nmov     rdx, rbp                                                       ; +0xb8, 0x18005c508\ncall    sub_18005C450                                                  ; +0xbb, 0x18005c50b\nadd     rbx, 8                                                         ; +0xc0, 0x18005c510\ncmp     rbx, rdi                                                       ; +0xc4, 0x18005c514\njbe     short loc_18005C500                                            ; +0xc7, 0x18005c517\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x18005c519\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xce, 0x18005c51e\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xd3, 0x18005c523\nadd     rsp, 20h                                                       ; +0xd8, 0x18005c528\npop     rsi                                                            ; +0xdc, 0x18005c52c\nretn                                                                   ; +0xdd, 0x18005c52d", "xrefs": ["sub_18005C450 @ 0x18005c50b", "cocos2d::CCClippingNode::visit @ 0x18005c81a", "<???> @ 0x180139148", "<???> @ 0x180139158", "<???> @ 0x1801b3060"], "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"}