{"type": "func", "start": 4298052684, "end": 4298053052, "name": "CustomSFXWidget::showLoadingArt", "pseudocode": "// \n// CustomSFXWidget::showLoadingArt from 0x1002f144c to 0x1002f15bc (368 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::onDownload @ 0x1002f097c\n// > CustomSFXWidget::startMonitorDownload @ 0x1002f1318\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 CustomSFXWidget::showLoadingArt(CustomSFXWidget *a1)\n{\n  cocos2d::CCSprite *m_clockSprite; // x20\n  float32x2_t *v3; // x21\n  float v4; // s8\n  __n128 v5; // q0\n  __n128 v6; // q1\n  double v7; // d0\n  cocos2d::CCSprite *v8; // x20\n  cocos2d::CCFadeTo *v9; // x0\n  float32x2_t v10; // [xsp+0h] [xbp-40h] BYREF\n  float32x2_t v11; // [xsp+8h] [xbp-38h] BYREF\n\n  m_clockSprite = a1->m_clockSprite;\n  if ( m_clockSprite )\n  {\n    if ( a1->m_compactMode )\n    {\n      v3 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_idLabel->getPosition)(a1->m_idLabel);\n      v4 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_idLabel->getContentSize)(a1->m_idLabel);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_idLabel->getScale)(a1->m_idLabel);\n      v6.n128_u32[0] = 12.0;\n    }\n    else\n    {\n      v3 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_titleLabel->getPosition)(a1->m_titleLabel);\n      v4 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_titleLabel->getContentSize)(a1->m_titleLabel);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_titleLabel->getScale)(a1->m_titleLabel);\n      v6.n128_u32[0] = 14.0;\n    }\n    v5.n128_f32[0] = v6.n128_f32[0] + (float)(v4 * v5.n128_f32[0]);\n    v6.n128_u32[0] = 0;\n    sub_100022980(v5, v6, &v10);\n    *(float32x2_t *)&v7 = sub_1000229DC(v3, &v10, &v11);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))m_clockSprite->setPosition)(\n      m_clockSprite,\n      &v11,\n      v7);\n    cocos2d::CCNode::stopAllActions(a1->m_clockSprite);\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_clockSprite->setOpacity)(a1->m_clockSprite, 25);\n    v8 = a1->m_clockSprite;\n    v9 = cocos2d::CCFadeTo::create(0.2, 0xAFu);\n    cocos2d::CCNode::runAction(v8, v9);\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_clockSprite->setVisible)(a1->m_clockSprite, 1);\n  }\n  else\n  {\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_progressOutlineSprite->setVisible)(\n      a1->m_progressOutlineSprite,\n      1);\n  }\n}", "assembly": "; \n; CustomSFXWidget::showLoadingArt from 0x1002f144c to 0x1002f15bc (368 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::onDownload @ 0x1002f097c\n; > CustomSFXWidget::startMonitorDownload @ 0x1002f1318\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1002f144c\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1002f1450\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1002f1454\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1002f1458\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1002f145c\nADD             X29, SP, #0x40                                         ; +0x14, 0x1002f1460\nMOV             X19, X0                                                ; +0x18, 0x1002f1464\nLDR             X20, [X0,#0x1B0]                                       ; +0x1c, 0x1002f1468\nCBZ             X20, loc_1002F14BC                                     ; +0x20, 0x1002f146c\nLDRB            W8, [X19,#0x1C4]                                       ; +0x24, 0x1002f1470\nCMP             W8, #1                                                 ; +0x28, 0x1002f1474\nB.NE            loc_1002F14E4                                          ; +0x2c, 0x1002f1478\nLDR             X0, [X19,#0x168]                                       ; +0x30, 0x1002f147c\nLDR             X8, [X0]                                               ; +0x34, 0x1002f1480\nLDR             X8, [X8,#0xC0]                                         ; +0x38, 0x1002f1484\nBLR             X8                                                     ; +0x3c, 0x1002f1488\nMOV             X21, X0                                                ; +0x40, 0x1002f148c\nLDR             X0, [X19,#0x168]                                       ; +0x44, 0x1002f1490\nLDR             X8, [X0]                                               ; +0x48, 0x1002f1494\nLDR             X8, [X8,#0x138]                                        ; +0x4c, 0x1002f1498\nBLR             X8                                                     ; +0x50, 0x1002f149c\nLDR             S8, [X0]                                               ; +0x54, 0x1002f14a0\nLDR             X0, [X19,#0x168]                                       ; +0x58, 0x1002f14a4\nLDR             X8, [X0]                                               ; +0x5c, 0x1002f14a8\nLDR             X8, [X8,#0xA8]                                         ; +0x60, 0x1002f14ac\nBLR             X8                                                     ; +0x64, 0x1002f14b0\nFMOV            S1, #12.0                                              ; +0x68, 0x1002f14b4\nB               loc_1002F1520                                          ; +0x6c, 0x1002f14b8\nLDR             X0, [X19,#0x1A0]                                       ; +0x70, 0x1002f14bc\nLDR             X8, [X0]                                               ; +0x74, 0x1002f14c0\nLDR             X2, [X8,#0x148]                                        ; +0x78, 0x1002f14c4\nMOV             W1, #1                                                 ; +0x7c, 0x1002f14c8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x80, 0x1002f14cc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x84, 0x1002f14d0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x88, 0x1002f14d4\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x8c, 0x1002f14d8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x90, 0x1002f14dc\nBR              X2                                                     ; +0x94, 0x1002f14e0\nLDR             X0, [X19,#0x160]                                       ; +0x98, 0x1002f14e4\nLDR             X8, [X0]                                               ; +0x9c, 0x1002f14e8\nLDR             X8, [X8,#0xC0]                                         ; +0xa0, 0x1002f14ec\nBLR             X8                                                     ; +0xa4, 0x1002f14f0\nMOV             X21, X0                                                ; +0xa8, 0x1002f14f4\nLDR             X0, [X19,#0x160]                                       ; +0xac, 0x1002f14f8\nLDR             X8, [X0]                                               ; +0xb0, 0x1002f14fc\nLDR             X8, [X8,#0x138]                                        ; +0xb4, 0x1002f1500\nBLR             X8                                                     ; +0xb8, 0x1002f1504\nLDR             S8, [X0]                                               ; +0xbc, 0x1002f1508\nLDR             X0, [X19,#0x160]                                       ; +0xc0, 0x1002f150c\nLDR             X8, [X0]                                               ; +0xc4, 0x1002f1510\nLDR             X8, [X8,#0xA8]                                         ; +0xc8, 0x1002f1514\nBLR             X8                                                     ; +0xcc, 0x1002f1518\nFMOV            S1, #14.0                                              ; +0xd0, 0x1002f151c\nFMADD           S0, S8, S0, S1                                         ; +0xd4, 0x1002f1520\nMOV             X0, SP                                                 ; +0xd8, 0x1002f1524\nFMOV            S1, WZR                                                ; +0xdc, 0x1002f1528\nBL              sub_100022980                                          ; +0xe0, 0x1002f152c\nADD             X8, SP, #0x40+var_38                                   ; +0xe4, 0x1002f1530\nMOV             X1, SP                                                 ; +0xe8, 0x1002f1534\nMOV             X0, X21                                                ; +0xec, 0x1002f1538\nBL              sub_1000229DC                                          ; +0xf0, 0x1002f153c\nLDR             X8, [X20]                                              ; +0xf4, 0x1002f1540\nLDR             X8, [X8,#0xB8]                                         ; +0xf8, 0x1002f1544\nADD             X1, SP, #0x40+var_38                                   ; +0xfc, 0x1002f1548\nMOV             X0, X20                                                ; +0x100, 0x1002f154c\nBLR             X8                                                     ; +0x104, 0x1002f1550\nLDR             X0, [X19,#0x1B0]                                       ; +0x108, 0x1002f1554\nBL              cocos2d__CCNode__stopAllActions                        ; +0x10c, 0x1002f1558\nLDR             X0, [X19,#0x1B0]                                       ; +0x110, 0x1002f155c\nLDR             X8, [X0]                                               ; +0x114, 0x1002f1560\nLDR             X8, [X8,#0x380]                                        ; +0x118, 0x1002f1564\nMOV             W1, #0x19                                              ; +0x11c, 0x1002f1568\nBLR             X8                                                     ; +0x120, 0x1002f156c\nLDR             X20, [X19,#0x1B0]                                      ; +0x124, 0x1002f1570\nADRP            X8, #dword_10063536C@PAGE                              ; +0x128, 0x1002f1574\nLDR             S0, [X8,#dword_10063536C@PAGEOFF]                      ; +0x12c, 0x1002f1578\nMOV             W0, #0xAF                                              ; +0x130, 0x1002f157c\nBL              cocos2d__CCFadeTo__create                              ; +0x134, 0x1002f1580\nMOV             X1, X0                                                 ; +0x138, 0x1002f1584\nMOV             X0, X20                                                ; +0x13c, 0x1002f1588\nBL              cocos2d__CCNode__runAction                             ; +0x140, 0x1002f158c\nLDR             X0, [X19,#0x1B0]                                       ; +0x144, 0x1002f1590\nLDR             X8, [X0]                                               ; +0x148, 0x1002f1594\nLDR             X8, [X8,#0x148]                                        ; +0x14c, 0x1002f1598\nMOV             W1, #1                                                 ; +0x150, 0x1002f159c\nBLR             X8                                                     ; +0x154, 0x1002f15a0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x158, 0x1002f15a4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x15c, 0x1002f15a8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x160, 0x1002f15ac\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x164, 0x1002f15b0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x168, 0x1002f15b4\nRET                                                                    ; +0x16c, 0x1002f15b8", "xrefs": ["CustomSFXWidget::onDownload @ 0x1002f097c", "CustomSFXWidget::startMonitorDownload @ 0x1002f1318"], "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"}