{"type": "func", "start": 5373024080, "end": 5373024219, "name": "SetupEndPopup::onLockY", "pseudocode": "// \n// SetupEndPopup::onLockY from 0x14041d750 to 0x14041d7db (139 bytes)\n// \n// 4 xrefs:\n// > SetupEndPopup::init @ 0x14041d532\n// > <???> @ 0x1406a02c0\n// > <???> @ 0x1406a02d0\n// > <???> @ 0x1406d9404\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 SetupEndPopup::onLockY(SetupEndPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n\n  v3 = !a1->m_lockY;\n  a1->m_lockY = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_lockToPlayerY = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);\n          BYTE1(v7[27].m_uID) = a1->m_lockY;\n        }\n        while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupEndPopup::onLockY from 0x14041d750 to 0x14041d7db (139 bytes)\n; \n; 4 xrefs:\n; > SetupEndPopup::init @ 0x14041d532\n; > <???> @ 0x1406a02c0\n; > <???> @ 0x1406a02d0\n; > <???> @ 0x1406d9404\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, 0x14041d750\nsub     rsp, 20h                                                       ; +0x2, 0x14041d752\ncmp     byte ptr [rcx+3B1h], 0                                         ; +0x6, 0x14041d756\nmov     rbx, rcx                                                       ; +0xd, 0x14041d75d\nsetz    al                                                             ; +0x10, 0x14041d760\nmovzx   ecx, al                                                        ; +0x13, 0x14041d763\nmov     [rbx+3B1h], al                                                 ; +0x16, 0x14041d766\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14041d76c\ntest    rax, rax                                                       ; +0x23, 0x14041d773\njz      short loc_14041D784                                            ; +0x26, 0x14041d776\nmov     [rax+5F1h], cl                                                 ; +0x28, 0x14041d778\nadd     rsp, 20h                                                       ; +0x2e, 0x14041d77e\npop     rbx                                                            ; +0x32, 0x14041d782\nretn                                                                   ; +0x33, 0x14041d783\nmov     rcx, [rbx+298h]                                                ; +0x34, 0x14041d784\ntest    rcx, rcx                                                       ; +0x3b, 0x14041d78b\njz      short loc_14041D7D5                                            ; +0x3e, 0x14041d78e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x14041d790\nxor     edi, edi                                                       ; +0x45, 0x14041d795\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x14041d797\ntest    eax, eax                                                       ; +0x4d, 0x14041d79d\njz      short loc_14041D7D0                                            ; +0x4f, 0x14041d79f\nmov     rcx, [rbx+298h]                                                ; +0x51, 0x14041d7a1\nmov     edx, edi                                                       ; +0x58, 0x14041d7a8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x14041d7aa\nmovzx   ecx, byte ptr [rbx+3B1h]                                       ; +0x60, 0x14041d7b0\ninc     edi                                                            ; +0x67, 0x14041d7b7\nmov     [rax+5F1h], cl                                                 ; +0x69, 0x14041d7b9\nmov     rcx, [rbx+298h]                                                ; +0x6f, 0x14041d7bf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x14041d7c6\ncmp     edi, eax                                                       ; +0x7c, 0x14041d7cc\njb      short loc_14041D7A1                                            ; +0x7e, 0x14041d7ce\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x14041d7d0\nadd     rsp, 20h                                                       ; +0x85, 0x14041d7d5\npop     rbx                                                            ; +0x89, 0x14041d7d9\nretn                                                                   ; +0x8a, 0x14041d7da", "xrefs": ["SetupEndPopup::init @ 0x14041d532", "<???> @ 0x1406a02c0", "<???> @ 0x1406a02d0", "<???> @ 0x1406d9404"], "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"}