{"type": "func", "start": 6442925200, "end": 6442925424, "name": "cocos2d::CCApplication::setupGLView", "pseudocode": "// \n// cocos2d::CCApplication::setupGLView from 0x180073c90 to 0x180073d70 (224 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801006f8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b44a0\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// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCApplication::setupGLView(cocos2d::CCApplication *this)\n{\n  cocos2d::CCDirector *v1; // rbx\n  struct cocos2d::CCEGLView *v2; // rdi\n  void *v3; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v5; // [rsp+30h] [rbp-28h]\n  unsigned __int64 v6; // [rsp+38h] [rbp-20h]\n\n  v1 = cocos2d::CCDirector::sharedDirector();\n  Block[1] = (void *)110;\n  v5 = 9;\n  v6 = 15;\n  Block[0] = (void *)0x6961676120797254LL;\n  v2 = (struct cocos2d::CCEGLView *)cocos2d::CCEGLView::create(Block);\n  if ( v6 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v3);\n  }\n  v5 = 0;\n  v6 = 15;\n  LOBYTE(Block[0]) = 0;\n  cocos2d::CCDirector::setOpenGLView(v1, v2);\n}", "assembly": "; \n; cocos2d::CCApplication::setupGLView from 0x180073c90 to 0x180073d70 (224 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801006f8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b44a0\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, 0x180073c90\npush    rdi                                                            ; +0x5, 0x180073c95\nsub     rsp, 50h                                                       ; +0x6, 0x180073c96\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180073c9a\nxor     rax, rsp                                                       ; +0x11, 0x180073ca1\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x180073ca4\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x180073ca9\nmov     rbx, rax                                                       ; +0x1e, 0x180073cae\nxorps   xmm0, xmm0                                                     ; +0x21, 0x180073cb1\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x24, 0x180073cb4\nmov     [rsp+58h+var_28], 9                                            ; +0x29, 0x180073cb9\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x32, 0x180073cc2\nmovsd   xmm0, cs:qword_180100708                                       ; +0x3b, 0x180073ccb\nmovsd   [rsp+58h+Block], xmm0                                          ; +0x43, 0x180073cd3\nmovzx   ecx, cs:byte_180100710                                         ; +0x49, 0x180073cd9\nmov     byte ptr [rsp+58h+Block+8], cl                                 ; +0x50, 0x180073ce0\nmov     byte ptr [rsp+58h+Block+9], 0                                  ; +0x54, 0x180073ce4\nlea     rcx, [rsp+58h+Block]                                           ; +0x59, 0x180073ce9\ncall    ?create@CCEGLView@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCEGLView::create(std::string const &) ; +0x5e, 0x180073cee\nmov     rdi, rax                                                       ; +0x63, 0x180073cf3\nmov     rdx, [rsp+58h+var_20]                                          ; +0x66, 0x180073cf6\ncmp     rdx, 0Fh                                                       ; +0x6b, 0x180073cfb\njbe     short loc_180073D36                                            ; +0x6f, 0x180073cff\ninc     rdx                                                            ; +0x71, 0x180073d01\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x74, 0x180073d04\nmov     rax, rcx                                                       ; +0x79, 0x180073d09\ncmp     rdx, 1000h                                                     ; +0x7c, 0x180073d0c\njb      short loc_180073D31                                            ; +0x83, 0x180073d13\nadd     rdx, 27h ; '''                                                 ; +0x85, 0x180073d15\nmov     rcx, [rcx-8]                                                   ; +0x89, 0x180073d19\nsub     rax, rcx                                                       ; +0x8d, 0x180073d1d\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x90, 0x180073d20\ncmp     rax, 1Fh                                                       ; +0x94, 0x180073d24\njbe     short loc_180073D31                                            ; +0x98, 0x180073d28\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x9a, 0x180073d2a\ndb 0CCh                                                                ; +0xa0, 0x180073d30\ncall    j_j_free_0                                                     ; +0xa1, 0x180073d31\nmov     [rsp+58h+var_28], 0                                            ; +0xa6, 0x180073d36\nmov     [rsp+58h+var_20], 0Fh                                          ; +0xaf, 0x180073d3f\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0xb8, 0x180073d48\nmov     rdx, rdi; struct cocos2d::CCEGLView *                          ; +0xbd, 0x180073d4d\nmov     rcx, rbx; this                                                 ; +0xc0, 0x180073d50\ncall    ?setOpenGLView@CCDirector@cocos2d@@QEAAXPEAVCCEGLView@2@@Z; cocos2d::CCDirector::setOpenGLView(cocos2d::CCEGLView *) ; +0xc3, 0x180073d53\nmov     rcx, [rsp+58h+var_18]                                          ; +0xc8, 0x180073d58\nxor     rcx, rsp; StackCookie                                          ; +0xcd, 0x180073d5d\ncall    __security_check_cookie                                        ; +0xd0, 0x180073d60\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xd5, 0x180073d65\nadd     rsp, 50h                                                       ; +0xda, 0x180073d6a\npop     rdi                                                            ; +0xde, 0x180073d6e\nretn                                                                   ; +0xdf, 0x180073d6f", "xrefs": ["<???> @ 0x1801006f8", "<???> @ 0x1801438a8", "<???> @ 0x1801b44a0"], "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"}