{"type": "func", "start": 5372996288, "end": 5372996483, "name": "SetupCameraOffsetTrigger::valuePopupClosed", "pseudocode": "// \n// SetupCameraOffsetTrigger::valuePopupClosed from 0x140416ac0 to 0x140416b83 (195 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405df7e0\n// > <???> @ 0x1405e6e20\n// > <???> @ 0x14069fb8c\n// > <???> @ 0x14069fb9c\n// > <???> @ 0x1406d8f30\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// Merged with: SetupCameraOffsetTrigger::valuePopupClosed, SetupMGTrigger::valuePopupClosed\n__int64 __fastcall SetupCameraOffsetTrigger::valuePopupClosed(__int64 a1, __int64 a2, float a3)\n{\n  cocos2d::CCString *v4; // rax\n  int v5; // xmm1_4\n  float v6; // xmm2_4\n  __int64 v7; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v9; // rax\n\n  v4 = cocos2d::CCString::createWithFormat(\"%.02f\", a3);\n  v5 = 1036831949;\n  v6 = fminf(20.0, cocos2d::CCString::floatValue(v4));\n  if ( v6 >= 0.1 )\n    v5 = LODWORD(v6);\n  *(_DWORD *)(a1 + 332) = v5;\n  v7 = *(_QWORD *)(a1 + 16);\n  if ( v7 )\n  {\n    *(_DWORD *)(v7 + 1516) = v5;\n  }\n  else\n  {\n    for ( i = 0;\n          i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 24));\n          HIDWORD(v9[27].__vftable) = *(_DWORD *)(a1 + 332) )\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 24), i++);\n    }\n  }\n  return SetupCameraOffsetTrigger::updateEasingRateLabel(a1 - 640);\n}", "assembly": "; \n; SetupCameraOffsetTrigger::valuePopupClosed from 0x140416ac0 to 0x140416b83 (195 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405df7e0\n; > <???> @ 0x1405e6e20\n; > <???> @ 0x14069fb8c\n; > <???> @ 0x14069fb9c\n; > <???> @ 0x1406d8f30\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_8], rbx                                               ; +0x0, 0x140416ac0\npush    rsi                                                            ; +0x5, 0x140416ac5\nsub     rsp, 20h                                                       ; +0x6, 0x140416ac6\nxorps   xmm1, xmm1                                                     ; +0xa, 0x140416aca\nmov     rbx, rcx                                                       ; +0xd, 0x140416acd\ncvtss2sd xmm1, xmm2                                                    ; +0x10, 0x140416ad0\nlea     rcx, a02f; \"%.02f\"                                             ; +0x14, 0x140416ad4\nmovq    rdx, xmm1                                                      ; +0x1b, 0x140416adb\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x20, 0x140416ae0\nmov     rcx, rax                                                       ; +0x26, 0x140416ae6\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x29, 0x140416ae9\nmovss   xmm2, cs:dword_140623120                                       ; +0x2f, 0x140416aef\nmovss   xmm1, cs:dword_140622A10                                       ; +0x37, 0x140416af7\nminss   xmm2, xmm0                                                     ; +0x3f, 0x140416aff\ncomiss  xmm1, xmm2                                                     ; +0x43, 0x140416b03\nja      short loc_140416B0B                                            ; +0x46, 0x140416b06\nmovaps  xmm1, xmm2                                                     ; +0x48, 0x140416b08\nmovss   dword ptr [rbx+14Ch], xmm1                                     ; +0x4b, 0x140416b0b\nmov     rax, [rbx+10h]                                                 ; +0x53, 0x140416b13\ntest    rax, rax                                                       ; +0x57, 0x140416b17\njz      short loc_140416B26                                            ; +0x5a, 0x140416b1a\nmovss   dword ptr [rax+5ECh], xmm1                                     ; +0x5c, 0x140416b1c\njmp     short loc_140416B6D                                            ; +0x64, 0x140416b24\nmov     rcx, [rbx+18h]                                                 ; +0x66, 0x140416b26\nmov     [rsp+28h+arg_0], rdi                                           ; +0x6a, 0x140416b2a\nxor     edi, edi                                                       ; +0x6f, 0x140416b2f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x71, 0x140416b31\ntest    eax, eax                                                       ; +0x77, 0x140416b37\njz      short loc_140416B68                                            ; +0x79, 0x140416b39\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x140416b3b\nmov     rcx, [rbx+18h]                                                 ; +0x80, 0x140416b40\nmov     edx, edi                                                       ; +0x84, 0x140416b44\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x86, 0x140416b46\nmov     edx, [rbx+14Ch]                                                ; +0x8c, 0x140416b4c\ninc     edi                                                            ; +0x92, 0x140416b52\nmov     [rax+5ECh], edx                                                ; +0x94, 0x140416b54\nmov     rcx, [rbx+18h]                                                 ; +0x9a, 0x140416b5a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x140416b5e\ncmp     edi, eax                                                       ; +0xa4, 0x140416b64\njb      short loc_140416B40                                            ; +0xa6, 0x140416b66\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa8, 0x140416b68\nlea     rcx, [rbx-280h]                                                ; +0xad, 0x140416b6d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb4, 0x140416b74\nadd     rsp, 20h                                                       ; +0xb9, 0x140416b79\npop     rsi                                                            ; +0xbd, 0x140416b7d\njmp     SetupCameraOffsetTrigger__updateEasingRateLabel; Merged with: SetupCameraOffsetTrigger::updateEasingRateLabel, SetupMGTrigger::updateEasingRateLabel ; +0xbe, 0x140416b7e", "xrefs": ["<???> @ 0x1405df7e0", "<???> @ 0x1405e6e20", "<???> @ 0x14069fb8c", "<???> @ 0x14069fb9c", "<???> @ 0x1406d8f30"], "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"}