{"type": "func", "start": 5373211024, "end": 5373211195, "name": "SetupShaderEffectPopup::updateZLayerButtons", "pseudocode": "// \n// SetupShaderEffectPopup::updateZLayerButtons from 0x14044b190 to 0x14044b23b (171 bytes)\n// \n// 5 xrefs:\n// > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044ad7d\n// > SetupShaderEffectPopup::onZLayer @ 0x14044b17e\n// > <???> @ 0x1406a2b04\n// > <???> @ 0x1406a2b14\n// > <???> @ 0x1406da754\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 SetupShaderEffectPopup::updateZLayerButtons(SetupShaderEffectPopup *a1)\n{\n  unsigned int i; // edi\n  ButtonSprite *v3; // rsi\n  int v4; // eax\n  int m_zLayerMin; // edx\n  int m_zLayerMax; // ecx\n  const char *v7; // rdx\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_zLayerSprites); ++i )\n  {\n    v3 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_zLayerSprites, i);\n    v4 = v3->getTag(v3);\n    m_zLayerMin = a1->m_zLayerMin;\n    if ( v4 == m_zLayerMin || (m_zLayerMax = a1->m_zLayerMax, v4 == m_zLayerMax) )\n    {\n      v7 = \"GJ_button_02.png\";\n    }\n    else if ( v4 <= m_zLayerMin || v4 >= m_zLayerMax )\n    {\n      v7 = \"GJ_button_04.png\";\n    }\n    else\n    {\n      v7 = \"GJ_button_01.png\";\n    }\n    ButtonSprite::updateBGImage(v3, v7);\n  }\n}", "assembly": "; \n; SetupShaderEffectPopup::updateZLayerButtons from 0x14044b190 to 0x14044b23b (171 bytes)\n; \n; 5 xrefs:\n; > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044ad7d\n; > SetupShaderEffectPopup::onZLayer @ 0x14044b17e\n; > <???> @ 0x1406a2b04\n; > <???> @ 0x1406a2b14\n; > <???> @ 0x1406da754\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14044b190\npush    rdi                                                            ; +0x5, 0x14044b195\nsub     rsp, 20h                                                       ; +0x6, 0x14044b196\nmov     rbx, rcx                                                       ; +0xa, 0x14044b19a\nxor     edi, edi                                                       ; +0xd, 0x14044b19d\nmov     rcx, [rcx+3A8h]                                                ; +0xf, 0x14044b19f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x14044b1a6\ntest    eax, eax                                                       ; +0x1c, 0x14044b1ac\njz      loc_14044B230                                                  ; +0x1e, 0x14044b1ae\nmov     [rsp+28h+arg_0], rsi                                           ; +0x24, 0x14044b1b4\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x14044b1b9\nmov     rcx, [rbx+3A8h]                                                ; +0x30, 0x14044b1c0\nmov     edx, edi                                                       ; +0x37, 0x14044b1c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14044b1c9\nmov     rcx, rax                                                       ; +0x3f, 0x14044b1cf\nmov     rsi, rax                                                       ; +0x42, 0x14044b1d2\nmov     rdx, [rax]                                                     ; +0x45, 0x14044b1d5\ncall    qword ptr [rdx+38h]                                            ; +0x48, 0x14044b1d8\nmov     edx, [rbx+3B0h]                                                ; +0x4b, 0x14044b1db\ncmp     eax, edx                                                       ; +0x51, 0x14044b1e1\njz      short loc_14044B209                                            ; +0x53, 0x14044b1e3\nmov     ecx, [rbx+3B4h]                                                ; +0x55, 0x14044b1e5\ncmp     eax, ecx                                                       ; +0x5b, 0x14044b1eb\njz      short loc_14044B209                                            ; +0x5d, 0x14044b1ed\ncmp     eax, edx                                                       ; +0x5f, 0x14044b1ef\njle     short loc_14044B200                                            ; +0x61, 0x14044b1f1\ncmp     eax, ecx                                                       ; +0x63, 0x14044b1f3\njge     short loc_14044B200                                            ; +0x65, 0x14044b1f5\nlea     rdx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x67, 0x14044b1f7\njmp     short loc_14044B210                                            ; +0x6e, 0x14044b1fe\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x70, 0x14044b200\njmp     short loc_14044B210                                            ; +0x77, 0x14044b207\nlea     rdx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x79, 0x14044b209\nmov     rcx, rsi                                                       ; +0x80, 0x14044b210\ncall    ButtonSprite__updateBGImage                                    ; +0x83, 0x14044b213\nmov     rcx, [rbx+3A8h]                                                ; +0x88, 0x14044b218\ninc     edi                                                            ; +0x8f, 0x14044b21f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x91, 0x14044b221\ncmp     edi, eax                                                       ; +0x97, 0x14044b227\njb      short loc_14044B1C0                                            ; +0x99, 0x14044b229\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x9b, 0x14044b22b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa0, 0x14044b230\nadd     rsp, 20h                                                       ; +0xa5, 0x14044b235\npop     rdi                                                            ; +0xa9, 0x14044b239\nretn                                                                   ; +0xaa, 0x14044b23a", "xrefs": ["SetupShaderEffectPopup::setupShaderTrigger @ 0x14044ad7d", "SetupShaderEffectPopup::onZLayer @ 0x14044b17e", "<???> @ 0x1406a2b04", "<???> @ 0x1406a2b14", "<???> @ 0x1406da754"], "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"}