{"type": "func", "start": 3377500, "end": 3377604, "name": "GJLevelScoreCell::updateBGColor", "pseudocode": "// \n// GJLevelScoreCell::updateBGColor from 0x33895c to 0x3389c4 (104 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bce2\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 GJLevelScoreCell::updateBGColor(GJLevelScoreCell *a1, int a2)\n{\n  cocos2d::CCLayerColor *m_backgroundLayer; // r0\n  char v4; // r2\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r3\n  char v6; // r2\n  int v7; // r2\n  _DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  m_backgroundLayer = a1->m_backgroundLayer;\n  if ( (a2 & 1) != 0 )\n    v4 = -62;\n  else\n    v4 = -95;\n  setColor = m_backgroundLayer->setColor;\n  LOBYTE(v8[0]) = v4;\n  if ( (a2 & 1) != 0 )\n    v6 = 114;\n  else\n    v6 = 88;\n  BYTE1(v8[0]) = v6;\n  if ( (a2 & 1) != 0 )\n    v7 = 62;\n  else\n    v7 = 44;\n  BYTE2(v8[0]) = v7;\n  ((void (__fastcall *)(cocos2d::CCLayerColor *, _DWORD *, int))setColor)(m_backgroundLayer, v8, v7);\n  a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 255);\n}", "assembly": "; \n; GJLevelScoreCell::updateBGColor from 0x33895c to 0x3389c4 (104 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bce2\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 - 0x338968)                ; +0x0, 0x33895c\nTST.W           R1, #1                                                 ; +0x2, 0x33895e\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x6, 0x338962\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x338964\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x338966\nMOV             R5, R0                                                 ; +0xc, 0x338968\nLDR.W           R0, [R0,#0x190]                                        ; +0xe, 0x33896a\nLDR             R2, [R3]                                               ; +0x12, 0x33896e\nMOV             R4, R3                                                 ; +0x14, 0x338970\nMOV             R1, SP                                                 ; +0x16, 0x338972\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x18, 0x338974\nIT NE                                                                  ; +0x1a, 0x338976\nMOVNE           R2, #0xC2                                              ; +0x1c, 0x338978\nLDR             R3, [R0]                                               ; +0x1e, 0x33897a\nIT EQ                                                                  ; +0x20, 0x33897c\nMOVEQ           R2, #0xA1                                              ; +0x22, 0x33897e\nLDR.W           R3, [R3,#0x258]                                        ; +0x24, 0x338980\nITTEE NE                                                               ; +0x28, 0x338984\nSTRBNE.W        R2, [SP,#0xC+var_C]                                    ; +0x2a, 0x338986\nMOVNE           R2, #0x72 ; 'r'                                        ; +0x2e, 0x33898a\nSTRBEQ.W        R2, [SP,#0xC+var_C]                                    ; +0x30, 0x33898c\nMOVEQ           R2, #0x58 ; 'X'                                        ; +0x34, 0x338990\nITTEE NE                                                               ; +0x36, 0x338992\nSTRBNE.W        R2, [SP,#0xC+var_B]                                    ; +0x38, 0x338994\nMOVNE           R2, #0x3E ; '>'                                        ; +0x3c, 0x338998\nSTRBEQ.W        R2, [SP,#0xC+var_B]                                    ; +0x3e, 0x33899a\nMOVEQ           R2, #0x2C ; ','                                        ; +0x42, 0x33899e\nSTRB.W          R2, [SP,#0xC+var_A]                                    ; +0x44, 0x3389a0\nBLX             R3                                                     ; +0x48, 0x3389a4\nLDR.W           R0, [R5,#0x190]                                        ; +0x4a, 0x3389a6\nMOVS            R1, #0xFF                                              ; +0x4e, 0x3389aa\nLDR             R3, [R0]                                               ; +0x50, 0x3389ac\nLDR.W           R3, [R3,#0x240]                                        ; +0x52, 0x3389ae\nBLX             R3                                                     ; +0x56, 0x3389b2\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x58, 0x3389b4\nLDR             R3, [R4]                                               ; +0x5a, 0x3389b6\nCMP             R2, R3                                                 ; +0x5c, 0x3389b8\nBEQ             loc_3389C0                                             ; +0x5e, 0x3389ba\nBLX             __stack_chk_fail                                       ; +0x60, 0x3389bc\nADD             SP, SP, #0xC                                           ; +0x64, 0x3389c0\nPOP             {R4,R5,PC}                                             ; +0x66, 0x3389c2", "xrefs": ["CustomListView::loadCell @ 0x33bce2"], "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"}