{"type": "func", "start": 6400100, "end": 6400360, "name": "GJLocalLevelScoreCell::updateBGColor", "pseudocode": "// \n// GJLocalLevelScoreCell::updateBGColor from 0x61a864 to 0x61a968 (260 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x620458\n// > <???> @ 0x4c1b8\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; // x0\n  cocos2d::CCLayerColor *v4; // x0\n  void (__fastcall *v5)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2\n  cocos2d::CCLayerColor *m_backgroundLayer; // x0\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2\n  char v8; // [xsp+20h] [xbp+20h] BYREF\n  char v9; // [xsp+21h] [xbp+21h]\n  char v10; // [xsp+22h] [xbp+22h]\n\n  m_localScore = a1->m_localScore;\n  if ( m_localScore && m_localScore->m_currentScore )\n  {\n    m_backgroundLayer = a1->m_backgroundLayer;\n    setColor = m_backgroundLayer->setColor;\n    v8 = -26;\n    v9 = -106;\n    v10 = 10;\n    setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)&v8);\n  }\n  else\n  {\n    v4 = a1->m_backgroundLayer;\n    v5 = v4->setColor;\n    if ( (a2 & 1) != 0 )\n    {\n      v8 = -62;\n      v9 = 114;\n      v10 = 62;\n    }\n    else\n    {\n      v8 = -95;\n      v9 = 88;\n      v10 = 44;\n    }\n    v5(v4, (const cocos2d::ccColor3B *)&v8);\n  }\n  a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 0xFFFFFFFFLL);\n}", "assembly": "; \n; GJLocalLevelScoreCell::updateBGColor from 0x61a864 to 0x61a968 (260 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x620458\n; > <???> @ 0x4c1b8\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x61a864\nMOV             X29, SP                                                ; +0x4, 0x61a868\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x61a86c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x61a870\nMOV             X20, X0                                                ; +0x10, 0x61a874\nLDR             X0, [X0,#0x218]                                        ; +0x14, 0x61a878\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x61a87c\nLDR             X2, [X2]                                               ; +0x1c, 0x61a880\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x20, 0x61a884\nCBZ             X0, loc_61A894                                         ; +0x24, 0x61a888\nLDRB            W0, [X0,#0x40]                                         ; +0x28, 0x61a88c\nCBNZ            W0, loc_61A930                                         ; +0x2c, 0x61a890\nLDR             X2, [X20,#0x200]                                       ; +0x30, 0x61a894\nTBNZ            W1, #0, loc_61A900                                     ; +0x34, 0x61a898\nMOV             X0, X2                                                 ; +0x38, 0x61a89c\nLDR             X2, [X2]                                               ; +0x3c, 0x61a8a0\nMOV             W3, #0xFFFFFFA1                                        ; +0x40, 0x61a8a4\nADD             X1, X29, #0x30+var_10                                  ; +0x44, 0x61a8a8\nLDR             X2, [X2,#0x4B0]                                        ; +0x48, 0x61a8ac\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0x4c, 0x61a8b0\nMOV             W3, #0x58 ; 'X'                                        ; +0x50, 0x61a8b4\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0x54, 0x61a8b8\nMOV             W3, #0x2C ; ','                                        ; +0x58, 0x61a8bc\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0x5c, 0x61a8c0\nBLR             X2                                                     ; +0x60, 0x61a8c4\nLDR             X2, [X20,#0x200]                                       ; +0x64, 0x61a8c8\nMOV             W1, #0xFFFFFFFF                                        ; +0x68, 0x61a8cc\nMOV             X0, X2                                                 ; +0x6c, 0x61a8d0\nLDR             X2, [X2]                                               ; +0x70, 0x61a8d4\nLDR             X2, [X2,#0x480]                                        ; +0x74, 0x61a8d8\nBLR             X2                                                     ; +0x78, 0x61a8dc\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x7c, 0x61a8e0\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x80, 0x61a8e4\nLDR             X0, [X19]                                              ; +0x84, 0x61a8e8\nCMP             X1, X0                                                 ; +0x88, 0x61a8ec\nB.NE            loc_61A964                                             ; +0x8c, 0x61a8f0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x90, 0x61a8f4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x94, 0x61a8f8\nRET                                                                    ; +0x98, 0x61a8fc\nMOV             X0, X2                                                 ; +0x9c, 0x61a900\nLDR             X2, [X2]                                               ; +0xa0, 0x61a904\nMOV             W3, #0xFFFFFFC2                                        ; +0xa4, 0x61a908\nADD             X1, X29, #0x30+var_10                                  ; +0xa8, 0x61a90c\nLDR             X2, [X2,#0x4B0]                                        ; +0xac, 0x61a910\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0xb0, 0x61a914\nMOV             W3, #0x72 ; 'r'                                        ; +0xb4, 0x61a918\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0xb8, 0x61a91c\nMOV             W3, #0x3E ; '>'                                        ; +0xbc, 0x61a920\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0xc0, 0x61a924\nBLR             X2                                                     ; +0xc4, 0x61a928\nB               loc_61A8C8                                             ; +0xc8, 0x61a92c\nLDR             X2, [X20,#0x200]                                       ; +0xcc, 0x61a930\nMOV             W3, #0xFFFFFFE6                                        ; +0xd0, 0x61a934\nADD             X1, X29, #0x30+var_10                                  ; +0xd4, 0x61a938\nMOV             X0, X2                                                 ; +0xd8, 0x61a93c\nLDR             X2, [X2]                                               ; +0xdc, 0x61a940\nLDR             X2, [X2,#0x4B0]                                        ; +0xe0, 0x61a944\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0xe4, 0x61a948\nMOV             W3, #0xFFFFFF96                                        ; +0xe8, 0x61a94c\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0xec, 0x61a950\nMOV             W3, #0xA                                               ; +0xf0, 0x61a954\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0xf4, 0x61a958\nBLR             X2                                                     ; +0xf8, 0x61a95c\nB               loc_61A8C8                                             ; +0xfc, 0x61a960\nBL              .__stack_chk_fail                                      ; +0x100, 0x61a964", "xrefs": ["CustomListView::loadCell @ 0x620458", "<???> @ 0x4c1b8"], "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"}