{"type": "func", "start": 6442590272, "end": 6442590363, "name": "sub_180022040", "pseudocode": "// \n// sub_180022040 from 0x180022040 to 0x18002209b (91 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCGridBase::beforeDraw @ 0x1800226bc\n// > <???> @ 0x1801aeed8\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_180022040(__int64 a1)\n{\n  glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));\n  _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));\n  glGetFloatv(0xC22u, (GLfloat *)(a1 + 64));\n  glClearColor(0.0, 0.0, 0.0, 0.0);\n  glClear(0x4100u);\n}", "assembly": "; \n; sub_180022040 from 0x180022040 to 0x18002209b (91 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCGridBase::beforeDraw @ 0x1800226bc\n; > <???> @ 0x1801aeed8\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    rbx                                                            ; +0x0, 0x180022040\nsub     rsp, 20h                                                       ; +0x2, 0x180022042\nmov     rbx, rcx                                                       ; +0x6, 0x180022046\nlea     rdx, [rcx+3Ch]; params                                         ; +0x9, 0x180022049\nmov     ecx, 8CA6h; pname                                              ; +0xd, 0x18002204d\ncall    cs:glGetIntegerv                                               ; +0x12, 0x180022052\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x18, 0x180022058\nmov     ecx, 8D40h                                                     ; +0x1f, 0x18002205f\nmov     edx, [rbx+38h]                                                 ; +0x24, 0x180022064\ncall    qword ptr [rax]                                                ; +0x27, 0x180022067\nlea     rdx, [rbx+40h]; params                                         ; +0x29, 0x180022069\nmov     ecx, 0C22h; pname                                              ; +0x2d, 0x18002206d\ncall    cs:glGetFloatv                                                 ; +0x32, 0x180022072\nxorps   xmm3, xmm3; alpha                                              ; +0x38, 0x180022078\nxorps   xmm2, xmm2; blue                                               ; +0x3b, 0x18002207b\nxorps   xmm1, xmm1; green                                              ; +0x3e, 0x18002207e\nxorps   xmm0, xmm0; red                                                ; +0x41, 0x180022081\ncall    cs:glClearColor                                                ; +0x44, 0x180022084\nmov     ecx, 4100h                                                     ; +0x4a, 0x18002208a\nadd     rsp, 20h                                                       ; +0x4f, 0x18002208f\npop     rbx                                                            ; +0x53, 0x180022093\njmp     cs:glClear                                                     ; +0x54, 0x180022094", "xrefs": ["cocos2d::CCGridBase::beforeDraw @ 0x1800226bc", "<???> @ 0x1801aeed8"], "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"}