{"type": "func", "start": 6442935136, "end": 6442935344, "name": "sub_180076360", "pseudocode": "// \n// sub_180076360 from 0x180076360 to 0x180076430 (208 bytes)\n// \n// 7 xrefs:\n// > sub_180075980 @ 0x180075989\n// > cocos2d::CCEGLView::~CCEGLView @ 0x180075b08\n// > cocos2d::CCEGLView::pumpRawInput @ 0x180078601\n// > __dcrt_uninitialize_environments_nolock @ 0x1800e3b57\n// > <???> @ 0x18013b73c\n// > <???> @ 0x18013b74c\n// > <???> @ 0x1801b480c\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 __fastcall sub_180076360(_QWORD *a1)\n{\n  __int64 v1; // rax\n  _QWORD *v3; // r14\n  __int64 v4; // rbx\n  void *v5; // rcx\n  _QWORD *v6; // rcx\n\n  v1 = a1[4];\n  if ( v1 )\n  {\n    do\n      a1[4] = --v1;\n    while ( v1 );\n    a1[3] = 0;\n  }\n  v3 = a1 + 1;\n  if ( a1[1] )\n  {\n    v4 = a1[2];\n    if ( v4 )\n    {\n      do\n      {\n        --v4;\n        v5 = *(void **)(a1[1] + 8 * v4);\n        if ( v5 )\n          j_j_free_0(v5);\n      }\n      while ( v4 );\n      v3 = a1 + 1;\n    }\n    v6 = (_QWORD *)a1[1];\n    if ( (unsigned __int64)(8LL * a1[2]) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v6 - *(v6 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v6 = (_QWORD *)*(v6 - 1);\n    }\n    j_j_free_0(v6);\n  }\n  *v3 = 0;\n  a1[2] = 0;\n}", "assembly": "; \n; sub_180076360 from 0x180076360 to 0x180076430 (208 bytes)\n; \n; 7 xrefs:\n; > sub_180075980 @ 0x180075989\n; > cocos2d::CCEGLView::~CCEGLView @ 0x180075b08\n; > cocos2d::CCEGLView::pumpRawInput @ 0x180078601\n; > __dcrt_uninitialize_environments_nolock @ 0x1800e3b57\n; > <???> @ 0x18013b73c\n; > <???> @ 0x18013b74c\n; > <???> @ 0x1801b480c\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], rsi                                              ; +0x0, 0x180076360\npush    rdi                                                            ; +0x5, 0x180076365\nsub     rsp, 20h                                                       ; +0x6, 0x180076366\nmov     rax, [rcx+20h]                                                 ; +0xa, 0x18007636a\nmov     rdi, rcx                                                       ; +0xe, 0x18007636e\ntest    rax, rax                                                       ; +0x11, 0x180076371\njz      short loc_180076388                                            ; +0x14, 0x180076374\nsub     rax, 1                                                         ; +0x16, 0x180076376\nmov     [rcx+20h], rax                                                 ; +0x1a, 0x18007637a\njnz     short loc_180076376                                            ; +0x1e, 0x18007637e\nmov     qword ptr [rcx+18h], 0                                         ; +0x20, 0x180076380\ncmp     qword ptr [rcx+8], 0                                           ; +0x28, 0x180076388\nmov     [rsp+28h+arg_8], r14                                           ; +0x2d, 0x18007638d\nlea     r14, [rcx+8]                                                   ; +0x32, 0x180076392\njz      short loc_18007640A                                            ; +0x36, 0x180076396\nmov     [rsp+28h+arg_0], rbx                                           ; +0x38, 0x180076398\nmov     rbx, [rcx+10h]                                                 ; +0x3d, 0x18007639d\ntest    rbx, rbx                                                       ; +0x41, 0x1800763a1\njz      short loc_1800763D3                                            ; +0x44, 0x1800763a4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x1800763a6\nmov     rax, [rdi+8]                                                   ; +0x50, 0x1800763b0\ndec     rbx                                                            ; +0x54, 0x1800763b4\nmov     rcx, [rax+rbx*8]; Block                                        ; +0x57, 0x1800763b7\ntest    rcx, rcx                                                       ; +0x5b, 0x1800763bb\njz      short loc_1800763CA                                            ; +0x5e, 0x1800763be\nmov     edx, 20h ; ' '                                                 ; +0x60, 0x1800763c0\ncall    j_j_free_0                                                     ; +0x65, 0x1800763c5\ntest    rbx, rbx                                                       ; +0x6a, 0x1800763ca\njnz     short loc_1800763B0                                            ; +0x6d, 0x1800763cd\nlea     r14, [rdi+8]                                                   ; +0x6f, 0x1800763cf\nmov     rdx, [rdi+10h]                                                 ; +0x73, 0x1800763d3\nmov     rcx, [rdi+8]                                                   ; +0x77, 0x1800763d7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x1800763db\nshl     rdx, 3                                                         ; +0x80, 0x1800763e0\ncmp     rdx, 1000h                                                     ; +0x84, 0x1800763e4\njb      short loc_180076405                                            ; +0x8b, 0x1800763eb\nmov     r8, [rcx-8]                                                    ; +0x8d, 0x1800763ed\nadd     rdx, 27h ; '''                                                 ; +0x91, 0x1800763f1\nsub     rcx, r8                                                        ; +0x95, 0x1800763f5\nlea     rax, [rcx-8]                                                   ; +0x98, 0x1800763f8\ncmp     rax, 1Fh                                                       ; +0x9c, 0x1800763fc\nja      short loc_180076429                                            ; +0xa0, 0x180076400\nmov     rcx, r8; Block                                                 ; +0xa2, 0x180076402\ncall    j_j_free_0                                                     ; +0xa5, 0x180076405\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xaa, 0x18007640a\nmov     qword ptr [r14], 0                                             ; +0xaf, 0x18007640f\nmov     r14, [rsp+28h+arg_8]                                           ; +0xb6, 0x180076416\nmov     qword ptr [rdi+10h], 0                                         ; +0xbb, 0x18007641b\nadd     rsp, 20h                                                       ; +0xc3, 0x180076423\npop     rdi                                                            ; +0xc7, 0x180076427\nretn                                                                   ; +0xc8, 0x180076428\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xc9, 0x180076429\nalign 10h                                                              ; +0xcf, 0x18007642f", "xrefs": ["sub_180075980 @ 0x180075989", "cocos2d::CCEGLView::~CCEGLView @ 0x180075b08", "cocos2d::CCEGLView::pumpRawInput @ 0x180078601", "__dcrt_uninitialize_environments_nolock @ 0x1800e3b57", "<???> @ 0x18013b73c", "<???> @ 0x18013b74c", "<???> @ 0x1801b480c"], "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"}