{"type": "func", "start": 5373363984, "end": 5373364226, "name": "SetupAudioLineGuidePopup::selectSettingClosed", "pseudocode": "// \n// SetupAudioLineGuidePopup::selectSettingClosed from 0x140470710 to 0x140470802 (242 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405fd910\n// > <???> @ 0x1406db2b8\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\n// Hidden C++ exception states: #wind=1\nvoid SetupAudioLineGuidePopup::selectSettingClosed(SetupAudioLineGuidePopup *a1, SelectSettingLayer *a2)\n{\n  int v3; // esi\n  int m_settingID; // r8d\n  SelectSettingType m_type; // edx\n  __int64 v6; // rcx\n  const char *v7; // rdi\n  __int64 v8; // rbx\n  cocos2d::CCSpriteFrameCache *v9; // rax\n  struct cocos2d::CCSpriteFrame *v10; // rax\n  _QWORD v11[4]; // [rsp+28h] [rbp-40h] BYREF\n\n  v3 = 0;\n  m_settingID = a2->m_settingID;\n  m_type = a2->m_type;\n  if ( m_type == StartingSpeed )\n  {\n    if ( m_settingID )\n    {\n      if ( m_settingID != 1 )\n      {\n        switch ( m_settingID )\n        {\n          case 2:\n            v3 = 2;\n            break;\n          case 3:\n            v3 = 3;\n            break;\n          case 4:\n            v3 = 4;\n            break;\n        }\n      }\n    }\n    else\n    {\n      v3 = 1;\n    }\n  }\n  else\n  {\n    v3 = m_settingID;\n  }\n  SelectSettingLayer::frameForItem((__int64)v11, m_type, m_settingID);\n  v7 = (const char *)v11;\n  if ( v11[3] > 0xFu )\n    v7 = (const char *)v11[0];\n  v8 = **(_QWORD **)&a1->m_uID;\n  v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);\n  v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v7);\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v8 + 992))(*(_QWORD *)&a1->m_uID, v10);\n  sub_14003A830((__int64)v11);\n  SetupTriggerPopup::updateValue((SetupAudioLineGuidePopup *)((char *)a1 - 936), 499, (float)v3);\n}", "assembly": "; \n; SetupAudioLineGuidePopup::selectSettingClosed from 0x140470710 to 0x140470802 (242 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405fd910\n; > <???> @ 0x1406db2b8\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], rbx                                              ; +0x0, 0x140470710\npush    rbp                                                            ; +0x5, 0x140470715\npush    rsi                                                            ; +0x6, 0x140470716\npush    rdi                                                            ; +0x7, 0x140470717\nsub     rsp, 50h                                                       ; +0x8, 0x140470718\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14047071c\nxor     rax, rsp                                                       ; +0x13, 0x140470723\nmov     [rsp+68h+var_20], rax                                          ; +0x16, 0x140470726\nmov     rbp, rcx                                                       ; +0x1b, 0x14047072b\nxor     esi, esi                                                       ; +0x1e, 0x14047072e\nmov     r8d, [rdx+280h]                                                ; +0x20, 0x140470730\nmov     edx, [rdx+284h]                                                ; +0x27, 0x140470737\ncmp     edx, 1                                                         ; +0x2d, 0x14047073d\njbe     short loc_14047077D                                            ; +0x30, 0x140470740\ncmp     edx, 2                                                         ; +0x32, 0x140470742\njnz     short loc_14047077D                                            ; +0x35, 0x140470745\nmov     ecx, r8d                                                       ; +0x37, 0x140470747\ntest    r8d, r8d                                                       ; +0x3a, 0x14047074a\njz      short loc_140470776                                            ; +0x3d, 0x14047074d\nsub     ecx, 1                                                         ; +0x3f, 0x14047074f\njz      short loc_140470780                                            ; +0x42, 0x140470752\nsub     ecx, 1                                                         ; +0x44, 0x140470754\njz      short loc_14047076F                                            ; +0x47, 0x140470757\nsub     ecx, 1                                                         ; +0x49, 0x140470759\njz      short loc_140470768                                            ; +0x4c, 0x14047075c\ncmp     ecx, 1                                                         ; +0x4e, 0x14047075e\njnz     short loc_140470780                                            ; +0x51, 0x140470761\nlea     esi, [rdx+2]                                                   ; +0x53, 0x140470763\njmp     short loc_140470780                                            ; +0x56, 0x140470766\nmov     esi, 3                                                         ; +0x58, 0x140470768\njmp     short loc_140470780                                            ; +0x5d, 0x14047076d\nmov     esi, 2                                                         ; +0x5f, 0x14047076f\njmp     short loc_140470780                                            ; +0x64, 0x140470774\nmov     esi, 1                                                         ; +0x66, 0x140470776\njmp     short loc_140470780                                            ; +0x6b, 0x14047077b\nmov     esi, r8d                                                       ; +0x6d, 0x14047077d\nlea     rcx, [rsp+68h+var_40]                                          ; +0x70, 0x140470780\ncall    SelectSettingLayer__frameForItem                               ; +0x75, 0x140470785\nnop                                                                    ; +0x7a, 0x14047078a\nlea     rdi, [rsp+68h+var_40]                                          ; +0x7b, 0x14047078b\ncmp     [rsp+68h+var_28], 0Fh                                          ; +0x80, 0x140470790\ncmova   rdi, [rsp+68h+var_40]                                          ; +0x86, 0x140470796\nmov     rax, [rbp+8]                                                   ; +0x8c, 0x14047079c\nmov     rbx, [rax]                                                     ; +0x90, 0x1404707a0\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x93, 0x1404707a3\nmov     rcx, rax                                                       ; +0x99, 0x1404707a9\nmov     rdx, rdi                                                       ; +0x9c, 0x1404707ac\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x9f, 0x1404707af\nmov     rdx, rax                                                       ; +0xa5, 0x1404707b5\nmov     rcx, [rbp+8]                                                   ; +0xa8, 0x1404707b8\ncall    qword ptr [rbx+3E0h]                                           ; +0xac, 0x1404707bc\nnop                                                                    ; +0xb2, 0x1404707c2\nlea     rcx, [rsp+68h+var_40]                                          ; +0xb3, 0x1404707c3\ncall    sub_14003A830                                                  ; +0xb8, 0x1404707c8\nmovd    xmm2, esi                                                      ; +0xbd, 0x1404707cd\ncvtdq2ps xmm2, xmm2                                                    ; +0xc1, 0x1404707d1\nlea     rcx, [rbp-3A8h]                                                ; +0xc4, 0x1404707d4\nmov     edx, 1F3h                                                      ; +0xcb, 0x1404707db\ncall    SetupTriggerPopup__updateValue                                 ; +0xd0, 0x1404707e0\nmov     rcx, [rsp+68h+var_20]                                          ; +0xd5, 0x1404707e5\nxor     rcx, rsp; StackCookie                                          ; +0xda, 0x1404707ea\ncall    __security_check_cookie                                        ; +0xdd, 0x1404707ed\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe2, 0x1404707f2\nadd     rsp, 50h                                                       ; +0xea, 0x1404707fa\npop     rdi                                                            ; +0xee, 0x1404707fe\npop     rsi                                                            ; +0xef, 0x1404707ff\npop     rbp                                                            ; +0xf0, 0x140470800\nretn                                                                   ; +0xf1, 0x140470801", "xrefs": ["<???> @ 0x1405fd910", "<???> @ 0x1406db2b8"], "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"}