{"type": "func", "start": 5692612, "end": 5692868, "name": "CustomSFXWidget::showLoadingArt", "pseudocode": "// \n// CustomSFXWidget::showLoadingArt from 0x56dcc4 to 0x56ddc4 (256 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0x56deba\n// > CustomSFXWidget::onDownload @ 0x56df48\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 CustomSFXWidget::showLoadingArt(CustomSFXWidget *a1)\n{\n  cocos2d::CCSprite *m_clockSprite; // r6\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9\n  const cocos2d::CCPoint *v4; // r10\n  float width; // s16\n  float v6; // r0\n  float v7; // s15\n  cocos2d::CCSprite *v8; // r5\n  cocos2d::CCFadeTo *v9; // r0\n  cocos2d::CCSprite *m_progressOutlineSprite; // r0\n  cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF\n\n  m_clockSprite = a1->m_clockSprite;\n  if ( m_clockSprite )\n  {\n    setPosition = m_clockSprite->setPosition;\n    if ( a1->m_compactMode )\n    {\n      v4 = a1->m_idLabel->getPosition(a1->m_idLabel);\n      width = a1->m_idLabel->getContentSize(a1->m_idLabel)->width;\n      v6 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_idLabel->getScale)(a1->m_idLabel));\n      v7 = 12.0;\n    }\n    else\n    {\n      v4 = a1->m_titleLabel->getPosition(a1->m_titleLabel);\n      width = a1->m_titleLabel->getContentSize(a1->m_titleLabel)->width;\n      v6 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_titleLabel->getScale)(a1->m_titleLabel));\n      v7 = 14.0;\n    }\n    cocos2d::CCPoint::CCPoint(&v11, v7 + (float)(width * v6), 0.0);\n    cocos2d::CCPoint::operator+(&v12, v4, &v11);\n    setPosition(m_clockSprite, &v12);\n    cocos2d::CCNode::stopAllActions(a1->m_clockSprite);\n    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    m_progressOutlineSprite = a1->m_clockSprite;\n  }\n  else\n  {\n    m_progressOutlineSprite = a1->m_progressOutlineSprite;\n  }\n  m_progressOutlineSprite->setVisible(m_progressOutlineSprite, 1);\n}", "assembly": "; \n; CustomSFXWidget::showLoadingArt from 0x56dcc4 to 0x56ddc4 (256 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0x56deba\n; > CustomSFXWidget::onDownload @ 0x56df48\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x56DCCE)                ; +0x0, 0x56dcc4\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x56dcc6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x56dcca\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x56dccc\nVPUSH           {D8}                                                   ; +0xa, 0x56dcce\nMOV             R4, R0                                                 ; +0xe, 0x56dcd2\nLDR             R2, [R3]                                               ; +0x10, 0x56dcd4\nMOV             R8, R3                                                 ; +0x12, 0x56dcd6\nLDR.W           R6, [R0,#0x140]                                        ; +0x14, 0x56dcd8\nSUB             SP, SP, #0x18                                          ; +0x18, 0x56dcdc\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x1a, 0x56dcde\nCMP             R6, #0                                                 ; +0x1c, 0x56dce0\nBEQ             loc_56DD9E                                             ; +0x1e, 0x56dce2\nLDR             R3, [R6]                                               ; +0x20, 0x56dce4\nADD             R7, SP, #0x18+var_14                                   ; +0x22, 0x56dce6\nLDRB.W          R2, [R0,#0x14C]                                        ; +0x24, 0x56dce8\nADD             R5, SP, #0x18+var_C                                    ; +0x28, 0x56dcec\nLDR.W           R9, [R3,#0x5C]                                         ; +0x2a, 0x56dcee\nCBZ             R2, loc_56DD20                                         ; +0x2e, 0x56dcf2\nLDR.W           R0, [R0,#0x11C]                                        ; +0x30, 0x56dcf4\nLDR             R3, [R0]                                               ; +0x34, 0x56dcf8\nLDR             R3, [R3,#0x60]                                         ; +0x36, 0x56dcfa\nBLX             R3                                                     ; +0x38, 0x56dcfc\nMOV             R10, R0                                                ; +0x3a, 0x56dcfe\nLDR.W           R0, [R4,#0x11C]                                        ; +0x3c, 0x56dd00\nLDR             R3, [R0]                                               ; +0x40, 0x56dd04\nLDR.W           R3, [R3,#0x9C]                                         ; +0x42, 0x56dd06\nBLX             R3                                                     ; +0x46, 0x56dd0a\nVLDR            S16, [R0]                                              ; +0x48, 0x56dd0c\nLDR.W           R0, [R4,#0x11C]                                        ; +0x4c, 0x56dd10\nLDR             R3, [R0]                                               ; +0x50, 0x56dd14\nLDR             R3, [R3,#0x54]                                         ; +0x52, 0x56dd16\nBLX             R3                                                     ; +0x54, 0x56dd18\nVMOV.F32        S15, #12.0                                             ; +0x56, 0x56dd1a\nB               loc_56DD4A                                             ; +0x5a, 0x56dd1e\nLDR.W           R0, [R0,#0x118]                                        ; +0x5c, 0x56dd20\nLDR             R3, [R0]                                               ; +0x60, 0x56dd24\nLDR             R3, [R3,#0x60]                                         ; +0x62, 0x56dd26\nBLX             R3                                                     ; +0x64, 0x56dd28\nMOV             R10, R0                                                ; +0x66, 0x56dd2a\nLDR.W           R0, [R4,#0x118]                                        ; +0x68, 0x56dd2c\nLDR             R3, [R0]                                               ; +0x6c, 0x56dd30\nLDR.W           R3, [R3,#0x9C]                                         ; +0x6e, 0x56dd32\nBLX             R3                                                     ; +0x72, 0x56dd36\nVLDR            S16, [R0]                                              ; +0x74, 0x56dd38\nLDR.W           R0, [R4,#0x118]                                        ; +0x78, 0x56dd3c\nLDR             R3, [R0]                                               ; +0x7c, 0x56dd40\nLDR             R3, [R3,#0x54]                                         ; +0x7e, 0x56dd42\nBLX             R3                                                     ; +0x80, 0x56dd44\nVMOV.F32        S15, #14.0                                             ; +0x82, 0x56dd46\nVMOV            S14, R0                                                ; +0x86, 0x56dd4a\nMOVS            R2, #0; float                                          ; +0x8a, 0x56dd4e\nMOV             R0, R7; this                                           ; +0x8c, 0x56dd50\nVMLA.F32        S15, S16, S14                                          ; +0x8e, 0x56dd52\nVMOV            R1, S15; float                                         ; +0x92, 0x56dd56\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x96, 0x56dd5a\nMOV             R2, R7                                                 ; +0x9a, 0x56dd5e\nMOV             R0, R5                                                 ; +0x9c, 0x56dd60\nMOV             R1, R10                                                ; +0x9e, 0x56dd62\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xa0, 0x56dd64\nMOV             R1, R5                                                 ; +0xa4, 0x56dd68\nMOV             R0, R6                                                 ; +0xa6, 0x56dd6a\nBLX             R9                                                     ; +0xa8, 0x56dd6c\nLDR.W           R0, [R4,#0x140]; this                                  ; +0xaa, 0x56dd6e\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0xae, 0x56dd72\nLDR.W           R0, [R4,#0x140]                                        ; +0xb2, 0x56dd76\nMOVS            R1, #0x19                                              ; +0xb6, 0x56dd7a\nLDR             R3, [R0]                                               ; +0xb8, 0x56dd7c\nLDR.W           R3, [R3,#0x1C0]                                        ; +0xba, 0x56dd7e\nBLX             R3                                                     ; +0xbe, 0x56dd82\nMOVS            R1, #0xAF; float                                       ; +0xc0, 0x56dd84\nLDR             R0, =0x3E4CCCCD; this                                  ; +0xc2, 0x56dd86\nLDR.W           R5, [R4,#0x140]                                        ; +0xc4, 0x56dd88\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xc8, 0x56dd8c\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xcc, 0x56dd90\nMOV             R0, R5; this                                           ; +0xce, 0x56dd92\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd0, 0x56dd94\nLDR.W           R0, [R4,#0x140]                                        ; +0xd4, 0x56dd98\nB               loc_56DDA2                                             ; +0xd8, 0x56dd9c\nLDR.W           R0, [R0,#0x138]                                        ; +0xda, 0x56dd9e\nLDR             R3, [R0]                                               ; +0xde, 0x56dda2\nMOVS            R1, #1                                                 ; +0xe0, 0x56dda4\nLDR.W           R3, [R3,#0xA4]                                         ; +0xe2, 0x56dda6\nBLX             R3                                                     ; +0xe6, 0x56ddaa\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xe8, 0x56ddac\nLDR.W           R3, [R8]                                               ; +0xea, 0x56ddae\nCMP             R2, R3                                                 ; +0xee, 0x56ddb2\nBEQ             loc_56DDBA                                             ; +0xf0, 0x56ddb4\nBLX             __stack_chk_fail                                       ; +0xf2, 0x56ddb6\nADD             SP, SP, #0x18                                          ; +0xf6, 0x56ddba\nVPOP            {D8}                                                   ; +0xf8, 0x56ddbc\nPOP.W           {R4-R10,PC}                                            ; +0xfc, 0x56ddc0", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0x56deba", "CustomSFXWidget::onDownload @ 0x56df48"], "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"}