{"type": "func", "start": 5373371456, "end": 5373371626, "name": "SetupArtSwitchPopup::selectArtClosed", "pseudocode": "// \n// SetupArtSwitchPopup::selectArtClosed from 0x140472440 to 0x1404724ea (170 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405fecf8\n// > <???> @ 0x1406db348\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 SetupArtSwitchPopup::selectArtClosed(SetupArtSwitchPopup *a1, SelectArtLayer *a2)\n{\n  int m_art; // ebx\n  char **v4; // rax\n  __int64 v5; // rcx\n  const char *v6; // rdi\n  __int64 v7; // rbx\n  cocos2d::CCSpriteFrameCache *v8; // rax\n  struct cocos2d::CCSpriteFrame *v9; // rax\n  char *v10[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  m_art = a2->m_art;\n  SetupTriggerPopup::updateValue((SetupArtSwitchPopup *)((char *)a1 - 936), 533, (float)m_art);\n  v4 = sub_1404718C0(v10, (unsigned int)m_art, a1->m_uID);\n  v6 = (const char *)v4;\n  if ( (unsigned __int64)v4[3] > 0xF )\n    v6 = *v4;\n  v7 = **(_QWORD **)&a1->m_nTag;\n  v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5);\n  v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v6);\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v7 + 992))(*(_QWORD *)&a1->m_nTag, v9);\n  sub_14003A830((__int64)v10);\n}", "assembly": "; \n; SetupArtSwitchPopup::selectArtClosed from 0x140472440 to 0x1404724ea (170 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405fecf8\n; > <???> @ 0x1406db348\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, 0x140472440\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140472445\npush    rdi                                                            ; +0xa, 0x14047244a\nsub     rsp, 50h                                                       ; +0xb, 0x14047244b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14047244f\nxor     rax, rsp                                                       ; +0x16, 0x140472456\nmov     [rsp+58h+var_18], rax                                          ; +0x19, 0x140472459\nmov     rsi, rcx                                                       ; +0x1e, 0x14047245e\nmov     ebx, [rdx+288h]                                                ; +0x21, 0x140472461\nmovd    xmm2, ebx                                                      ; +0x27, 0x140472467\ncvtdq2ps xmm2, xmm2                                                    ; +0x2b, 0x14047246b\nadd     rcx, 0FFFFFFFFFFFFFC58h                                        ; +0x2e, 0x14047246e\nmov     edx, 215h                                                      ; +0x35, 0x140472475\ncall    SetupTriggerPopup__updateValue                                 ; +0x3a, 0x14047247a\nmov     r8d, [rsi+8]                                                   ; +0x3f, 0x14047247f\nmov     edx, ebx                                                       ; +0x43, 0x140472483\nlea     rcx, [rsp+58h+var_38]                                          ; +0x45, 0x140472485\ncall    sub_1404718C0                                                  ; +0x4a, 0x14047248a\nmov     rdi, rax                                                       ; +0x4f, 0x14047248f\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x52, 0x140472492\njbe     short loc_14047249C                                            ; +0x57, 0x140472497\nmov     rdi, [rax]                                                     ; +0x59, 0x140472499\nmov     rax, [rsi+10h]                                                 ; +0x5c, 0x14047249c\nmov     rbx, [rax]                                                     ; +0x60, 0x1404724a0\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x63, 0x1404724a3\nmov     rcx, rax                                                       ; +0x69, 0x1404724a9\nmov     rdx, rdi                                                       ; +0x6c, 0x1404724ac\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x6f, 0x1404724af\nmov     rdx, rax                                                       ; +0x75, 0x1404724b5\nmov     rcx, [rsi+10h]                                                 ; +0x78, 0x1404724b8\ncall    qword ptr [rbx+3E0h]                                           ; +0x7c, 0x1404724bc\nnop                                                                    ; +0x82, 0x1404724c2\nlea     rcx, [rsp+58h+var_38]                                          ; +0x83, 0x1404724c3\ncall    sub_14003A830                                                  ; +0x88, 0x1404724c8\nmov     rcx, [rsp+58h+var_18]                                          ; +0x8d, 0x1404724cd\nxor     rcx, rsp; StackCookie                                          ; +0x92, 0x1404724d2\ncall    __security_check_cookie                                        ; +0x95, 0x1404724d5\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x9a, 0x1404724da\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x9f, 0x1404724df\nadd     rsp, 50h                                                       ; +0xa4, 0x1404724e4\npop     rdi                                                            ; +0xa8, 0x1404724e8\nretn                                                                   ; +0xa9, 0x1404724e9", "xrefs": ["<???> @ 0x1405fecf8", "<???> @ 0x1406db348"], "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"}