{"type": "func", "start": 4296025004, "end": 4296025132, "name": "CustomSongCell::updateBGColor", "pseudocode": "// \n// CustomSongCell::updateBGColor from 0x1001023ac to 0x10010242c (128 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x100101234\n// > CustomListView::reloadAll @ 0x10010bd24\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 __fastcall CustomSongCell::updateBGColor(CustomSongCell *a1, int a2)\n{\n  cocos2d::CCLayerColor *m_backgroundLayer; // x0\n  _WORD v4[4]; // [xsp+8h] [xbp-18h] BYREF\n\n  m_backgroundLayer = a1->m_backgroundLayer;\n  if ( (a2 & 1) != 0 )\n    memset(&v4[2], 50, 3);\n  else\n    memset(v4, 75, 3);\n  ((void (*)(void))m_backgroundLayer->setColor)();\n  ((void (__fastcall *)(cocos2d::CCLayerColor *, __int64))a1->m_backgroundLayer->setOpacity)(a1->m_backgroundLayer, 255);\n}", "assembly": "; \n; CustomSongCell::updateBGColor from 0x1001023ac to 0x10010242c (128 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x100101234\n; > CustomListView::reloadAll @ 0x10010bd24\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1001023ac\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001023b0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001023b4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001023b8\nMOV             X19, X0                                                ; +0x10, 0x1001023bc\nLDR             X0, [X0,#0x210]                                        ; +0x14, 0x1001023c0\nTBNZ            W1, #0, loc_1001023E8                                  ; +0x18, 0x1001023c4\nMOV             W8, #0x4B ; 'K'                                        ; +0x1c, 0x1001023c8\nSTRB            W8, [SP,#0x20+var_16]                                  ; +0x20, 0x1001023cc\nMOV             W8, #0x4B4B                                            ; +0x24, 0x1001023d0\nSTRH            W8, [SP,#0x20+var_18]                                  ; +0x28, 0x1001023d4\nLDR             X8, [X0]                                               ; +0x2c, 0x1001023d8\nLDR             X8, [X8,#0x4B0]                                        ; +0x30, 0x1001023dc\nADD             X1, SP, #0x20+var_18                                   ; +0x34, 0x1001023e0\nB               loc_100102404                                          ; +0x38, 0x1001023e4\nMOV             W8, #0x32 ; '2'                                        ; +0x3c, 0x1001023e8\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x40, 0x1001023ec\nMOV             W8, #0x3232                                            ; +0x44, 0x1001023f0\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x48, 0x1001023f4\nLDR             X8, [X0]                                               ; +0x4c, 0x1001023f8\nLDR             X8, [X8,#0x4B0]                                        ; +0x50, 0x1001023fc\nADD             X1, SP, #0x20+var_14                                   ; +0x54, 0x100102400\nBLR             X8                                                     ; +0x58, 0x100102404\nLDR             X0, [X19,#0x210]                                       ; +0x5c, 0x100102408\nLDR             X8, [X0]                                               ; +0x60, 0x10010240c\nLDR             X8, [X8,#0x480]                                        ; +0x64, 0x100102410\nMOV             W1, #0xFF                                              ; +0x68, 0x100102414\nBLR             X8                                                     ; +0x6c, 0x100102418\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10010241c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100102420\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x100102424\nRET                                                                    ; +0x7c, 0x100102428", "xrefs": ["CustomListView::loadCell @ 0x100101234", "CustomListView::reloadAll @ 0x10010bd24"], "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"}