{"type": "func", "start": 5369489872, "end": 5369490098, "name": "SmartTemplateCell::updateBGColor", "pseudocode": "// \n// SmartTemplateCell::updateBGColor from 0x1400be9d0 to 0x1400beab2 (226 bytes)\n// \n// 3 xrefs:\n// > CustomListView::loadCell @ 0x1400abbbf\n// > CustomListView::reloadAll @ 0x1400ac610\n// > <???> @ 0x1406c7e90\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\n// Hidden C++ exception states: #wind=2\nvoid SmartTemplateCell::updateBGColor(SmartTemplateCell *a1, int a2)\n{\n  char v2; // di\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  cocos2d::CCLayerColor **p_m_backgroundLayer; // rbx\n  __int64 v7; // rdx\n  void *v8; // [rsp+30h] [rbp+8h] BYREF\n\n  v2 = a2;\n  v4 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v4 = qword_1406C2EC0;\n  }\n  v5 = *(_QWORD *)(v4 + 960);\n  if ( v5 && *(_DWORD *)(v5 + 200) == a1->m_smartTemplate->m_nameIndex )\n  {\n    LOWORD(v8) = -26906;\n    BYTE2(v8) = 10;\n    p_m_backgroundLayer = &a1->m_backgroundLayer;\n  }\n  else\n  {\n    p_m_backgroundLayer = &a1->m_backgroundLayer;\n    if ( (v2 & 1) != 0 )\n    {\n      LOWORD(v8) = 29378;\n      BYTE2(v8) = 62;\n    }\n    else\n    {\n      LOWORD(v8) = 22689;\n      BYTE2(v8) = 44;\n    }\n  }\n  (*p_m_backgroundLayer)->setColor(&(*p_m_backgroundLayer)->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v8);\n  LOBYTE(v7) = -1;\n  (*p_m_backgroundLayer)->setOpacity(&(*p_m_backgroundLayer)->cocos2d::CCRGBAProtocol, v7);\n}", "assembly": "; \n; SmartTemplateCell::updateBGColor from 0x1400be9d0 to 0x1400beab2 (226 bytes)\n; \n; 3 xrefs:\n; > CustomListView::loadCell @ 0x1400abbbf\n; > CustomListView::reloadAll @ 0x1400ac610\n; > <???> @ 0x1406c7e90\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400be9d0\npush    rdi                                                            ; +0x5, 0x1400be9d5\nsub     rsp, 20h                                                       ; +0x6, 0x1400be9d6\nmov     edi, edx                                                       ; +0xa, 0x1400be9da\nmov     rbx, rcx                                                       ; +0xc, 0x1400be9dc\nmov     rax, cs:qword_1406C2EC0                                        ; +0xf, 0x1400be9df\ntest    rax, rax                                                       ; +0x16, 0x1400be9e6\njnz     short loc_1400BEA1A                                            ; +0x19, 0x1400be9e9\nmov     ecx, 3D0h; Size                                                ; +0x1b, 0x1400be9eb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x1400be9f0\nmov     [rsp+28h+arg_0], rax                                           ; +0x25, 0x1400be9f5\nmov     rcx, rax                                                       ; +0x2a, 0x1400be9fa\ncall    sub_140141280                                                  ; +0x2d, 0x1400be9fd\nnop                                                                    ; +0x32, 0x1400bea02\nmov     cs:qword_1406C2EC0, rax                                        ; +0x33, 0x1400bea03\nmov     rdx, [rax]                                                     ; +0x3a, 0x1400bea0a\nmov     rcx, rax                                                       ; +0x3d, 0x1400bea0d\ncall    qword ptr [rdx+48h]                                            ; +0x40, 0x1400bea10\nmov     rax, cs:qword_1406C2EC0                                        ; +0x43, 0x1400bea13\nmov     rdx, [rax+3C0h]                                                ; +0x4a, 0x1400bea1a\ntest    rdx, rdx                                                       ; +0x51, 0x1400bea21\njz      short loc_1400BEA50                                            ; +0x54, 0x1400bea24\nmov     rax, [rbx+230h]                                                ; +0x56, 0x1400bea26\nmov     ecx, [rax+0C8h]                                                ; +0x5d, 0x1400bea2d\ncmp     [rdx+0C8h], ecx                                                ; +0x63, 0x1400bea33\njnz     short loc_1400BEA50                                            ; +0x69, 0x1400bea39\nmov     word ptr [rsp+28h+arg_0], 96E6h                                ; +0x6b, 0x1400bea3b\nmov     byte ptr [rsp+28h+arg_0+2], 0Ah                                ; +0x72, 0x1400bea42\nadd     rbx, 218h                                                      ; +0x77, 0x1400bea47\njmp     short loc_1400BEA77                                            ; +0x7e, 0x1400bea4e\nadd     rbx, 218h                                                      ; +0x80, 0x1400bea50\ntest    dil, 1                                                         ; +0x87, 0x1400bea57\njz      short loc_1400BEA6B                                            ; +0x8b, 0x1400bea5b\nmov     word ptr [rsp+28h+arg_0], 72C2h                                ; +0x8d, 0x1400bea5d\nmov     byte ptr [rsp+28h+arg_0+2], 3Eh ; '>'                          ; +0x94, 0x1400bea64\njmp     short loc_1400BEA77                                            ; +0x99, 0x1400bea69\nmov     word ptr [rsp+28h+arg_0], 58A1h                                ; +0x9b, 0x1400bea6b\nmov     byte ptr [rsp+28h+arg_0+2], 2Ch ; ','                          ; +0xa2, 0x1400bea72\nmov     rcx, [rbx]                                                     ; +0xa7, 0x1400bea77\nmovzx   eax, word ptr [rsp+28h+arg_0]                                  ; +0xaa, 0x1400bea7a\nadd     rcx, 198h                                                      ; +0xaf, 0x1400bea7f\nmov     word ptr [rsp+28h+arg_0], ax                                   ; +0xb6, 0x1400bea86\nmov     rax, [rcx]                                                     ; +0xbb, 0x1400bea8b\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xbe, 0x1400bea8e\ncall    qword ptr [rax]                                                ; +0xc3, 0x1400bea93\nmov     rcx, [rbx]                                                     ; +0xc5, 0x1400bea95\nadd     rcx, 198h                                                      ; +0xc8, 0x1400bea98\nmov     rax, [rcx]                                                     ; +0xcf, 0x1400bea9f\nmov     dl, 0FFh                                                       ; +0xd2, 0x1400beaa2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd4, 0x1400beaa4\nadd     rsp, 20h                                                       ; +0xd9, 0x1400beaa9\npop     rdi                                                            ; +0xdd, 0x1400beaad\njmp     qword ptr [rax+28h]                                            ; +0xde, 0x1400beaae", "xrefs": ["CustomListView::loadCell @ 0x1400abbbf", "CustomListView::reloadAll @ 0x1400ac610", "<???> @ 0x1406c7e90"], "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"}