{"type": "func", "start": 4301675248, "end": 4301675426, "name": "-[EAGLView initWithFrame:pixelFormat:]", "pseudocode": "// \n// -[EAGLView initWithFrame:pixelFormat:] from 0x100665af0 to 0x100665ba2 (178 bytes)\n// \n// 4 xrefs:\n// > -[AppController applicationDidFinishLaunching:] @ 0x100007666\n// > -[EAGLView initWithFrame:shareContext:] @ 0x100665a31\n// > -[EAGLView initWithFrame:pixelFormat:] @ 0x100665b91\n// > <???> @ 0x10099aef8\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\nEAGLView *__cdecl -[EAGLView initWithFrame:pixelFormat:](EAGLView *self, SEL a2, CGRect a3, id a4)\n{\n  cocos2d::CCEGLView *v5; // rax\n  float width; // xmm0_4\n  float height; // xmm1_4\n  __int64 v8; // rcx\n  __int64 v9; // r8\n  __int64 v10; // r9\n  objc_super v12; // [rsp+20h] [rbp-20h] BYREF\n\n  self->eventDelegate_ = (MacEventDelegate *)+[CCEventDispatcher sharedDispatcher](\n                                               &OBJC_CLASS___CCEventDispatcher,\n                                               \"sharedDispatcher\");\n  v5 = cocos2d::CCEGLView::sharedOpenGLView();\n  width = a3.size.width;\n  height = a3.size.height;\n  ((void (__fastcall *)(cocos2d::CCEGLView *, float, float))v5->setFrameSize)(v5, width, height);\n  self->frameZoomFactor_ = 1.0;\n  self->_backingScaleFactor = 1.0;\n  qword_1009A38D8 = (__int64)self;\n  v12.receiver = self;\n  v12.super_class = (Class)&OBJC_CLASS___EAGLView;\n  -[EAGLView initWithFrame:pixelFormat:](\n    &v12,\n    \"initWithFrame:pixelFormat:\",\n    a4,\n    v8,\n    v9,\n    v10,\n    *(_QWORD *)&a3.origin.x,\n    *(_QWORD *)&a3.origin.y,\n    *(_QWORD *)&a3.size.width,\n    *(_QWORD *)&a3.size.height);\n  return self;\n}", "assembly": "; \n; -[EAGLView initWithFrame:pixelFormat:] from 0x100665af0 to 0x100665ba2 (178 bytes)\n; \n; 4 xrefs:\n; > -[AppController applicationDidFinishLaunching:] @ 0x100007666\n; > -[EAGLView initWithFrame:shareContext:] @ 0x100665a31\n; > -[EAGLView initWithFrame:pixelFormat:] @ 0x100665b91\n; > <???> @ 0x10099aef8\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    rbp                                                            ; +0x0, 0x100665af0\nmov     rbp, rsp                                                       ; +0x1, 0x100665af1\npush    r14                                                            ; +0x4, 0x100665af4\npush    rbx                                                            ; +0x6, 0x100665af6\nsub     rsp, 30h                                                       ; +0x7, 0x100665af7\nmov     r14, rdx                                                       ; +0xb, 0x100665afb\nmov     rbx, rdi                                                       ; +0xe, 0x100665afe\nmov     rdi, cs:classRef_CCEventDispatcher; id                         ; +0x11, 0x100665b01\nmov     rsi, cs:selRef_sharedDispatcher; SEL                           ; +0x18, 0x100665b08\ncall    cs:_objc_msgSend_ptr; +[CCEventDispatcher sharedDispatcher] ... ; +0x1f, 0x100665b0f\nmov     rcx, cs:_OBJC_IVAR_$_EAGLView_eventDelegate_; MacEventDelegate *eventDelegate_; ; +0x25, 0x100665b15\nmov     [rbx+rcx], rax                                                 ; +0x2c, 0x100665b1c\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x30, 0x100665b20\nmovsd   xmm0, [rbp+arg_0.size.width]                                   ; +0x35, 0x100665b25\ncvtsd2ss xmm0, xmm0                                                    ; +0x3a, 0x100665b2a\nmovsd   xmm1, [rbp+arg_0.size.height]                                  ; +0x3e, 0x100665b2e\ncvtsd2ss xmm1, xmm1                                                    ; +0x43, 0x100665b33\nmov     rcx, [rax]                                                     ; +0x47, 0x100665b37\nmov     rdi, rax                                                       ; +0x4a, 0x100665b3a\ncall    qword ptr [rcx+38h]                                            ; +0x4d, 0x100665b3d\nmov     rax, cs:_OBJC_IVAR_$_EAGLView_frameZoomFactor_; float frameZoomFactor_; ; +0x50, 0x100665b40\nmov     dword ptr [rbx+rax], 3F800000h                                 ; +0x57, 0x100665b47\nmov     rax, cs:_OBJC_IVAR_$_EAGLView__backingScaleFactor; float _backingScaleFactor; ; +0x5e, 0x100665b4e\nmov     dword ptr [rbx+rax], 3F800000h                                 ; +0x65, 0x100665b55\nmov     cs:qword_1009A38D8, rbx                                        ; +0x6c, 0x100665b5c\nmov     [rbp+var_20.receiver], rbx                                     ; +0x73, 0x100665b63\nmov     rax, cs:classRef_EAGLView_0                                    ; +0x77, 0x100665b67\nmov     [rbp+var_20.super_class], rax                                  ; +0x7e, 0x100665b6e\nmov     rsi, cs:selRef_initWithFrame_pixelFormat_; SEL                 ; +0x82, 0x100665b72\nmovaps  xmm0, xmmword ptr [rbp+arg_0.origin.x]                         ; +0x89, 0x100665b79\nmovaps  xmm1, xmmword ptr [rbp+arg_0.size.width]                       ; +0x8d, 0x100665b7d\nmovups  [rsp+40h+var_30], xmm1                                         ; +0x91, 0x100665b81\nmovups  [rsp+40h+var_40], xmm0                                         ; +0x96, 0x100665b86\nlea     rdi, [rbp+var_20]; objc_super *                                ; +0x9a, 0x100665b8a\nmov     rdx, r14                                                       ; +0x9e, 0x100665b8e\ncall    _objc_msgSendSuper2; -[EAGLView initWithFrame:pixelFormat:] ... ; +0xa1, 0x100665b91\nmov     rax, rbx                                                       ; +0xa6, 0x100665b96\nadd     rsp, 30h                                                       ; +0xa9, 0x100665b99\npop     rbx                                                            ; +0xad, 0x100665b9d\npop     r14                                                            ; +0xae, 0x100665b9e\npop     rbp                                                            ; +0xb0, 0x100665ba0\nretn                                                                   ; +0xb1, 0x100665ba1", "xrefs": ["-[AppController applicationDidFinishLaunching:] @ 0x100007666", "-[EAGLView initWithFrame:shareContext:] @ 0x100665a31", "-[EAGLView initWithFrame:pixelFormat:] @ 0x100665b91", "<???> @ 0x10099aef8"], "is_objc": true, "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"}