{"type": "func", "start": 5369149808, "end": 5369150029, "name": "LoadingCircle::init", "pseudocode": "// \n// LoadingCircle::init from 0x14006b970 to 0x14006ba4d (221 bytes)\n// \n// 5 xrefs:\n// > LoadingCircle::create @ 0x14006b930\n// > LoadingCircle::create @ 0x14006b937\n// > LoadingCircle::create @ 0x14006b921\n// > <???> @ 0x140534748\n// > <???> @ 0x1406c6000\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\nbool LoadingCircle::init(LoadingCircle *a1)\n{\n  bool result; // al\n  __int64 v3; // rcx\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCSprite *v5; // rax\n  float v6; // xmm1_4\n  float v7; // xmm2_4\n  cocos2d::CCSprite_vtbl *v8; // rbx\n  const cocos2d::CCPoint *v9; // rax\n  cocos2d::CCTextureProtocol *v10; // rcx\n  __int64 v11; // [rsp+38h] [rbp+10h] BYREF\n  float v12; // [rsp+40h] [rbp+18h]\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    v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);\n    cocos2d::CCDirector::getWinSize(v4);\n    v5 = cocos2d::CCSprite::create(\"loadingCircle.png\");\n    v6 = v12;\n    v7 = v13 * 0.5;\n    a1->m_sprite = v5;\n    v8 = v5->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v6 * 0.5, v7);\n    v8->setPosition_0(a1->m_sprite, v9);\n    v10 = &a1->m_sprite->cocos2d::CCTextureProtocol;\n    v11 = 0x100000302LL;\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v10->setBlendFunc)(v10, 0x100000302LL);\n    a1->addChild_1(a1, a1->m_sprite);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; LoadingCircle::init from 0x14006b970 to 0x14006ba4d (221 bytes)\n; \n; 5 xrefs:\n; > LoadingCircle::create @ 0x14006b930\n; > LoadingCircle::create @ 0x14006b937\n; > LoadingCircle::create @ 0x14006b921\n; > <???> @ 0x140534748\n; > <???> @ 0x1406c6000\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    rdi                                                            ; +0x0, 0x14006b970\nsub     rsp, 20h                                                       ; +0x2, 0x14006b972\nmov     dword ptr [rsp+28h+arg_8], 0                                   ; +0x6, 0x14006b976\nlea     rdx, [rsp+28h+arg_8]                                           ; +0xe, 0x14006b97e\nmov     eax, dword ptr [rsp+28h+arg_8]                                 ; +0x13, 0x14006b983\nmov     rdi, rcx                                                       ; +0x17, 0x14006b987\nmov     dword ptr [rsp+28h+arg_8], eax                                 ; +0x1a, 0x14006b98a\ncall    cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x1e, 0x14006b98e\ntest    al, al                                                         ; +0x24, 0x14006b994\njnz     short loc_14006B99E                                            ; +0x26, 0x14006b996\nadd     rsp, 20h                                                       ; +0x28, 0x14006b998\npop     rdi                                                            ; +0x2c, 0x14006b99c\nretn                                                                   ; +0x2d, 0x14006b99d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2e, 0x14006b99e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x14006b9a3\nmov     rcx, rax                                                       ; +0x39, 0x14006b9a9\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x3c, 0x14006b9ac\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x41, 0x14006b9b1\nlea     rcx, aLoadingcircleP; \"loadingCircle.png\"                      ; +0x47, 0x14006b9b7\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x4e, 0x14006b9be\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0x54, 0x14006b9c4\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x5a, 0x14006b9ca\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x5f, 0x14006b9cf\nmulss   xmm2, cs:dword_140622B08                                       ; +0x65, 0x14006b9d5\nmov     [rdi+220h], rax                                                ; +0x6d, 0x14006b9dd\nmulss   xmm1, cs:dword_140622B08                                       ; +0x74, 0x14006b9e4\nmov     rbx, [rax]                                                     ; +0x7c, 0x14006b9ec\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7f, 0x14006b9ef\nmov     rcx, [rdi+220h]                                                ; +0x85, 0x14006b9f5\nmov     rdx, rax                                                       ; +0x8c, 0x14006b9fc\ncall    qword ptr [rbx+0B8h]                                           ; +0x8f, 0x14006b9ff\nmov     rcx, [rdi+220h]                                                ; +0x95, 0x14006ba05\nadd     rcx, 158h                                                      ; +0x9c, 0x14006ba0c\nmov     dword ptr [rsp+28h+arg_8], 302h                                ; +0xa3, 0x14006ba13\nmov     dword ptr [rsp+28h+arg_8+4], 1                                 ; +0xab, 0x14006ba1b\nmov     rdx, [rsp+28h+arg_8]                                           ; +0xb3, 0x14006ba23\nmov     rax, [rcx]                                                     ; +0xb8, 0x14006ba28\ncall    qword ptr [rax]                                                ; +0xbb, 0x14006ba2b\nmov     rax, [rdi]                                                     ; +0xbd, 0x14006ba2d\nmov     rcx, rdi                                                       ; +0xc0, 0x14006ba30\nmov     rdx, [rdi+220h]                                                ; +0xc3, 0x14006ba33\ncall    qword ptr [rax+1C0h]                                           ; +0xca, 0x14006ba3a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd0, 0x14006ba40\nmov     al, 1                                                          ; +0xd5, 0x14006ba45\nadd     rsp, 20h                                                       ; +0xd7, 0x14006ba47\npop     rdi                                                            ; +0xdb, 0x14006ba4b\nretn                                                                   ; +0xdc, 0x14006ba4c", "xrefs": ["LoadingCircle::create @ 0x14006b930", "LoadingCircle::create @ 0x14006b937", "LoadingCircle::create @ 0x14006b921", "<???> @ 0x140534748", "<???> @ 0x1406c6000"], "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"}