{"type": "func", "start": 4296152164, "end": 4296152468, "name": "CustomSongWidget::addExtraVisuals", "pseudocode": "// \n// CustomSongWidget::addExtraVisuals from 0x100121464 to 0x100121594 (304 bytes)\n// \n// 1 xrefs:\n// > CustomMusicCell::loadFromObject @ 0x1001275f8\n// \n// This function is hookable on this platform (idp: arm, 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 10:59:15 +0000\n// \n\n__int64 __fastcall CustomSongWidget::addExtraVisuals(__int64 result, char a2, int a3)\n{\n  __int64 v4; // x19\n  const char *v5; // x0\n  __int64 v6; // x21\n  __int64 v7; // x20\n  float v8[4]; // [xsp+0h] [xbp-30h] BYREF\n\n  v4 = result;\n  if ( (a2 & 1) != 0 || a3 )\n  {\n    if ( a3 )\n      v5 = \"newMusicIcon2_001.png\";\n    else\n      v5 = \"newMusicIcon_001.png\";\n    v6 = cocos2d::CCSprite::createWithSpriteFrameName(v5);\n    (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, v6, 4);\n    sub_1000262BC(v8, -157.0, 20.0);\n    result = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v8);\n    if ( a3 )\n    {\n      sub_1000262CC(v8, 0.0, 0.0, 80.0, 80.0);\n      v7 = cocos2d::extension::CCScale9Sprite::create(\"GJ_square07.png\", v8);\n      BYTE2(v8[0]) = -1;\n      LOWORD(v8[0]) = -256;\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 960LL))(v7, v8);\n      sub_1000262C4(v8, 320.0, 50.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 320LL))(v7, v8);\n      return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, v7, 0xFFFFFFFFLL);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::addExtraVisuals from 0x100121464 to 0x100121594 (304 bytes)\n; \n; 1 xrefs:\n; > CustomMusicCell::loadFromObject @ 0x1001275f8\n; \n; This function is hookable on this platform (idp: arm, 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 10:59:15 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100121464\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100121468\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10012146c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100121470\nADD             X29, SP, #0x30                                         ; +0x10, 0x100121474\nMOV             X20, X2                                                ; +0x14, 0x100121478\nMOV             X19, X0                                                ; +0x18, 0x10012147c\nTBNZ            W1, #0, loc_100121488                                  ; +0x1c, 0x100121480\nCBZ             W20, loc_100121580                                     ; +0x20, 0x100121484\nADRL            X8, aNewmusicicon00; \"newMusicIcon_001.png\"            ; +0x24, 0x100121488\nADRL            X9, aNewmusicicon20; \"newMusicIcon2_001.png\"           ; +0x2c, 0x100121490\nCMP             W20, #0                                                ; +0x34, 0x100121498\nCSEL            X0, X9, X8, NE                                         ; +0x38, 0x10012149c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x3c, 0x1001214a0\nMOV             X21, X0                                                ; +0x40, 0x1001214a4\nLDR             X8, [X19]                                              ; +0x44, 0x1001214a8\nLDR             X8, [X8,#0x1D0]                                        ; +0x48, 0x1001214ac\nMOV             X0, X19                                                ; +0x4c, 0x1001214b0\nMOV             X1, X21                                                ; +0x50, 0x1001214b4\nMOV             W2, #4                                                 ; +0x54, 0x1001214b8\nBLR             X8                                                     ; +0x58, 0x1001214bc\nMOV             W8, #0xC31D0000                                        ; +0x5c, 0x1001214c0\nFMOV            S0, W8                                                 ; +0x60, 0x1001214c4\nMOV             X0, SP                                                 ; +0x64, 0x1001214c8\nFMOV            S1, #20.0                                              ; +0x68, 0x1001214cc\nBL              sub_1000262BC                                          ; +0x6c, 0x1001214d0\nLDR             X8, [X21]                                              ; +0x70, 0x1001214d4\nLDR             X8, [X8,#0xB8]                                         ; +0x74, 0x1001214d8\nMOV             X1, SP                                                 ; +0x78, 0x1001214dc\nMOV             X0, X21                                                ; +0x7c, 0x1001214e0\nBLR             X8                                                     ; +0x80, 0x1001214e4\nCBZ             W20, loc_100121580                                     ; +0x84, 0x1001214e8\nMOV             W8, #0x42A00000                                        ; +0x88, 0x1001214ec\nFMOV            S2, W8                                                 ; +0x8c, 0x1001214f0\nMOV             X0, SP                                                 ; +0x90, 0x1001214f4\nFMOV            S0, WZR                                                ; +0x94, 0x1001214f8\nFMOV            S1, WZR                                                ; +0x98, 0x1001214fc\nFMOV            S3, S2                                                 ; +0x9c, 0x100121500\nBL              sub_1000262CC                                          ; +0xa0, 0x100121504\nADRL            X0, aGjSquare07Png; \"GJ_square07.png\"                  ; +0xa4, 0x100121508\nMOV             X1, SP                                                 ; +0xac, 0x100121510\nBL              cocos2d__extension__CCScale9Sprite__create             ; +0xb0, 0x100121514\nMOV             X20, X0                                                ; +0xb4, 0x100121518\nMOV             W8, #0xFF                                              ; +0xb8, 0x10012151c\nSTRB            W8, [SP,#0x30+var_2E]                                  ; +0xbc, 0x100121520\nMOV             W8, #0xFF00                                            ; +0xc0, 0x100121524\nSTRH            W8, [SP,#0x30+var_30]                                  ; +0xc4, 0x100121528\nLDR             X8, [X0]                                               ; +0xc8, 0x10012152c\nLDR             X8, [X8,#0x3C0]                                        ; +0xcc, 0x100121530\nMOV             X1, SP                                                 ; +0xd0, 0x100121534\nBLR             X8                                                     ; +0xd4, 0x100121538\nMOV             W8, #0x43A00000                                        ; +0xd8, 0x10012153c\nFMOV            S0, W8                                                 ; +0xdc, 0x100121540\nMOV             W8, #0x42480000                                        ; +0xe0, 0x100121544\nFMOV            S1, W8                                                 ; +0xe4, 0x100121548\nMOV             X0, SP                                                 ; +0xe8, 0x10012154c\nBL              sub_1000262C4                                          ; +0xec, 0x100121550\nLDR             X8, [X20]                                              ; +0xf0, 0x100121554\nLDR             X8, [X8,#0x140]                                        ; +0xf4, 0x100121558\nMOV             X1, SP                                                 ; +0xf8, 0x10012155c\nMOV             X0, X20                                                ; +0xfc, 0x100121560\nBLR             X8                                                     ; +0x100, 0x100121564\nLDR             X8, [X19]                                              ; +0x104, 0x100121568\nLDR             X8, [X8,#0x1D0]                                        ; +0x108, 0x10012156c\nMOV             X0, X19                                                ; +0x10c, 0x100121570\nMOV             X1, X20                                                ; +0x110, 0x100121574\nMOV             W2, #0xFFFFFFFF                                        ; +0x114, 0x100121578\nBLR             X8                                                     ; +0x118, 0x10012157c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x11c, 0x100121580\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x120, 0x100121584\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x124, 0x100121588\nADD             SP, SP, #0x40 ; '@'                                    ; +0x128, 0x10012158c\nRET                                                                    ; +0x12c, 0x100121590", "xrefs": ["CustomMusicCell::loadFromObject @ 0x1001275f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}