{"type": "func", "start": 3364344, "end": 3364426, "name": "CustomMusicCell::updateBGColor", "pseudocode": "// \n// CustomMusicCell::updateBGColor from 0x3355f8 to 0x33564a (82 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bb82\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 CustomMusicCell::updateBGColor(CustomMusicCell *a1, int a2)\n{\n  cocos2d::CCLayerColor *m_backgroundLayer; // r0\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r2\n  char v5; // r3\n  _DWORD v6[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v6[0] = a1;\n  v6[1] = a2;\n  m_backgroundLayer = a1->m_backgroundLayer;\n  setColor = m_backgroundLayer->setColor;\n  if ( (a2 & 1) != 0 )\n    v5 = 50;\n  else\n    v5 = 75;\n  LOBYTE(v6[0]) = v5;\n  BYTE1(v6[0]) = v5;\n  BYTE2(v6[0]) = v5;\n  ((void (__fastcall *)(cocos2d::CCLayerColor *, _DWORD *, void (__fastcall *)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *)))setColor)(\n    m_backgroundLayer,\n    v6,\n    setColor);\n  a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 255);\n}", "assembly": "; \n; CustomMusicCell::updateBGColor from 0x3355f8 to 0x33564a (82 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bb82\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 - 0x335604)                ; +0x0, 0x3355f8\nTST.W           R1, #1                                                 ; +0x2, 0x3355fa\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x6, 0x3355fe\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x335600\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x335602\nMOV             R5, R0                                                 ; +0xc, 0x335604\nLDR.W           R0, [R0,#0x190]                                        ; +0xe, 0x335606\nLDR             R2, [R3]                                               ; +0x12, 0x33560a\nMOV             R4, R3                                                 ; +0x14, 0x33560c\nMOV             R1, SP                                                 ; +0x16, 0x33560e\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x18, 0x335610\nLDR             R3, [R0]                                               ; +0x1a, 0x335612\nLDR.W           R2, [R3,#0x258]                                        ; +0x1c, 0x335614\nITE NE                                                                 ; +0x20, 0x335618\nMOVNE           R3, #0x32 ; '2'                                        ; +0x22, 0x33561a\nMOVEQ           R3, #0x4B ; 'K'                                        ; +0x24, 0x33561c\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x26, 0x33561e\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x2a, 0x335622\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x2e, 0x335626\nBLX             R2                                                     ; +0x32, 0x33562a\nLDR.W           R0, [R5,#0x190]                                        ; +0x34, 0x33562c\nMOVS            R1, #0xFF                                              ; +0x38, 0x335630\nLDR             R3, [R0]                                               ; +0x3a, 0x335632\nLDR.W           R3, [R3,#0x240]                                        ; +0x3c, 0x335634\nBLX             R3                                                     ; +0x40, 0x335638\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x42, 0x33563a\nLDR             R3, [R4]                                               ; +0x44, 0x33563c\nCMP             R2, R3                                                 ; +0x46, 0x33563e\nBEQ             loc_335646                                             ; +0x48, 0x335640\nBLX             __stack_chk_fail                                       ; +0x4a, 0x335642\nADD             SP, SP, #0xC                                           ; +0x4e, 0x335646\nPOP             {R4,R5,PC}                                             ; +0x50, 0x335648", "xrefs": ["CustomListView::loadCell @ 0x33bb82"], "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"}