{"type": "func", "start": 5372989024, "end": 5372989194, "name": "SetupCameraModePopup::onEditCameraSettings", "pseudocode": "// \n// SetupCameraModePopup::onEditCameraSettings from 0x140414e60 to 0x140414f0a (170 bytes)\n// \n// 4 xrefs:\n// > SetupCameraModePopup::init @ 0x1404146c7\n// > <???> @ 0x14069fa14\n// > <???> @ 0x14069fa24\n// > <???> @ 0x1406d8e58\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::onEditCameraSettings(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_cameraSettingsEnabled;\n  a1->m_cameraSettingsEnabled = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_cameraEditCameraSettings = v3;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); BYTE1(v6[31].m_eObjType) = a1->m_cameraSettingsEnabled )\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i++);\n  }\n  if ( a1->m_cameraSettingsEnabled )\n  {\n    SetupCameraModePopup::updateCameraEasing(a1);\n    SetupCameraModePopup::updateCameraPadding(a1);\n  }\n  SetupCameraModePopup::updateItemVisibility(a1);\n}", "assembly": "; \n; SetupCameraModePopup::onEditCameraSettings from 0x140414e60 to 0x140414f0a (170 bytes)\n; \n; 4 xrefs:\n; > SetupCameraModePopup::init @ 0x1404146c7\n; > <???> @ 0x14069fa14\n; > <???> @ 0x14069fa24\n; > <???> @ 0x1406d8e58\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, 0x140414e60\nsub     rsp, 20h                                                       ; +0x2, 0x140414e62\ncmp     byte ptr [rcx+3E5h], 0                                         ; +0x6, 0x140414e66\nmov     rbx, rcx                                                       ; +0xd, 0x140414e6d\nsetz    al                                                             ; +0x10, 0x140414e70\nmovzx   ecx, al                                                        ; +0x13, 0x140414e73\nmov     [rbx+3E5h], al                                                 ; +0x16, 0x140414e76\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x140414e7c\ntest    rax, rax                                                       ; +0x23, 0x140414e83\njz      short loc_140414E90                                            ; +0x26, 0x140414e86\nmov     [rax+6E5h], cl                                                 ; +0x28, 0x140414e88\njmp     short loc_140414EE4                                            ; +0x2e, 0x140414e8e\nmov     rcx, [rbx+298h]                                                ; +0x30, 0x140414e90\nmov     [rsp+28h+arg_0], rdi                                           ; +0x37, 0x140414e97\nxor     edi, edi                                                       ; +0x3c, 0x140414e9c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e, 0x140414e9e\ntest    eax, eax                                                       ; +0x44, 0x140414ea4\njz      short loc_140414EDF                                            ; +0x46, 0x140414ea6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x140414ea8\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x140414eb0\nmov     edx, edi                                                       ; +0x57, 0x140414eb7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140414eb9\nmovzx   ecx, byte ptr [rbx+3E5h]                                       ; +0x5f, 0x140414ebf\ninc     edi                                                            ; +0x66, 0x140414ec6\nmov     [rax+6E5h], cl                                                 ; +0x68, 0x140414ec8\nmov     rcx, [rbx+298h]                                                ; +0x6e, 0x140414ece\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x140414ed5\ncmp     edi, eax                                                       ; +0x7b, 0x140414edb\njb      short loc_140414EB0                                            ; +0x7d, 0x140414edd\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x140414edf\ncmp     byte ptr [rbx+3E5h], 0                                         ; +0x84, 0x140414ee4\njz      short loc_140414EFD                                            ; +0x8b, 0x140414eeb\nmov     rcx, rbx                                                       ; +0x8d, 0x140414eed\ncall    SetupCameraModePopup__updateCameraEasing                       ; +0x90, 0x140414ef0\nmov     rcx, rbx                                                       ; +0x95, 0x140414ef5\ncall    SetupCameraModePopup__updateCameraPadding                      ; +0x98, 0x140414ef8\nmov     rcx, rbx                                                       ; +0x9d, 0x140414efd\nadd     rsp, 20h                                                       ; +0xa0, 0x140414f00\npop     rbx                                                            ; +0xa4, 0x140414f04\njmp     SetupCameraModePopup__updateItemVisibility                     ; +0xa5, 0x140414f05", "xrefs": ["SetupCameraModePopup::init @ 0x1404146c7", "<???> @ 0x14069fa14", "<???> @ 0x14069fa24", "<???> @ 0x1406d8e58"], "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"}