{"type": "func", "start": 5120968, "end": 5121170, "name": "CustomSongWidget::addExtraVisuals", "pseudocode": "// \n// CustomSongWidget::addExtraVisuals from 0x4e23c8 to 0x4e2492 (202 bytes)\n// \n// 1 xrefs:\n// > CustomMusicCell::loadFromObject @ 0x425cfc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:02 +0000\n// \n\nint __fastcall CustomSongWidget::addExtraVisuals(int this, const char *a2, int a3)\n{\n  int v4; // r7\n  char *v5; // r0\n  int v6; // r8\n  int (__fastcall *v7)(int, _BYTE *); // r9\n  int v8; // r5\n  void (__fastcall *v9)(int, _BYTE *); // r2\n  void (__fastcall *v10)(int, _BYTE *); // r8\n  _BYTE v11[16]; // [sp+Ch] [bp-18h] BYREF\n\n  v4 = this;\n  if ( a2 )\n  {\n    if ( a3 )\n      v5 = \"newMusicIcon2_001.png\";\n    else\n      v5 = \"newMusicIcon_001.png\";\n  }\n  else\n  {\n    if ( !a3 )\n      return this;\n    v5 = \"newMusicIcon2_001.png\";\n  }\n  v6 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v5, a2);\n  (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v4 + 232))(v4, v6, 4);\n  v7 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -157.0, 20.0);\n  this = v7(v6, v11);\n  if ( a3 )\n  {\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, 0.0, 0.0, 80.0, 80.0);\n    v8 = cocos2d::extension::CCScale9Sprite::create(\"GJ_square07.png\", v11);\n    v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 480);\n    v11[0] = 0;\n    v11[1] = -1;\n    v11[2] = -1;\n    v9(v8, v11);\n    v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 160);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11, 320.0, 50.0);\n    v10(v8, v11);\n    return (*(int (__fastcall **)(int, int, int))(*(_DWORD *)v4 + 232))(v4, v8, -1);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::addExtraVisuals from 0x4e23c8 to 0x4e2492 (202 bytes)\n; \n; 1 xrefs:\n; > CustomMusicCell::loadFromObject @ 0x425cfc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:02 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E23D2)                ; +0x0, 0x4e23c8\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x4e23ca\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4e23ce\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4e23d0\nMOV             R5, R2                                                 ; +0xa, 0x4e23d2\nSUB             SP, SP, #0x24                                          ; +0xc, 0x4e23d4\nLDR             R2, [R3]                                               ; +0xe, 0x4e23d6\nMOV             R7, R0                                                 ; +0x10, 0x4e23d8\nMOV             R6, R3                                                 ; +0x12, 0x4e23da\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x14, 0x4e23dc\nCBNZ            R1, loc_4E23EA                                         ; +0x16, 0x4e23de\nCMP             R5, #0                                                 ; +0x18, 0x4e23e0\nBEQ             loc_4E2480                                             ; +0x1a, 0x4e23e2\nLDR             R0, =(aNewmusicicon20 - 0x4E23EA); \"newMusicIcon2_001.png\" ; +0x1c, 0x4e23e4\nADD             R0, PC; \"newMusicIcon2_001.png\"                        ; +0x1e, 0x4e23e6\nB               loc_4E23F6                                             ; +0x20, 0x4e23e8\nCBZ             R5, loc_4E23F2                                         ; +0x22, 0x4e23ea\nLDR             R0, =(aNewmusicicon20 - 0x4E23F2); \"newMusicIcon2_001.png\" ; +0x24, 0x4e23ec\nADD             R0, PC; \"newMusicIcon2_001.png\"                        ; +0x26, 0x4e23ee\nB               loc_4E23F6                                             ; +0x28, 0x4e23f0\nLDR             R0, =(aNewmusicicon00 - 0x4E23F8); \"newMusicIcon_001.png\" ; +0x2a, 0x4e23f2\nADD             R0, PC; \"newMusicIcon_001.png\"                         ; +0x2c, 0x4e23f4\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x2e, 0x4e23f6\nLDR             R3, [R7]                                               ; +0x32, 0x4e23fa\nMOVS            R2, #4                                                 ; +0x34, 0x4e23fc\nADD             R4, SP, #0x24+var_18                                   ; +0x36, 0x4e23fe\nLDR.W           R3, [R3,#0xE8]                                         ; +0x38, 0x4e2400\nMOV             R8, R0                                                 ; +0x3c, 0x4e2404\nMOV             R0, R7                                                 ; +0x3e, 0x4e2406\nMOV             R1, R8                                                 ; +0x40, 0x4e2408\nBLX             R3                                                     ; +0x42, 0x4e240a\nLDR.W           R3, [R8]                                               ; +0x44, 0x4e240c\nLDR             R1, flt_4E2494; float                                  ; +0x48, 0x4e2410\nMOV             R0, R4; this                                           ; +0x4a, 0x4e2412\nLDR             R2, flt_4E2498; float                                  ; +0x4c, 0x4e2414\nLDR.W           R9, [R3,#0x5C]                                         ; +0x4e, 0x4e2416\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x52, 0x4e241a\nMOV             R0, R8                                                 ; +0x56, 0x4e241e\nMOV             R1, R4                                                 ; +0x58, 0x4e2420\nBLX             R9                                                     ; +0x5a, 0x4e2422\nCBZ             R5, loc_4E2480                                         ; +0x5c, 0x4e2424\nLDR             R3, flt_4E249C; float                                  ; +0x5e, 0x4e2426\nMOVS            R1, #0; float                                          ; +0x60, 0x4e2428\nMOV             R2, R1; float                                          ; +0x62, 0x4e242a\nMOV             R0, R4; this                                           ; +0x64, 0x4e242c\nSTR             R3, [SP,#0x24+var_24]; float                           ; +0x66, 0x4e242e\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x68, 0x4e2430\nLDR             R0, =(aGjSquare07Png - 0x4E243C); \"GJ_square07.png\"    ; +0x6c, 0x4e2434\nMOV             R1, R4                                                 ; +0x6e, 0x4e2436\nADD             R0, PC; \"GJ_square07.png\"                              ; +0x70, 0x4e2438\nBL              _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x72, 0x4e243a\nMOV             R1, R4                                                 ; +0x76, 0x4e243e\nLDR             R3, [R0]                                               ; +0x78, 0x4e2440\nMOV             R5, R0                                                 ; +0x7a, 0x4e2442\nLDR.W           R2, [R3,#0x1E0]                                        ; +0x7c, 0x4e2444\nMOVS            R3, #0                                                 ; +0x80, 0x4e2448\nSTRB.W          R3, [SP,#0x24+var_18]                                  ; +0x82, 0x4e244a\nMOVS            R3, #0xFF                                              ; +0x86, 0x4e244e\nSTRB.W          R3, [SP,#0x24+var_17]                                  ; +0x88, 0x4e2450\nSTRB.W          R3, [SP,#0x24+var_16]                                  ; +0x8c, 0x4e2454\nBLX             R2                                                     ; +0x90, 0x4e2458\nLDR             R3, [R5]                                               ; +0x92, 0x4e245a\nLDR             R2, flt_4E24A0; float                                  ; +0x94, 0x4e245c\nMOV             R0, R4; this                                           ; +0x96, 0x4e245e\nLDR             R1, flt_4E24A4; float                                  ; +0x98, 0x4e2460\nLDR.W           R8, [R3,#0xA0]                                         ; +0x9a, 0x4e2462\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x9e, 0x4e2466\nMOV             R0, R5                                                 ; +0xa2, 0x4e246a\nMOV             R1, R4                                                 ; +0xa4, 0x4e246c\nBLX             R8                                                     ; +0xa6, 0x4e246e\nLDR             R3, [R7]                                               ; +0xa8, 0x4e2470\nMOV             R0, R7                                                 ; +0xaa, 0x4e2472\nMOV             R1, R5                                                 ; +0xac, 0x4e2474\nMOV.W           R2, #0xFFFFFFFF                                        ; +0xae, 0x4e2476\nLDR.W           R3, [R3,#0xE8]                                         ; +0xb2, 0x4e247a\nBLX             R3                                                     ; +0xb6, 0x4e247e\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xb8, 0x4e2480\nLDR             R3, [R6]                                               ; +0xba, 0x4e2482\nCMP             R2, R3                                                 ; +0xbc, 0x4e2484\nBEQ             loc_4E248C                                             ; +0xbe, 0x4e2486\nBLX             __stack_chk_fail                                       ; +0xc0, 0x4e2488\nADD             SP, SP, #0x24 ; '$'                                    ; +0xc4, 0x4e248c\nPOP.W           {R4-R9,PC}                                             ; +0xc6, 0x4e248e", "xrefs": ["CustomMusicCell::loadFromObject @ 0x425cfc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}