{"type": "func", "start": 5369202832, "end": 5369203054, "name": "LoadingCircle::init", "pseudocode": "// \n// LoadingCircle::init from 0x140078890 to 0x14007896e (222 bytes)\n// \n// 5 xrefs:\n// > LoadingCircle::create @ 0x140078850\n// > LoadingCircle::create @ 0x140078857\n// > LoadingCircle::create @ 0x140078841\n// > <???> @ 0x14070fd50\n// > <???> @ 0x140911cb4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:52 +0000\n// \n\nbool __fastcall LoadingCircle::init(cocos2d::CCLayerColor *a1)\n{\n  bool result; // al\n  __int64 v3; // rax\n  struct cocos2d::CCSprite *v4; // rax\n  float v5; // xmm1_4\n  struct cocos2d::CCSprite *v6; // rdi\n  float v7; // xmm2_4\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  void (__fastcall ***v10)(_QWORD, __int64); // rcx\n  __int64 v11; // [rsp+38h] [rbp+10h] BYREF\n  float v12; // [rsp+40h] [rbp+18h] BYREF\n  float v13; // [rsp+44h] [rbp+1Ch]\n\n  LODWORD(v11) = 0;\n  result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v11);\n  if ( result )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v3, &v12);\n    v4 = cocos2d::CCSprite::create(\"loadingCircle.png\");\n    v5 = v12;\n    v6 = v4;\n    v7 = v13 * 0.5;\n    *((_QWORD *)a1 + 68) = v4;\n    v8 = *(_QWORD *)v4;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v5 * 0.5, v7);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v8 + 184))(v6, v9);\n    v10 = (void (__fastcall ***)(_QWORD, __int64))(*((_QWORD *)a1 + 68) + 344LL);\n    v11 = 0x100000302LL;\n    (**v10)(v10, 0x100000302LL);\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *((_QWORD *)a1 + 68));\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; LoadingCircle::init from 0x140078890 to 0x14007896e (222 bytes)\n; \n; 5 xrefs:\n; > LoadingCircle::create @ 0x140078850\n; > LoadingCircle::create @ 0x140078857\n; > LoadingCircle::create @ 0x140078841\n; > <???> @ 0x14070fd50\n; > <???> @ 0x140911cb4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:52 +0000\n; \npush    rsi                                                            ; +0x0, 0x140078890\nsub     rsp, 20h                                                       ; +0x2, 0x140078892\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x6, 0x140078896\nmov     dword ptr [rsp+28h+arg_8], 0                                   ; +0xb, 0x14007889b\nmov     rsi, rcx                                                       ; +0x13, 0x1400788a3\ncall    cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x16, 0x1400788a6\ntest    al, al                                                         ; +0x1c, 0x1400788ac\njnz     short loc_1400788B6                                            ; +0x1e, 0x1400788ae\nadd     rsp, 20h                                                       ; +0x20, 0x1400788b0\npop     rsi                                                            ; +0x24, 0x1400788b4\nretn                                                                   ; +0x25, 0x1400788b5\nmov     [rsp+28h+arg_0], rbx                                           ; +0x26, 0x1400788b6\nmov     [rsp+28h+arg_18], rdi                                          ; +0x2b, 0x1400788bb\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x1400788c0\nmov     rcx, rax                                                       ; +0x36, 0x1400788c6\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x39, 0x1400788c9\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x3e, 0x1400788ce\nlea     rcx, aLoadingcircleP; \"loadingCircle.png\"                      ; +0x44, 0x1400788d4\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x4b, 0x1400788db\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0x51, 0x1400788e1\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x57, 0x1400788e7\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x5c, 0x1400788ec\nmov     rdi, rax                                                       ; +0x62, 0x1400788f2\nmulss   xmm2, cs:dword_140834F20                                       ; +0x65, 0x1400788f5\nmov     [rsi+220h], rax                                                ; +0x6d, 0x1400788fd\nmulss   xmm1, cs:dword_140834F20                                       ; +0x74, 0x140078904\nmov     rbx, [rax]                                                     ; +0x7c, 0x14007890c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7f, 0x14007890f\nmov     rdx, rax                                                       ; +0x85, 0x140078915\nmov     rcx, rdi                                                       ; +0x88, 0x140078918\ncall    qword ptr [rbx+0B8h]                                           ; +0x8b, 0x14007891b\nmov     rcx, [rsi+220h]                                                ; +0x91, 0x140078921\nadd     rcx, 158h                                                      ; +0x98, 0x140078928\nmov     dword ptr [rsp+28h+arg_8], 302h                                ; +0x9f, 0x14007892f\nmov     dword ptr [rsp+28h+arg_8+4], 1                                 ; +0xa7, 0x140078937\nmov     rdx, [rsp+28h+arg_8]                                           ; +0xaf, 0x14007893f\nmov     rax, [rcx]                                                     ; +0xb4, 0x140078944\ncall    qword ptr [rax]                                                ; +0xb7, 0x140078947\nmov     rax, [rsi]                                                     ; +0xb9, 0x140078949\nmov     rcx, rsi                                                       ; +0xbc, 0x14007894c\nmov     rdx, [rsi+220h]                                                ; +0xbf, 0x14007894f\ncall    qword ptr [rax+1D0h]                                           ; +0xc6, 0x140078956\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xcc, 0x14007895c\nmov     al, 1                                                          ; +0xd1, 0x140078961\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd3, 0x140078963\nadd     rsp, 20h                                                       ; +0xd8, 0x140078968\npop     rsi                                                            ; +0xdc, 0x14007896c\nretn                                                                   ; +0xdd, 0x14007896d", "xrefs": ["LoadingCircle::create @ 0x140078850", "LoadingCircle::create @ 0x140078857", "LoadingCircle::create @ 0x140078841", "<???> @ 0x14070fd50", "<???> @ 0x140911cb4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}