{"type": "func", "start": 4302983152, "end": 4302983346, "name": "GraphicsReloadLayer::init", "pseudocode": "// \n// GraphicsReloadLayer::init from 0x1007a4ff0 to 0x1007a50b2 (194 bytes)\n// \n// 0 xrefs:\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// local variable allocation has failed, the output may be wrong!\nbool __fastcall GraphicsReloadLayer::init(\n        GraphicsReloadLayer *a1,\n        cocos2d::TextureQuality a2,\n        cocos2d::CCSize a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7)\n{\n  _BOOL8 v9; // r13\n  bool result; // al\n  _QWORD *v11; // rsi\n  bool v12; // r13\n  cocos2d::CCDelayTime *v13; // r14\n  cocos2d::CCCallFunc *v14; // rax\n  cocos2d::CCSequence *v15; // rax\n  unsigned __int8 v17; // [rsp+3Ch] [rbp+10h]\n\n  v9 = a4;\n  result = cocos2d::CCLayer::init(a1);\n  if ( result )\n  {\n    a1->m_quality = a2;\n    v11 = (_QWORD *)v9;\n    v12 = result;\n    sub_10028CFF0(&a1->m_resolution, v11);\n    *(_DWORD *)&a1->m_fullscreen = _mm_cvtsi128_si32(\n                                     _mm_insert_epi8(\n                                       _mm_insert_epi8(_mm_insert_epi8(_mm_cvtsi32_si128(a5), a6, 1), a7, 2),\n                                       v17,\n                                       3));\n    v13 = cocos2d::CCDelayTime::create(0.1);\n    v14 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GraphicsReloadLayer::performReload);\n    v15 = sub_1003B5760(v13, v14, 0);\n    cocos2d::CCNode::runAction(a1, v15);\n    return v12;\n  }\n  return result;\n}", "assembly": "; \n; GraphicsReloadLayer::init from 0x1007a4ff0 to 0x1007a50b2 (194 bytes)\n; \n; 0 xrefs:\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, 0x1007a4ff0\nmov     rbp, rsp                                                       ; +0x1, 0x1007a4ff1\npush    r15                                                            ; +0x4, 0x1007a4ff4\npush    r14                                                            ; +0x6, 0x1007a4ff6\npush    r13                                                            ; +0x8, 0x1007a4ff8\npush    r12                                                            ; +0xa, 0x1007a4ffa\npush    rbx                                                            ; +0xc, 0x1007a4ffc\npush    rax                                                            ; +0xd, 0x1007a4ffd\nmov     [rbp+var_2C], r9d                                              ; +0xe, 0x1007a4ffe\nmov     r12d, r8d                                                      ; +0x12, 0x1007a5002\nmov     r15d, ecx                                                      ; +0x15, 0x1007a5005\nmov     r13, rdx                                                       ; +0x18, 0x1007a5008\nmov     r14d, esi                                                      ; +0x1b, 0x1007a500b\nmov     rbx, rdi                                                       ; +0x1e, 0x1007a500e\ncall    cocos2d__CCLayer__init                                         ; +0x21, 0x1007a5011\ntest    al, al                                                         ; +0x26, 0x1007a5016\njz      loc_1007A50A3                                                  ; +0x28, 0x1007a5018\nmov     [rbx+194h], r14d                                               ; +0x2e, 0x1007a501e\nlea     rdi, [rbx+198h]                                                ; +0x35, 0x1007a5025\nmov     rsi, r13                                                       ; +0x3c, 0x1007a502c\nmov     r13d, eax                                                      ; +0x3f, 0x1007a502f\ncall    sub_10028CFF0                                                  ; +0x42, 0x1007a5032\nmovzx   eax, r12b                                                      ; +0x47, 0x1007a5037\nmovzx   ecx, r15b                                                      ; +0x4b, 0x1007a503b\nmovd    xmm0, ecx                                                      ; +0x4f, 0x1007a503f\npinsrb  xmm0, eax, 1                                                   ; +0x53, 0x1007a5043\nmovzx   eax, byte ptr [rbp+var_2C]                                     ; +0x59, 0x1007a5049\npinsrb  xmm0, eax, 2                                                   ; +0x5d, 0x1007a504d\nmovzx   eax, [rbp+arg_0]                                               ; +0x63, 0x1007a5053\npinsrb  xmm0, eax, 3                                                   ; +0x67, 0x1007a5057\nmovd    dword ptr [rbx+1A0h], xmm0                                     ; +0x6d, 0x1007a505d\nmovss   xmm0, cs:dword_100815058                                       ; +0x75, 0x1007a5065\ncall    cocos2d__CCDelayTime__create                                   ; +0x7d, 0x1007a506d\nmov     r14, rax                                                       ; +0x82, 0x1007a5072\nlea     rsi, GraphicsReloadLayer__performReload                        ; +0x85, 0x1007a5075\nmov     rdi, rbx                                                       ; +0x8c, 0x1007a507c\nxor     edx, edx                                                       ; +0x8f, 0x1007a507f\ncall    cocos2d__CCCallFunc__create                                    ; +0x91, 0x1007a5081\nmov     rdi, r14                                                       ; +0x96, 0x1007a5086\nmov     rsi, rax                                                       ; +0x99, 0x1007a5089\nxor     edx, edx                                                       ; +0x9c, 0x1007a508c\nxor     eax, eax                                                       ; +0x9e, 0x1007a508e\ncall    sub_1003B5760                                                  ; +0xa0, 0x1007a5090\nmov     rdi, rbx                                                       ; +0xa5, 0x1007a5095\nmov     rsi, rax                                                       ; +0xa8, 0x1007a5098\ncall    cocos2d__CCNode__runAction                                     ; +0xab, 0x1007a509b\nmov     eax, r13d                                                      ; +0xb0, 0x1007a50a0\nadd     rsp, 8                                                         ; +0xb3, 0x1007a50a3\npop     rbx                                                            ; +0xb7, 0x1007a50a7\npop     r12                                                            ; +0xb8, 0x1007a50a8\npop     r13                                                            ; +0xba, 0x1007a50aa\npop     r14                                                            ; +0xbc, 0x1007a50ac\npop     r15                                                            ; +0xbe, 0x1007a50ae\npop     rbp                                                            ; +0xc0, 0x1007a50b0\nretn                                                                   ; +0xc1, 0x1007a50b1", "xrefs": [], "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"}