{"type": "func", "start": 3363420, "end": 3363502, "name": "CustomSongCell::updateBGColor", "pseudocode": "// \n// CustomSongCell::updateBGColor from 0x33525c to 0x3352ae (82 bytes)\n// \n// 2 xrefs:\n// > CustomListView::reloadAll @ 0x33a680\n// > CustomListView::loadCell @ 0x33bb64\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 CustomSongCell::updateBGColor(CustomSongCell *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; CustomSongCell::updateBGColor from 0x33525c to 0x3352ae (82 bytes)\n; \n; 2 xrefs:\n; > CustomListView::reloadAll @ 0x33a680\n; > CustomListView::loadCell @ 0x33bb64\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 - 0x335268)                ; +0x0, 0x33525c\nTST.W           R1, #1                                                 ; +0x2, 0x33525e\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x6, 0x335262\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x335264\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x335266\nMOV             R5, R0                                                 ; +0xc, 0x335268\nLDR.W           R0, [R0,#0x190]                                        ; +0xe, 0x33526a\nLDR             R2, [R3]                                               ; +0x12, 0x33526e\nMOV             R4, R3                                                 ; +0x14, 0x335270\nMOV             R1, SP                                                 ; +0x16, 0x335272\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x18, 0x335274\nLDR             R3, [R0]                                               ; +0x1a, 0x335276\nLDR.W           R2, [R3,#0x258]                                        ; +0x1c, 0x335278\nITE NE                                                                 ; +0x20, 0x33527c\nMOVNE           R3, #0x32 ; '2'                                        ; +0x22, 0x33527e\nMOVEQ           R3, #0x4B ; 'K'                                        ; +0x24, 0x335280\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x26, 0x335282\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x2a, 0x335286\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x2e, 0x33528a\nBLX             R2                                                     ; +0x32, 0x33528e\nLDR.W           R0, [R5,#0x190]                                        ; +0x34, 0x335290\nMOVS            R1, #0xFF                                              ; +0x38, 0x335294\nLDR             R3, [R0]                                               ; +0x3a, 0x335296\nLDR.W           R3, [R3,#0x240]                                        ; +0x3c, 0x335298\nBLX             R3                                                     ; +0x40, 0x33529c\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x42, 0x33529e\nLDR             R3, [R4]                                               ; +0x44, 0x3352a0\nCMP             R2, R3                                                 ; +0x46, 0x3352a2\nBEQ             loc_3352AA                                             ; +0x48, 0x3352a4\nBLX             __stack_chk_fail                                       ; +0x4a, 0x3352a6\nADD             SP, SP, #0xC                                           ; +0x4e, 0x3352aa\nPOP             {R4,R5,PC}                                             ; +0x50, 0x3352ac", "xrefs": ["CustomListView::reloadAll @ 0x33a680", "CustomListView::loadCell @ 0x33bb64"], "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"}