{"type": "func", "start": 5370431184, "end": 5370431887, "name": "GJScaleControl::createScaleInput", "pseudocode": "// \n// GJScaleControl::createScaleInput from 0x1401a46d0 to 0x1401a498f (703 bytes)\n// \n// 4 xrefs:\n// > GJScaleControl::init @ 0x1401a340e\n// > GJScaleControl::init @ 0x1401a34e0\n// > GJScaleControl::init @ 0x1401a35b2\n// > <???> @ 0x140919ac0\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 11:27:49 +0000\n// \n\nchar *__fastcall GJScaleControl::createScaleInput(_QWORD **a1, __int64 a2, unsigned int a3, cocos2d::CCObject **a4)\n{\n  char *v8; // r14\n  __int64 v9; // rax\n  __int64 v10; // rax\n  _QWORD *v11; // rdi\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v14; // rdx\n  struct cocos2d::CCSprite *v15; // rax\n  cocos2d::CCObject *v16; // rbx\n  __int64 v17; // rax\n  void *v19[4]; // [rsp+30h] [rbp-48h] BYREF\n  _BYTE v20[16]; // [rsp+50h] [rbp-28h] BYREF\n\n  v8 = CCTextInputNode::create((__int64)a1, a2, (__int64)\" \");\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.0, 0.0);\n  cocos2d::CCPoint::operator+(a2, v19, v9);\n  (*(void (__fastcall **)(char *, void **))(*(_QWORD *)v8 + 184LL))(v8, v19);\n  *((_DWORD *)v8 + 141) = 1056293520;\n  CCTextInputNode::refreshLabel((__int64)v8);\n  *((_DWORD *)v8 + 140) = 1111490560;\n  CCTextInputNode::refreshLabel((__int64)v8);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v8 + 74) + 336LL))(*((_QWORD *)v8 + 74), 0);\n  *((_DWORD *)v8 + 152) = 6;\n  *((_DWORD *)v8 + 179) = 1;\n  *((_DWORD *)v8 + 180) = 2;\n  HIDWORD(v19[1]) = 0;\n  v19[2] = (void *)11;\n  v19[3] = (void *)15;\n  strcpy((char *)v19, \"0123456789.\");\n  CCTextInputNode::setAllowedChars((__int64)v8, v19);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, 0.0, 0.0, 40.0, 40.0);\n  v11 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create(\"square02_small.png\", v10);\n  v12 = *v11;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, 80.0, 32.0);\n  (*(void (__fastcall **)(_QWORD *, __int64))(v12 + 312))(v11, v13);\n  (*(void (__fastcall **)(_QWORD *))(*v11 + 160LL))(v11);\n  LOBYTE(v14) = 90;\n  (*(void (__fastcall **)(_QWORD *, __int64))(v11[40] + 40LL))(v11 + 40, v14);\n  (*(void (__fastcall **)(_QWORD *))(*v11 + 240LL))(v11);\n  (*(void (__fastcall **)(char *, _QWORD *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v11, 0xFFFFFFFFLL);\n  ((void (__fastcall *)(_QWORD **, char *, __int64))(*a1)[57])(a1, v8, 2);\n  v15 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_updateBtn_001.png\");\n  LODWORD(v12) = (_DWORD)v15;\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 160LL))(v15);\n  v16 = CCMenuItemSpriteExtra::create(v12, 0, (int)a1, (__int64)GJScaleControl::onApplyScale);\n  (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v16 + 64LL))(v16, a3);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 41.0, 0.0);\n  cocos2d::CCPoint::operator+(a2, v19, v17);\n  (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v16 + 184LL))(v16, v19);\n  (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject *))(*a1[67] + 464LL))(a1[67], v16);\n  *a4 = v16;\n  return v8;\n}", "assembly": "; \n; GJScaleControl::createScaleInput from 0x1401a46d0 to 0x1401a498f (703 bytes)\n; \n; 4 xrefs:\n; > GJScaleControl::init @ 0x1401a340e\n; > GJScaleControl::init @ 0x1401a34e0\n; > GJScaleControl::init @ 0x1401a35b2\n; > <???> @ 0x140919ac0\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 11:27:49 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401a46d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401a46d5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1401a46da\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1401a46df\npush    r12                                                            ; +0x14, 0x1401a46e4\npush    r14                                                            ; +0x16, 0x1401a46e6\npush    r15                                                            ; +0x18, 0x1401a46e8\nsub     rsp, 60h                                                       ; +0x1a, 0x1401a46ea\nmovss   xmm1, cs:dword_1408355A8                                       ; +0x1e, 0x1401a46ee\nlea     rax, qword_140704F78                                           ; +0x26, 0x1401a46f6\nmovss   xmm0, cs:dword_1408356A4                                       ; +0x2d, 0x1401a46fd\nmov     esi, r8d                                                       ; +0x35, 0x1401a4705\nmov     [rsp+78h+var_50], rax                                          ; +0x38, 0x1401a4708\nlea     r8, asc_1406ED6E4; \" \"                                         ; +0x3d, 0x1401a470d\nmov     [rsp+78h+var_58], 18h                                          ; +0x44, 0x1401a4714\nmov     r12, r9                                                        ; +0x4c, 0x1401a471c\nmov     rbp, rdx                                                       ; +0x4f, 0x1401a471f\nmov     r15, rcx                                                       ; +0x52, 0x1401a4722\ncall    CCTextInputNode__create                                        ; +0x55, 0x1401a4725\nxorps   xmm2, xmm2                                                     ; +0x5a, 0x1401a472a\nlea     rcx, [rsp+78h+var_28]                                          ; +0x5d, 0x1401a472d\nxorps   xmm1, xmm1                                                     ; +0x62, 0x1401a4732\nmov     r14, rax                                                       ; +0x65, 0x1401a4735\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x68, 0x1401a4738\nlea     rdx, [rsp+78h+var_48]                                          ; +0x6e, 0x1401a473e\nmov     rcx, rbp                                                       ; +0x73, 0x1401a4743\nmov     r8, rax                                                        ; +0x76, 0x1401a4746\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x79, 0x1401a4749\nmov     rcx, [r14]                                                     ; +0x7f, 0x1401a474f\nlea     rdx, [rsp+78h+var_48]                                          ; +0x82, 0x1401a4752\nmov     r8, [rcx+0B8h]                                                 ; +0x87, 0x1401a4757\nmov     rcx, r14                                                       ; +0x8e, 0x1401a475e\ncall    r8                                                             ; +0x91, 0x1401a4761\nmov     rcx, r14                                                       ; +0x94, 0x1401a4764\nmov     dword ptr [r14+234h], 3EF5C290h                                ; +0x97, 0x1401a4767\ncall    CCTextInputNode__refreshLabel                                  ; +0xa2, 0x1401a4772\nmov     rcx, r14                                                       ; +0xa7, 0x1401a4777\nmov     dword ptr [r14+230h], 42400000h                                ; +0xaa, 0x1401a477a\ncall    CCTextInputNode__refreshLabel                                  ; +0xb5, 0x1401a4785\nmov     rcx, [r14+250h]                                                ; +0xba, 0x1401a478a\nxor     edx, edx                                                       ; +0xc1, 0x1401a4791\nmov     rax, [rcx]                                                     ; +0xc3, 0x1401a4793\ncall    qword ptr [rax+150h]                                           ; +0xc6, 0x1401a4796\nmov     dword ptr [r14+260h], 6                                        ; +0xcc, 0x1401a479c\nlea     rdx, [rsp+78h+var_48]                                          ; +0xd7, 0x1401a47a7\nmov     dword ptr [r14+2CCh], 1                                        ; +0xdc, 0x1401a47ac\nmov     rcx, r14                                                       ; +0xe7, 0x1401a47b7\nmov     dword ptr [r14+2D0h], 2                                        ; +0xea, 0x1401a47ba\nmovzx   eax, cs:word_1407341C0                                         ; +0xf5, 0x1401a47c5\nmovsd   xmm0, cs:qword_1407341B8                                       ; +0xfc, 0x1401a47cc\nmov     word ptr [rsp+78h+var_48+8], ax                                ; +0x104, 0x1401a47d4\nmovzx   eax, cs:byte_1407341C2                                         ; +0x109, 0x1401a47d9\nmov     [rsp+78h+var_48+0Ah], al                                       ; +0x110, 0x1401a47e0\nmov     dword ptr [rsp+78h+var_48+0Ch], 0                              ; +0x114, 0x1401a47e4\nmov     [rsp+78h+var_38], 0Bh                                          ; +0x11c, 0x1401a47ec\nmov     [rsp+78h+var_30], 0Fh                                          ; +0x125, 0x1401a47f5\nmovsd   qword ptr [rsp+78h+var_48], xmm0                               ; +0x12e, 0x1401a47fe\nmov     [rsp+78h+var_48+0Bh], 0                                        ; +0x134, 0x1401a4804\ncall    CCTextInputNode__setAllowedChars                               ; +0x139, 0x1401a4809\nmovss   xmm3, cs:dword_140835674                                       ; +0x13e, 0x1401a480e\nlea     rcx, [rsp+78h+var_48]                                          ; +0x146, 0x1401a4816\nxorps   xmm2, xmm2                                                     ; +0x14b, 0x1401a481b\nmovss   [rsp+78h+var_58], xmm3                                         ; +0x14e, 0x1401a481e\nxorps   xmm1, xmm1                                                     ; +0x154, 0x1401a4824\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x157, 0x1401a4827\nmov     rdx, rax                                                       ; +0x15d, 0x1401a482d\nlea     rcx, aSquare02SmallP; \"square02_small.png\"                     ; +0x160, 0x1401a4830\ncall    cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0x167, 0x1401a4837\nmovss   xmm2, cs:dword_140835640                                       ; +0x16d, 0x1401a483d\nlea     rcx, [rsp+78h+var_28]                                          ; +0x175, 0x1401a4845\nmovss   xmm1, cs:dword_14083574C                                       ; +0x17a, 0x1401a484a\nmov     rdi, rax                                                       ; +0x182, 0x1401a4852\nmov     rbx, [rax]                                                     ; +0x185, 0x1401a4855\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x188, 0x1401a4858\nmov     rdx, rax                                                       ; +0x18e, 0x1401a485e\nmov     rcx, rdi                                                       ; +0x191, 0x1401a4861\ncall    qword ptr [rbx+138h]                                           ; +0x194, 0x1401a4864\nmov     rcx, [rdi]                                                     ; +0x19a, 0x1401a486a\nmovss   xmm1, cs:dword_140834F80                                       ; +0x19d, 0x1401a486d\nmov     rdx, [rcx+0A0h]                                                ; +0x1a5, 0x1401a4875\nmov     rcx, rdi                                                       ; +0x1ac, 0x1401a487c\ncall    rdx                                                            ; +0x1af, 0x1401a487f\nlea     rcx, [rdi+140h]                                                ; +0x1b1, 0x1401a4881\nmov     dl, 5Ah ; 'Z'                                                  ; +0x1b8, 0x1401a4888\nmov     rax, [rcx]                                                     ; +0x1ba, 0x1401a488a\ncall    qword ptr [rax+28h]                                            ; +0x1bd, 0x1401a488d\nmov     rax, [rdi]                                                     ; +0x1c0, 0x1401a4890\nxorps   xmm1, xmm1                                                     ; +0x1c3, 0x1401a4893\nmovss   xmm2, cs:dword_140835C7C                                       ; +0x1c6, 0x1401a4896\nmov     rcx, rdi                                                       ; +0x1ce, 0x1401a489e\ncall    qword ptr [rax+0F0h]                                           ; +0x1d1, 0x1401a48a1\nmov     rax, [r14]                                                     ; +0x1d7, 0x1401a48a7\nmov     r8d, 0FFFFFFFFh                                                ; +0x1da, 0x1401a48aa\nmov     rdx, rdi                                                       ; +0x1e0, 0x1401a48b0\nmov     rcx, r14                                                       ; +0x1e3, 0x1401a48b3\ncall    qword ptr [rax+1C8h]                                           ; +0x1e6, 0x1401a48b6\nmov     rax, [r15]                                                     ; +0x1ec, 0x1401a48bc\nmov     r8d, 2                                                         ; +0x1ef, 0x1401a48bf\nmov     rdx, r14                                                       ; +0x1f5, 0x1401a48c5\nmov     rcx, r15                                                       ; +0x1f8, 0x1401a48c8\ncall    qword ptr [rax+1C8h]                                           ; +0x1fb, 0x1401a48cb\nlea     rcx, aGjUpdatebtn001; \"GJ_updateBtn_001.png\"                   ; +0x201, 0x1401a48d1\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x208, 0x1401a48d8\nmovss   xmm1, cs:dword_140834EDC                                       ; +0x20e, 0x1401a48de\nmov     rbx, rax                                                       ; +0x216, 0x1401a48e6\nmov     rcx, [rax]                                                     ; +0x219, 0x1401a48e9\nmov     rdx, [rcx+0A0h]                                                ; +0x21c, 0x1401a48ec\nmov     rcx, rax                                                       ; +0x223, 0x1401a48f3\ncall    rdx                                                            ; +0x226, 0x1401a48f6\nlea     r9, GJScaleControl__onApplyScale                               ; +0x228, 0x1401a48f8\nmov     r8, r15                                                        ; +0x22f, 0x1401a48ff\nxor     edx, edx                                                       ; +0x232, 0x1401a4902\nmov     rcx, rbx                                                       ; +0x234, 0x1401a4904\ncall    CCMenuItemSpriteExtra__create                                  ; +0x237, 0x1401a4907\nmov     edx, esi                                                       ; +0x23c, 0x1401a490c\nmov     rbx, rax                                                       ; +0x23e, 0x1401a490e\nmov     rcx, [rax]                                                     ; +0x241, 0x1401a4911\nmov     r8, [rcx+40h]                                                  ; +0x244, 0x1401a4914\nmov     rcx, rax                                                       ; +0x248, 0x1401a4918\ncall    r8                                                             ; +0x24b, 0x1401a491b\nmovss   xmm1, cs:dword_140835678                                       ; +0x24e, 0x1401a491e\nlea     rcx, [rsp+78h+var_28]                                          ; +0x256, 0x1401a4926\nxorps   xmm2, xmm2                                                     ; +0x25b, 0x1401a492b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x25e, 0x1401a492e\nlea     rdx, [rsp+78h+var_48]                                          ; +0x264, 0x1401a4934\nmov     rcx, rbp                                                       ; +0x269, 0x1401a4939\nmov     r8, rax                                                        ; +0x26c, 0x1401a493c\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x26f, 0x1401a493f\nmov     rax, [rbx]                                                     ; +0x275, 0x1401a4945\nlea     rdx, [rsp+78h+var_48]                                          ; +0x278, 0x1401a4948\nmov     rcx, rbx                                                       ; +0x27d, 0x1401a494d\ncall    qword ptr [rax+0B8h]                                           ; +0x280, 0x1401a4950\nmov     rcx, [r15+218h]                                                ; +0x286, 0x1401a4956\nmov     rdx, rbx                                                       ; +0x28d, 0x1401a495d\nmov     rax, [rcx]                                                     ; +0x290, 0x1401a4960\ncall    qword ptr [rax+1D0h]                                           ; +0x293, 0x1401a4963\nlea     r11, [rsp+78h+var_18]                                          ; +0x299, 0x1401a4969\nmov     [r12], rbx                                                     ; +0x29e, 0x1401a496e\nmov     rbx, [r11+20h]                                                 ; +0x2a2, 0x1401a4972\nmov     rax, r14                                                       ; +0x2a6, 0x1401a4976\nmov     rbp, [r11+28h]                                                 ; +0x2a9, 0x1401a4979\nmov     rsi, [r11+30h]                                                 ; +0x2ad, 0x1401a497d\nmov     rdi, [r11+38h]                                                 ; +0x2b1, 0x1401a4981\nmov     rsp, r11                                                       ; +0x2b5, 0x1401a4985\npop     r15                                                            ; +0x2b8, 0x1401a4988\npop     r14                                                            ; +0x2ba, 0x1401a498a\npop     r12                                                            ; +0x2bc, 0x1401a498c\nretn                                                                   ; +0x2be, 0x1401a498e", "xrefs": ["GJScaleControl::init @ 0x1401a340e", "GJScaleControl::init @ 0x1401a34e0", "GJScaleControl::init @ 0x1401a35b2", "<???> @ 0x140919ac0"], "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"}