{"type": "func", "start": 5373177824, "end": 5373177973, "name": "SetupRotatePopup::onClose", "pseudocode": "// \n// SetupRotatePopup::onClose from 0x140442fe0 to 0x140443075 (149 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405edf78\n// > <???> @ 0x1406a2210\n// > <???> @ 0x1406a2244\n// > <???> @ 0x1406da46c\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 SetupRotatePopup::onClose(SetupRotatePopup *a1, cocos2d::CCObject *a2)\n{\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  EnhancedGameObject **arr; // rbx\n  EnhancedGameObject **i; // rsi\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n    m_gameObjects = cocos2d::CCArray::createWithObject(m_gameObject);\n  else\n    m_gameObjects = a1->m_gameObjects;\n  if ( m_gameObjects )\n  {\n    data = m_gameObjects->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (EnhancedGameObject **)data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        if ( !*arr )\n          break;\n        EnhancedGameObject::createRotateAction(*arr, (*arr)->m_rotationAngle, 0);\n      }\n    }\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetupRotatePopup::onClose from 0x140442fe0 to 0x140443075 (149 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405edf78\n; > <???> @ 0x1406a2210\n; > <???> @ 0x1406a2244\n; > <???> @ 0x1406da46c\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_10], rbp                                              ; +0x0, 0x140442fe0\npush    rdi                                                            ; +0x5, 0x140442fe5\nsub     rsp, 20h                                                       ; +0x6, 0x140442fe6\nmov     rdi, rcx                                                       ; +0xa, 0x140442fea\nmov     rbp, rdx                                                       ; +0xd, 0x140442fed\nmov     rcx, [rcx+290h]                                                ; +0x10, 0x140442ff0\ntest    rcx, rcx                                                       ; +0x17, 0x140442ff7\njz      short loc_140443004                                            ; +0x1a, 0x140442ffa\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x1c, 0x140442ffc\njmp     short loc_14044300B                                            ; +0x22, 0x140443002\nmov     rax, [rdi+298h]                                                ; +0x24, 0x140443004\ntest    rax, rax                                                       ; +0x2b, 0x14044300b\njz      short loc_140443060                                            ; +0x2e, 0x14044300e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x30, 0x140443010\nmov     rbx, [rax+38h]                                                 ; +0x35, 0x140443015\nmov     eax, [rbx]                                                     ; +0x39, 0x140443019\ntest    eax, eax                                                       ; +0x3b, 0x14044301b\njz      short loc_14044305B                                            ; +0x3d, 0x14044301d\nmov     rbx, [rbx+10h]                                                 ; +0x3f, 0x14044301f\nmov     [rsp+28h+arg_8], rsi                                           ; +0x43, 0x140443023\nlea     rsi, [rax-1]                                                   ; +0x48, 0x140443028\nlea     rsi, [rbx+rsi*8]                                               ; +0x4c, 0x14044302c\ncmp     rbx, rsi                                                       ; +0x50, 0x140443030\nja      short loc_140443056                                            ; +0x53, 0x140443033\nmov     rcx, [rbx]                                                     ; +0x55, 0x140443035\ntest    rcx, rcx                                                       ; +0x58, 0x140443038\njz      short loc_140443056                                            ; +0x5b, 0x14044303b\nmovss   xmm1, dword ptr [rcx+584h]                                     ; +0x5d, 0x14044303d\nxor     r8d, r8d                                                       ; +0x65, 0x140443045\ncall    EnhancedGameObject__createRotateAction                         ; +0x68, 0x140443048\nadd     rbx, 8                                                         ; +0x6d, 0x14044304d\ncmp     rbx, rsi                                                       ; +0x71, 0x140443051\njbe     short loc_140443035                                            ; +0x74, 0x140443054\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x76, 0x140443056\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x14044305b\nmov     rdx, rbp                                                       ; +0x80, 0x140443060\nmov     rcx, rdi                                                       ; +0x83, 0x140443063\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x86, 0x140443066\nadd     rsp, 20h                                                       ; +0x8b, 0x14044306b\npop     rdi                                                            ; +0x8f, 0x14044306f\njmp     SetupTriggerPopup__onClose                                     ; +0x90, 0x140443070", "xrefs": ["<???> @ 0x1405edf78", "<???> @ 0x1406a2210", "<???> @ 0x1406a2244", "<???> @ 0x1406da46c"], "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"}