{"type": "func", "start": 5372988848, "end": 5372989009, "name": "SetupCameraModePopup::onUnboundMode", "pseudocode": "// \n// SetupCameraModePopup::onUnboundMode from 0x140414db0 to 0x140414e51 (161 bytes)\n// \n// 2 xrefs:\n// > SetupCameraModePopup::init @ 0x1404145ce\n// > <???> @ 0x1406d8e4c\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 SetupCameraModePopup::onUnboundMode(SetupCameraModePopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  EffectGameObject *m_gameObject; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = !a1->m_freeMode;\n  a1->m_freeMode = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_cameraIsFreeMode = v3;\n    SetupCameraModePopup::updateItemVisibility(a1);\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); LOBYTE(v6[31].m_eObjType) = a1->m_freeMode )\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i++);\n    SetupCameraModePopup::updateItemVisibility(a1);\n  }\n}", "assembly": "; \n; SetupCameraModePopup::onUnboundMode from 0x140414db0 to 0x140414e51 (161 bytes)\n; \n; 2 xrefs:\n; > SetupCameraModePopup::init @ 0x1404145ce\n; > <???> @ 0x1406d8e4c\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, 0x140414db0\nsub     rsp, 20h                                                       ; +0x2, 0x140414db2\ncmp     byte ptr [rcx+3E4h], 0                                         ; +0x6, 0x140414db6\nmov     rbx, rcx                                                       ; +0xd, 0x140414dbd\nsetz    al                                                             ; +0x10, 0x140414dc0\nmovzx   ecx, al                                                        ; +0x13, 0x140414dc3\nmov     [rbx+3E4h], al                                                 ; +0x16, 0x140414dc6\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x140414dcc\ntest    rax, rax                                                       ; +0x23, 0x140414dd3\njz      short loc_140414DEB                                            ; +0x26, 0x140414dd6\nmov     [rax+6E4h], cl                                                 ; +0x28, 0x140414dd8\nmov     rcx, rbx                                                       ; +0x2e, 0x140414dde\nadd     rsp, 20h                                                       ; +0x31, 0x140414de1\npop     rbx                                                            ; +0x35, 0x140414de5\njmp     SetupCameraModePopup__updateItemVisibility                     ; +0x36, 0x140414de6\nmov     rcx, [rbx+298h]                                                ; +0x3b, 0x140414deb\nmov     [rsp+28h+arg_0], rdi                                           ; +0x42, 0x140414df2\nxor     edi, edi                                                       ; +0x47, 0x140414df7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x49, 0x140414df9\ntest    eax, eax                                                       ; +0x4f, 0x140414dff\njz      short loc_140414E3F                                            ; +0x51, 0x140414e01\nnop     dword ptr [rax+00h]                                            ; +0x53, 0x140414e03\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x140414e07\nmov     rcx, [rbx+298h]                                                ; +0x60, 0x140414e10\nmov     edx, edi                                                       ; +0x67, 0x140414e17\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140414e19\nmovzx   ecx, byte ptr [rbx+3E4h]                                       ; +0x6f, 0x140414e1f\ninc     edi                                                            ; +0x76, 0x140414e26\nmov     [rax+6E4h], cl                                                 ; +0x78, 0x140414e28\nmov     rcx, [rbx+298h]                                                ; +0x7e, 0x140414e2e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x85, 0x140414e35\ncmp     edi, eax                                                       ; +0x8b, 0x140414e3b\njb      short loc_140414E10                                            ; +0x8d, 0x140414e3d\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x8f, 0x140414e3f\nmov     rcx, rbx                                                       ; +0x94, 0x140414e44\nadd     rsp, 20h                                                       ; +0x97, 0x140414e47\npop     rbx                                                            ; +0x9b, 0x140414e4b\njmp     SetupCameraModePopup__updateItemVisibility                     ; +0x9c, 0x140414e4c", "xrefs": ["SetupCameraModePopup::init @ 0x1404145ce", "<???> @ 0x1406d8e4c"], "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"}