{"type": "func", "start": 6442936080, "end": 6442936258, "name": "sub_180076710", "pseudocode": "// \n// sub_180076710 from 0x180076710 to 0x1800767c2 (178 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::CCEGLView @ 0x18007583d\n// > cocos2d::CCEGLView::~CCEGLView @ 0x180075b20\n// > cocos2d::CCEGLView::onGLFWWindowFocus @ 0x180077a09\n// > <???> @ 0x18013b7e8\n// > <???> @ 0x18013b7f8\n// > <???> @ 0x1801b4878\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_QWORD *__fastcall sub_180076710(__int64 a1)\n{\n  unsigned __int64 v2; // rcx\n  _QWORD *result; // rax\n  _QWORD **v4; // rcx\n  _QWORD *v5; // rcx\n  _QWORD *v6; // rbx\n  unsigned __int64 *v7; // rdx\n  unsigned __int64 *v8; // rcx\n  unsigned __int64 v9; // [rsp+30h] [rbp+8h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 16);\n  if ( v2 )\n  {\n    if ( *(_QWORD *)(a1 + 56) >> 3 <= v2 )\n    {\n      v4 = *(_QWORD ***)(a1 + 8);\n      *v4[1] = 0;\n      v5 = *v4;\n      if ( v5 )\n      {\n        do\n        {\n          v6 = (_QWORD *)*v5;\n          j_j_free_0(v5);\n          v5 = v6;\n        }\n        while ( v6 );\n      }\n      **(_QWORD **)(a1 + 8) = *(_QWORD *)(a1 + 8);\n      *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) = *(_QWORD *)(a1 + 8);\n      *(_QWORD *)(a1 + 16) = 0;\n      v7 = *(unsigned __int64 **)(a1 + 32);\n      v8 = *(unsigned __int64 **)(a1 + 24);\n      v9 = *(_QWORD *)(a1 + 8);\n      return (_QWORD *)sub_180075700(v8, v7, &v9);\n    }\n    else\n    {\n      return sub_180076430((_QWORD *)a1, **(_QWORD **)(a1 + 8), *(_QWORD **)(a1 + 8));\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180076710 from 0x180076710 to 0x1800767c2 (178 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::CCEGLView @ 0x18007583d\n; > cocos2d::CCEGLView::~CCEGLView @ 0x180075b20\n; > cocos2d::CCEGLView::onGLFWWindowFocus @ 0x180077a09\n; > <???> @ 0x18013b7e8\n; > <???> @ 0x18013b7f8\n; > <???> @ 0x1801b4878\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\npush    rdi                                                            ; +0x0, 0x180076710\nsub     rsp, 20h                                                       ; +0x2, 0x180076712\nmov     rdi, rcx                                                       ; +0x6, 0x180076716\nmov     rcx, [rcx+10h]                                                 ; +0x9, 0x180076719\ntest    rcx, rcx                                                       ; +0xd, 0x18007671d\njz      loc_1800767BC                                                  ; +0x10, 0x180076720\nmov     rax, [rdi+38h]                                                 ; +0x16, 0x180076726\nshr     rax, 3                                                         ; +0x1a, 0x18007672a\ncmp     rax, rcx                                                       ; +0x1e, 0x18007672e\njbe     short loc_18007674A                                            ; +0x21, 0x180076731\nmov     rdx, [rdi+8]                                                   ; +0x23, 0x180076733\nmov     rcx, rdi                                                       ; +0x27, 0x180076737\nmov     r8, rdx                                                        ; +0x2a, 0x18007673a\nmov     rdx, [rdx]                                                     ; +0x2d, 0x18007673d\nadd     rsp, 20h                                                       ; +0x30, 0x180076740\npop     rdi                                                            ; +0x34, 0x180076744\njmp     sub_180076430                                                  ; +0x35, 0x180076745\nmov     rcx, [rdi+8]                                                   ; +0x3a, 0x18007674a\nmov     rax, [rcx+8]                                                   ; +0x3e, 0x18007674e\nmov     qword ptr [rax], 0                                             ; +0x42, 0x180076752\nmov     rcx, [rcx]; Block                                              ; +0x49, 0x180076759\ntest    rcx, rcx                                                       ; +0x4c, 0x18007675c\njz      short loc_18007678A                                            ; +0x4f, 0x18007675f\nmov     [rsp+28h+arg_8], rbx                                           ; +0x51, 0x180076761\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x180076766\nmov     rbx, [rcx]                                                     ; +0x60, 0x180076770\nmov     edx, 18h                                                       ; +0x63, 0x180076773\ncall    j_j_free_0                                                     ; +0x68, 0x180076778\nmov     rcx, rbx                                                       ; +0x6d, 0x18007677d\ntest    rbx, rbx                                                       ; +0x70, 0x180076780\njnz     short loc_180076770                                            ; +0x73, 0x180076783\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x75, 0x180076785\nmov     rax, [rdi+8]                                                   ; +0x7a, 0x18007678a\nlea     r8, [rsp+28h+arg_0]                                            ; +0x7e, 0x18007678e\nmov     [rax], rax                                                     ; +0x83, 0x180076793\nmov     rax, [rdi+8]                                                   ; +0x86, 0x180076796\nmov     [rax+8], rax                                                   ; +0x8a, 0x18007679a\nmov     qword ptr [rdi+10h], 0                                         ; +0x8e, 0x18007679e\nmov     rax, [rdi+8]                                                   ; +0x96, 0x1800767a6\nmov     rdx, [rdi+20h]                                                 ; +0x9a, 0x1800767aa\nmov     rcx, [rdi+18h]                                                 ; +0x9e, 0x1800767ae\nmov     [rsp+28h+arg_0], rax                                           ; +0xa2, 0x1800767b2\ncall    sub_180075700                                                  ; +0xa7, 0x1800767b7\nadd     rsp, 20h                                                       ; +0xac, 0x1800767bc\npop     rdi                                                            ; +0xb0, 0x1800767c0\nretn                                                                   ; +0xb1, 0x1800767c1", "xrefs": ["cocos2d::CCEGLView::CCEGLView @ 0x18007583d", "cocos2d::CCEGLView::~CCEGLView @ 0x180075b20", "cocos2d::CCEGLView::onGLFWWindowFocus @ 0x180077a09", "<???> @ 0x18013b7e8", "<???> @ 0x18013b7f8", "<???> @ 0x1801b4878"], "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"}