{"type": "func", "start": 6442497088, "end": 6442497397, "name": "cocos2d::extension::CCControlStepper::setValueWithSendingEvent", "pseudocode": "// \n// cocos2d::extension::CCControlStepper::setValueWithSendingEvent from 0x18000b440 to 0x18000b575 (309 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180028b10\n// > <???> @ 0x1800303e8\n// > <???> @ 0x1800303f8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bb88\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:37 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlStepper::setValueWithSendingEvent(\n        cocos2d::extension::CCControlStepper *this,\n        double a2,\n        char a3)\n{\n  double v3; // xmm0_8\n  double v6; // xmm6_8\n  double *v7; // rdi\n  bool v8; // zf\n  __int16 *v9; // rdx\n  __int16 *v10; // rdx\n  _BYTE v11[3]; // [rsp+40h] [rbp+8h] BYREF\n  __int16 v12; // [rsp+50h] [rbp+18h] BYREF\n  char v13; // [rsp+52h] [rbp+1Ah]\n\n  v3 = *((double *)this + 65);\n  v6 = a2;\n  if ( v3 <= a2 )\n  {\n    v7 = (double *)((char *)this + 528);\n    if ( a2 > *((double *)this + 66) )\n    {\n      if ( *((_BYTE *)this + 514) )\n        v6 = *((double *)this + 65);\n      else\n        v6 = *((double *)this + 66);\n    }\n  }\n  else\n  {\n    if ( *((_BYTE *)this + 514) )\n      v6 = *((double *)this + 66);\n    else\n      v6 = *((double *)this + 65);\n    v7 = (double *)((char *)this + 528);\n  }\n  v8 = *((_BYTE *)this + 514) == 0;\n  *((double *)this + 63) = v6;\n  if ( v8 )\n  {\n    if ( v6 == v3 )\n    {\n      v12 = -27757;\n      v9 = &v12;\n      v13 = -109;\n    }\n    else\n    {\n      memset(v11, 55, sizeof(v11));\n      v9 = (__int16 *)v11;\n    }\n    (**(void (__fastcall ***)(__int64, __int16 *))(*((_QWORD *)this + 61) + 320LL))(*((_QWORD *)this + 61) + 320LL, v9);\n    if ( v6 == *v7 )\n    {\n      v12 = -27757;\n      v10 = &v12;\n      v13 = -109;\n    }\n    else\n    {\n      memset(v11, 55, sizeof(v11));\n      v10 = (__int16 *)v11;\n    }\n    (**(void (__fastcall ***)(__int64, __int16 *))(*((_QWORD *)this + 62) + 320LL))(*((_QWORD *)this + 62) + 320LL, v10);\n  }\n  if ( a3 )\n    (*(void (__fastcall **)(cocos2d::extension::CCControlStepper *, __int64))(*(_QWORD *)this + 1088LL))(this, 256);\n}", "assembly": "; \n; cocos2d::extension::CCControlStepper::setValueWithSendingEvent from 0x18000b440 to 0x18000b575 (309 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180028b10\n; > <???> @ 0x1800303e8\n; > <???> @ 0x1800303f8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bb88\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:37 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000b440\nsub     rsp, 30h                                                       ; +0x2, 0x18000b442\nmovsd   xmm0, qword ptr [rcx+208h]                                     ; +0x6, 0x18000b446\nmov     rbx, rcx                                                       ; +0xe, 0x18000b44e\ncomisd  xmm0, xmm1                                                     ; +0x11, 0x18000b451\nmov     [rsp+38h+arg_8], rsi                                           ; +0x15, 0x18000b455\nmovzx   esi, r8b                                                       ; +0x1a, 0x18000b45a\nmov     [rsp+38h+arg_18], rdi                                          ; +0x1e, 0x18000b45e\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x23, 0x18000b463\nmovaps  xmm6, xmm1                                                     ; +0x28, 0x18000b468\njbe     short loc_18000B493                                            ; +0x2b, 0x18000b46b\ncmp     byte ptr [rcx+202h], 0                                         ; +0x2d, 0x18000b46d\njz      short loc_18000B487                                            ; +0x34, 0x18000b474\nmovsd   xmm6, qword ptr [rcx+210h]                                     ; +0x36, 0x18000b476\nlea     rdi, [rcx+210h]                                                ; +0x3e, 0x18000b47e\njmp     short loc_18000B4B5                                            ; +0x45, 0x18000b485\nmovaps  xmm6, xmm0                                                     ; +0x47, 0x18000b487\nlea     rdi, [rcx+210h]                                                ; +0x4a, 0x18000b48a\njmp     short loc_18000B4B5                                            ; +0x51, 0x18000b491\nlea     rdi, [rcx+210h]                                                ; +0x53, 0x18000b493\nmovsd   xmm1, qword ptr [rdi]                                          ; +0x5a, 0x18000b49a\ncomisd  xmm6, xmm1                                                     ; +0x5e, 0x18000b49e\njbe     short loc_18000B4B5                                            ; +0x62, 0x18000b4a2\ncmp     byte ptr [rcx+202h], 0                                         ; +0x64, 0x18000b4a4\njz      short loc_18000B4B2                                            ; +0x6b, 0x18000b4ab\nmovaps  xmm6, xmm0                                                     ; +0x6d, 0x18000b4ad\njmp     short loc_18000B4B5                                            ; +0x70, 0x18000b4b0\nmovaps  xmm6, xmm1                                                     ; +0x72, 0x18000b4b2\ncmp     byte ptr [rcx+202h], 0                                         ; +0x75, 0x18000b4b5\nmovsd   qword ptr [rcx+1F8h], xmm6                                     ; +0x7c, 0x18000b4bc\njnz     short loc_18000B544                                            ; +0x84, 0x18000b4c4\nucomisd xmm6, xmm0                                                     ; +0x86, 0x18000b4c6\njp      short loc_18000B4E1                                            ; +0x8a, 0x18000b4ca\njnz     short loc_18000B4E1                                            ; +0x8c, 0x18000b4cc\nmov     [rsp+38h+arg_10], 9393h                                        ; +0x8e, 0x18000b4ce\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x95, 0x18000b4d5\nmov     [rsp+38h+arg_12], 93h                                          ; +0x9a, 0x18000b4da\njmp     short loc_18000B4F2                                            ; +0x9f, 0x18000b4df\nmov     [rsp+38h+arg_0], 3737h                                         ; +0xa1, 0x18000b4e1\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xa8, 0x18000b4e8\nmov     [rsp+38h+arg_2], 37h ; '7'                                     ; +0xad, 0x18000b4ed\nmov     rcx, [rcx+1E8h]                                                ; +0xb2, 0x18000b4f2\nadd     rcx, 140h                                                      ; +0xb9, 0x18000b4f9\nmov     rax, [rcx]                                                     ; +0xc0, 0x18000b500\ncall    qword ptr [rax]                                                ; +0xc3, 0x18000b503\nucomisd xmm6, qword ptr [rdi]                                          ; +0xc5, 0x18000b505\njp      short loc_18000B520                                            ; +0xc9, 0x18000b509\njnz     short loc_18000B520                                            ; +0xcb, 0x18000b50b\nmov     [rsp+38h+arg_10], 9393h                                        ; +0xcd, 0x18000b50d\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xd4, 0x18000b514\nmov     [rsp+38h+arg_12], 93h                                          ; +0xd9, 0x18000b519\njmp     short loc_18000B531                                            ; +0xde, 0x18000b51e\nmov     [rsp+38h+arg_0], 3737h                                         ; +0xe0, 0x18000b520\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xe7, 0x18000b527\nmov     [rsp+38h+arg_2], 37h ; '7'                                     ; +0xec, 0x18000b52c\nmov     rcx, [rbx+1F0h]                                                ; +0xf1, 0x18000b531\nadd     rcx, 140h                                                      ; +0xf8, 0x18000b538\nmov     rax, [rcx]                                                     ; +0xff, 0x18000b53f\ncall    qword ptr [rax]                                                ; +0x102, 0x18000b542\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x104, 0x18000b544\ntest    sil, sil                                                       ; +0x109, 0x18000b549\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x10c, 0x18000b54c\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x111, 0x18000b551\njz      short loc_18000B56F                                            ; +0x116, 0x18000b556\nmov     rax, [rbx]                                                     ; +0x118, 0x18000b558\nmov     edx, 100h                                                      ; +0x11b, 0x18000b55b\nmov     rcx, rbx                                                       ; +0x120, 0x18000b560\nadd     rsp, 30h                                                       ; +0x123, 0x18000b563\npop     rbx                                                            ; +0x127, 0x18000b567\njmp     qword ptr [rax+440h]                                           ; +0x128, 0x18000b568\nadd     rsp, 30h                                                       ; +0x12f, 0x18000b56f\npop     rbx                                                            ; +0x133, 0x18000b573\nretn                                                                   ; +0x134, 0x18000b574", "xrefs": ["<???> @ 0x180028b10", "<???> @ 0x1800303e8", "<???> @ 0x1800303f8", "<???> @ 0x180032408", "<???> @ 0x18004bb88"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}