{"type": "func", "start": 5373042144, "end": 5373042401, "name": "SetupGradientPopup::updateGradientLabels", "pseudocode": "// \n// SetupGradientPopup::updateGradientLabels from 0x140421de0 to 0x140421ee1 (257 bytes)\n// \n// 4 xrefs:\n// > SetupGradientPopup::updateToggleItem @ 0x140421dbe\n// > <???> @ 0x1406a0648\n// > <???> @ 0x1406a0658\n// > <???> @ 0x1406d9590\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 SetupGradientPopup::updateGradientLabels(SetupGradientPopup *a1, bool a2)\n{\n  unsigned int v4; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  const char *v6; // rdx\n\n  v4 = 0;\n  if ( cocos2d::CCArray::count(a1->m_gradientLabels) )\n  {\n    while ( 1 )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_gradientLabels, v4);\n      if ( !v4 )\n      {\n        v6 = \"U:\";\n        if ( a2 )\n          v6 = \"BL:\";\n        goto LABEL_17;\n      }\n      if ( v4 == 1 )\n      {\n        v6 = \"D:\";\n        if ( a2 )\n          v6 = \"BR:\";\n        goto LABEL_17;\n      }\n      if ( v4 == 2 )\n        break;\n      if ( v4 == 3 )\n      {\n        v6 = (const char *)&unk_14053FEC0;\n        if ( a2 )\n          v6 = \"TR:\";\nLABEL_17:\n        (**(void (__fastcall ***)(__int64, const char *))&v5[6].m_uAutoReleaseCount)(\n          (__int64)&v5[6].m_uAutoReleaseCount,\n          v6);\n      }\n      if ( ++v4 >= cocos2d::CCArray::count(a1->m_gradientLabels) )\n        return;\n    }\n    v6 = \"L:\";\n    if ( a2 )\n      v6 = \"TL:\";\n    goto LABEL_17;\n  }\n}", "assembly": "; \n; SetupGradientPopup::updateGradientLabels from 0x140421de0 to 0x140421ee1 (257 bytes)\n; \n; 4 xrefs:\n; > SetupGradientPopup::updateToggleItem @ 0x140421dbe\n; > <???> @ 0x1406a0648\n; > <???> @ 0x1406a0658\n; > <???> @ 0x1406d9590\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    rbx                                                            ; +0x0, 0x140421de0\npush    rsi                                                            ; +0x2, 0x140421de2\npush    rdi                                                            ; +0x3, 0x140421de3\nsub     rsp, 20h                                                       ; +0x4, 0x140421de4\nmov     rsi, rcx                                                       ; +0x8, 0x140421de8\nmovzx   edi, dl                                                        ; +0xb, 0x140421deb\nmov     rcx, [rcx+3C8h]                                                ; +0xe, 0x140421dee\nxor     ebx, ebx                                                       ; +0x15, 0x140421df5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x17, 0x140421df7\ntest    eax, eax                                                       ; +0x1d, 0x140421dfd\njz      loc_140421ED9                                                  ; +0x1f, 0x140421dff\nmov     [rsp+38h+arg_0], rbp                                           ; +0x25, 0x140421e05\nlea     rbp, aTr; \"TR:\"                                                ; +0x2a, 0x140421e0a\nmov     [rsp+38h+arg_8], r12                                           ; +0x31, 0x140421e11\nlea     r12, aBl; \"BL:\"                                                ; +0x36, 0x140421e16\nmov     [rsp+38h+arg_10], r14                                          ; +0x3d, 0x140421e1d\nlea     r14, aTl; \"TL:\"                                                ; +0x42, 0x140421e22\nmov     [rsp+38h+arg_18], r15                                          ; +0x49, 0x140421e29\nlea     r15, aBr; \"BR:\"                                                ; +0x4e, 0x140421e2e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x55, 0x140421e35\nmov     rcx, [rsi+3C8h]                                                ; +0x60, 0x140421e40\nmov     edx, ebx                                                       ; +0x67, 0x140421e47\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140421e49\nmov     ecx, ebx                                                       ; +0x6f, 0x140421e4f\ntest    ebx, ebx                                                       ; +0x71, 0x140421e51\njz      short loc_140421E94                                            ; +0x73, 0x140421e53\nsub     ecx, 1                                                         ; +0x75, 0x140421e55\njz      short loc_140421E84                                            ; +0x78, 0x140421e58\nsub     ecx, 1                                                         ; +0x7a, 0x140421e5a\njz      short loc_140421E74                                            ; +0x7d, 0x140421e5d\ncmp     ecx, 1                                                         ; +0x7f, 0x140421e5f\njnz     short loc_140421EAE                                            ; +0x82, 0x140421e62\ntest    dil, dil                                                       ; +0x84, 0x140421e64\nlea     rdx, unk_14053FEC0                                             ; +0x87, 0x140421e67\ncmovnz  rdx, rbp                                                       ; +0x8e, 0x140421e6e\njmp     short loc_140421EA2                                            ; +0x92, 0x140421e72\ntest    dil, dil                                                       ; +0x94, 0x140421e74\nlea     rdx, asc_1405E4468; \"L:\"                                       ; +0x97, 0x140421e77\ncmovnz  rdx, r14                                                       ; +0x9e, 0x140421e7e\njmp     short loc_140421EA2                                            ; +0xa2, 0x140421e82\ntest    dil, dil                                                       ; +0xa4, 0x140421e84\nlea     rdx, aD_2; \"D:\"                                                ; +0xa7, 0x140421e87\ncmovnz  rdx, r15                                                       ; +0xae, 0x140421e8e\njmp     short loc_140421EA2                                            ; +0xb2, 0x140421e92\ntest    dil, dil                                                       ; +0xb4, 0x140421e94\nlea     rdx, aU; \"U:\"                                                  ; +0xb7, 0x140421e97\ncmovnz  rdx, r12                                                       ; +0xbe, 0x140421e9e\nlea     rcx, [rax+168h]                                                ; +0xc2, 0x140421ea2\nmov     rax, [rcx]                                                     ; +0xc9, 0x140421ea9\ncall    qword ptr [rax]                                                ; +0xcc, 0x140421eac\nmov     rcx, [rsi+3C8h]                                                ; +0xce, 0x140421eae\ninc     ebx                                                            ; +0xd5, 0x140421eb5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd7, 0x140421eb7\ncmp     ebx, eax                                                       ; +0xdd, 0x140421ebd\njb      loc_140421E40                                                  ; +0xdf, 0x140421ebf\nmov     r15, [rsp+38h+arg_18]                                          ; +0xe5, 0x140421ec5\nmov     r14, [rsp+38h+arg_10]                                          ; +0xea, 0x140421eca\nmov     r12, [rsp+38h+arg_8]                                           ; +0xef, 0x140421ecf\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xf4, 0x140421ed4\nadd     rsp, 20h                                                       ; +0xf9, 0x140421ed9\npop     rdi                                                            ; +0xfd, 0x140421edd\npop     rsi                                                            ; +0xfe, 0x140421ede\npop     rbx                                                            ; +0xff, 0x140421edf\nretn                                                                   ; +0x100, 0x140421ee0", "xrefs": ["SetupGradientPopup::updateToggleItem @ 0x140421dbe", "<???> @ 0x1406a0648", "<???> @ 0x1406a0658", "<???> @ 0x1406d9590"], "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"}