{"type": "func", "start": 3375672, "end": 3375808, "name": "GJLocalLevelScoreCell::updateBGColor", "pseudocode": "// \n// GJLocalLevelScoreCell::updateBGColor from 0x338238 to 0x3382c0 (136 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bd0c\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 GJLocalLevelScoreCell::updateBGColor(GJLocalLevelScoreCell *a1, int a2)\n{\n  GJLocalScore *m_localScore; // r2\n  cocos2d::CCLayerColor *m_backgroundLayer; // r0\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r3\n  char v6; // r2\n  char v7; // r2\n  char v8; // r2\n  _DWORD v9[2]; // [sp+0h] [bp-8h] BYREF\n\n  v9[0] = a1;\n  v9[1] = a2;\n  m_localScore = a1->m_localScore;\n  m_backgroundLayer = a1->m_backgroundLayer;\n  if ( m_localScore && m_localScore->m_currentScore )\n  {\n    setColor = m_backgroundLayer->setColor;\n    LOWORD(v9[0]) = -26906;\n    v6 = 10;\n  }\n  else\n  {\n    if ( (a2 & 1) != 0 )\n      v7 = -62;\n    else\n      v7 = -95;\n    setColor = m_backgroundLayer->setColor;\n    LOBYTE(v9[0]) = v7;\n    if ( (a2 & 1) != 0 )\n      v8 = 114;\n    else\n      v8 = 88;\n    BYTE1(v9[0]) = v8;\n    if ( (a2 & 1) != 0 )\n      v6 = 62;\n    else\n      v6 = 44;\n  }\n  BYTE2(v9[0]) = v6;\n  setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)v9);\n  a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 255);\n}", "assembly": "; \n; GJLocalLevelScoreCell::updateBGColor from 0x338238 to 0x3382c0 (136 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bd0c\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 - 0x338240)                ; +0x0, 0x338238\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x2, 0x33823a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x33823c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x33823e\nMOV             R5, R0                                                 ; +0x8, 0x338240\nMOV             R6, R1                                                 ; +0xa, 0x338242\nLDR             R2, [R3]                                               ; +0xc, 0x338244\nMOV             R4, R3                                                 ; +0xe, 0x338246\nMOV             R1, SP                                                 ; +0x10, 0x338248\nSTR             R2, [SP,#8+var_4]                                      ; +0x12, 0x33824a\nLDR.W           R2, [R0,#0x19C]                                        ; +0x14, 0x33824c\nLDR.W           R0, [R0,#0x190]                                        ; +0x18, 0x338250\nCBZ             R2, loc_338272                                         ; +0x1c, 0x338254\nLDRB.W          R3, [R2,#0x3C]                                         ; +0x1e, 0x338256\nCBZ             R3, loc_338272                                         ; +0x22, 0x33825a\nLDR             R3, [R0]                                               ; +0x24, 0x33825c\nMOVS            R2, #0xE6                                              ; +0x26, 0x33825e\nLDR.W           R3, [R3,#0x258]                                        ; +0x28, 0x338260\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x2c, 0x338264\nMOVS            R2, #0x96                                              ; +0x30, 0x338268\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x32, 0x33826a\nMOVS            R2, #0xA                                               ; +0x36, 0x33826e\nB               loc_33829C                                             ; +0x38, 0x338270\nLDR             R3, [R0]                                               ; +0x3a, 0x338272\nLSLS            R2, R6, #0x1F                                          ; +0x3c, 0x338274\nITE MI                                                                 ; +0x3e, 0x338276\nMOVMI           R2, #0xC2                                              ; +0x40, 0x338278\nMOVPL           R2, #0xA1                                              ; +0x42, 0x33827a\nLDR.W           R3, [R3,#0x258]                                        ; +0x44, 0x33827c\nITTEE MI                                                               ; +0x48, 0x338280\nSTRBMI.W        R2, [SP,#8+var_8]                                      ; +0x4a, 0x338282\nMOVMI           R2, #0x72 ; 'r'                                        ; +0x4e, 0x338286\nSTRBPL.W        R2, [SP,#8+var_8]                                      ; +0x50, 0x338288\nMOVPL           R2, #0x58 ; 'X'                                        ; +0x54, 0x33828c\nITTEE MI                                                               ; +0x56, 0x33828e\nSTRBMI.W        R2, [SP,#8+var_7]                                      ; +0x58, 0x338290\nMOVMI           R2, #0x3E ; '>'                                        ; +0x5c, 0x338294\nSTRBPL.W        R2, [SP,#8+var_7]                                      ; +0x5e, 0x338296\nMOVPL           R2, #0x2C ; ','                                        ; +0x62, 0x33829a\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x64, 0x33829c\nBLX             R3                                                     ; +0x68, 0x3382a0\nLDR.W           R0, [R5,#0x190]                                        ; +0x6a, 0x3382a2\nMOVS            R1, #0xFF                                              ; +0x6e, 0x3382a6\nLDR             R3, [R0]                                               ; +0x70, 0x3382a8\nLDR.W           R3, [R3,#0x240]                                        ; +0x72, 0x3382aa\nBLX             R3                                                     ; +0x76, 0x3382ae\nLDR             R2, [SP,#8+var_4]                                      ; +0x78, 0x3382b0\nLDR             R3, [R4]                                               ; +0x7a, 0x3382b2\nCMP             R2, R3                                                 ; +0x7c, 0x3382b4\nBEQ             loc_3382BC                                             ; +0x7e, 0x3382b6\nBLX             __stack_chk_fail                                       ; +0x80, 0x3382b8\nADD             SP, SP, #8                                             ; +0x84, 0x3382bc\nPOP             {R4-R6,PC}                                             ; +0x86, 0x3382be", "xrefs": ["CustomListView::loadCell @ 0x33bd0c"], "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"}