{"type": "func", "start": 5373485456, "end": 5373485668, "name": "ShareCommentLayer::updatePercentLabel", "pseudocode": "// \n// ShareCommentLayer::updatePercentLabel from 0x14048e190 to 0x14048e264 (212 bytes)\n// \n// 5 xrefs:\n// > ShareCommentLayer::init @ 0x14048d8a4\n// > ShareCommentLayer::onPercent @ 0x14048e180\n// > <???> @ 0x1406a6bd4\n// > <???> @ 0x1406a6be4\n// > <???> @ 0x1406dbf6c\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 ShareCommentLayer::updatePercentLabel(ShareCommentLayer *a1)\n{\n  cocos2d::CCRGBAProtocol *v2; // rcx\n  cocos2d::CCRGBAProtocol_vtbl *v3; // rax\n  char v4; // dl\n  cocos2d::CCLabelBMFont *m_percentLabel; // rbx\n  cocos2d::CCLabelProtocol_vtbl *v6; // rdi\n  cocos2d::CCString *v7; // rax\n  const char *CString; // rdx\n  char v9; // dl\n\n  v2 = &a1->m_percentLabel->cocos2d::CCRGBAProtocol;\n  v3 = v2->__vftable;\n  if ( a1->m_percentEnabled )\n  {\n    v4 = -1;\n    v3->setOpacity(v2, v4);\n    a1->m_percentLabel->setColor(&a1->m_percentLabel->cocos2d::CCRGBAProtocol, &stru_140529C80);\n    m_percentLabel = a1->m_percentLabel;\n    v6 = m_percentLabel->cocos2d::CCLabelProtocol::__vftable;\n    v7 = cocos2d::CCString::createWithFormat(\"%i%%\", a1->m_percent);\n    CString = cocos2d::CCString::getCString(v7);\n    v6->setString(&m_percentLabel->cocos2d::CCLabelProtocol, CString);\n  }\n  else\n  {\n    v9 = 125;\n    v3->setOpacity(v2, v9);\n    a1->m_percentLabel->setColor(&a1->m_percentLabel->cocos2d::CCRGBAProtocol, &stru_140529C78);\n    a1->m_percentLabel->setString(&a1->m_percentLabel->cocos2d::CCLabelProtocol, \"%\");\n  }\n}", "assembly": "; \n; ShareCommentLayer::updatePercentLabel from 0x14048e190 to 0x14048e264 (212 bytes)\n; \n; 5 xrefs:\n; > ShareCommentLayer::init @ 0x14048d8a4\n; > ShareCommentLayer::onPercent @ 0x14048e180\n; > <???> @ 0x1406a6bd4\n; > <???> @ 0x1406a6be4\n; > <???> @ 0x1406dbf6c\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\npush    rsi                                                            ; +0x0, 0x14048e190\nsub     rsp, 20h                                                       ; +0x2, 0x14048e192\nmov     rsi, rcx                                                       ; +0x6, 0x14048e196\nmov     rcx, [rcx+2F0h]                                                ; +0x9, 0x14048e199\nadd     rcx, 170h                                                      ; +0x10, 0x14048e1a0\ncmp     byte ptr [rsi+301h], 0                                         ; +0x17, 0x14048e1a7\nmov     rax, [rcx]                                                     ; +0x1e, 0x14048e1ae\njz      short loc_14048E225                                            ; +0x21, 0x14048e1b1\nmov     [rsp+28h+arg_0], rbx                                           ; +0x23, 0x14048e1b3\nmov     dl, 0FFh                                                       ; +0x28, 0x14048e1b8\nmov     [rsp+28h+arg_8], rdi                                           ; +0x2a, 0x14048e1ba\ncall    qword ptr [rax+28h]                                            ; +0x2f, 0x14048e1bf\nmov     rcx, [rsi+2F0h]                                                ; +0x32, 0x14048e1c2\nlea     rdx, stru_140529C80                                            ; +0x39, 0x14048e1c9\nadd     rcx, 170h                                                      ; +0x40, 0x14048e1d0\nmov     rax, [rcx]                                                     ; +0x47, 0x14048e1d7\ncall    qword ptr [rax]                                                ; +0x4a, 0x14048e1da\nmov     rbx, [rsi+2F0h]                                                ; +0x4c, 0x14048e1dc\nlea     rcx, aI_1; \"%i%%\"                                              ; +0x53, 0x14048e1e3\nmov     edx, [rsi+304h]                                                ; +0x5a, 0x14048e1ea\nmov     rdi, [rbx+168h]                                                ; +0x60, 0x14048e1f0\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x67, 0x14048e1f7\nmov     rcx, rax                                                       ; +0x6d, 0x14048e1fd\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x70, 0x14048e200\nmov     rdx, rax                                                       ; +0x76, 0x14048e206\nlea     rcx, [rbx+168h]                                                ; +0x79, 0x14048e209\nmov     rax, [rdi]                                                     ; +0x80, 0x14048e210\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x83, 0x14048e213\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x14048e218\nadd     rsp, 20h                                                       ; +0x8d, 0x14048e21d\npop     rsi                                                            ; +0x91, 0x14048e221\njmp     rax                                                            ; +0x92, 0x14048e222\nmov     dl, 7Dh ; '}'                                                  ; +0x95, 0x14048e225\ncall    qword ptr [rax+28h]                                            ; +0x97, 0x14048e227\nmov     rcx, [rsi+2F0h]                                                ; +0x9a, 0x14048e22a\nlea     rdx, stru_140529C78                                            ; +0xa1, 0x14048e231\nadd     rcx, 170h                                                      ; +0xa8, 0x14048e238\nmov     rax, [rcx]                                                     ; +0xaf, 0x14048e23f\ncall    qword ptr [rax]                                                ; +0xb2, 0x14048e242\nmov     rcx, [rsi+2F0h]                                                ; +0xb4, 0x14048e244\nlea     rdx, asc_1405C8FD4; \"%\"                                        ; +0xbb, 0x14048e24b\nadd     rcx, 168h                                                      ; +0xc2, 0x14048e252\nmov     rax, [rcx]                                                     ; +0xc9, 0x14048e259\nadd     rsp, 20h                                                       ; +0xcc, 0x14048e25c\npop     rsi                                                            ; +0xd0, 0x14048e260\njmp     qword ptr [rax]                                                ; +0xd1, 0x14048e261", "xrefs": ["ShareCommentLayer::init @ 0x14048d8a4", "ShareCommentLayer::onPercent @ 0x14048e180", "<???> @ 0x1406a6bd4", "<???> @ 0x1406a6be4", "<???> @ 0x1406dbf6c"], "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"}