{"type": "func", "start": 10236776, "end": 10237100, "name": "CreateParticlePopup::textChanged", "pseudocode": "// \n// CreateParticlePopup::textChanged from 0x9c3368 to 0x9c34ac (324 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0x9c34b0\n// > <???> @ 0x68da8\n// > <???> @ 0x11c8b10\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\nvoid CreateParticlePopup::textChanged(CreateParticlePopup *a1, CCTextInputNode *a2)\n{\n  float v4; // s8\n  char *v5; // x0\n  gjParticleValue v6; // w0\n  gjParticleValue v7; // w0\n  unsigned int *v8; // x2\n  int v9; // w1\n  char *v10; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( !a1->m_disableTextDelegate )\n  {\n    CCTextInputNode::getString(a2, (__int64)&v10);\n    v4 = atof(v10);\n    v5 = v10 - 24;\n    if ( v10 - 24 != (char *)&qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v8 = (unsigned int *)(v10 - 8);\n        do\n          v9 = __ldaxr(v8);\n        while ( __stlxr(v9 - 1, v8) );\n      }\n      else\n      {\n        v9 = *((_DWORD *)v10 - 2);\n        *((_DWORD *)v10 - 2) = v9 - 1;\n      }\n      if ( v9 <= 0 )\n        operator delete(v5);\n    }\n    if ( a2->getTag(a2) == 5 && v4 < 1.0 )\n      v4 = 1.0;\n    v6 = a2->getTag(a2);\n    CreateParticlePopup::updateParticleValueForType(a1, v4, v6, nullptr);\n    v7 = a2->getTag(a2);\n    CreateParticlePopup::updateSliderForType(a1, v7);\n  }\n}", "assembly": "; \n; CreateParticlePopup::textChanged from 0x9c3368 to 0x9c34ac (324 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0x9c34b0\n; > <???> @ 0x68da8\n; > <???> @ 0x11c8b10\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x9c3368\nMOV             X29, SP                                                ; +0x4, 0x9c336c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x9c3370\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9c3374\nMOV             X20, X1                                                ; +0x10, 0x9c3378\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x9c337c\nMOV             X21, X0                                                ; +0x18, 0x9c3380\nLDRB            W0, [X0,#0x2A8]                                        ; +0x1c, 0x9c3384\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x9c3388\nSTR             D8, [SP,#0x50+var_28]                                  ; +0x24, 0x9c338c\nLDR             X1, [X1]                                               ; +0x28, 0x9c3390\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x2c, 0x9c3394\nCBZ             W0, loc_9C33C4                                         ; +0x30, 0x9c3398\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x9c339c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x38, 0x9c33a0\nLDR             X0, [X19]                                              ; +0x3c, 0x9c33a4\nCMP             X1, X0                                                 ; +0x40, 0x9c33a8\nB.NE            loc_9C34A8                                             ; +0x44, 0x9c33ac\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x48, 0x9c33b0\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x4c, 0x9c33b4\nLDR             D8, [SP,#0x50+var_28]                                  ; +0x50, 0x9c33b8\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x54, 0x9c33bc\nRET                                                                    ; +0x58, 0x9c33c0\nADD             X8, X29, #0x50+var_10                                  ; +0x5c, 0x9c33c4\nMOV             X0, X20; this                                          ; +0x60, 0x9c33c8\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x64, 0x9c33cc\nLDR             X0, [X29,#0x50+var_10]; char *                         ; +0x68, 0x9c33d0\nBL              .atof                                                  ; +0x6c, 0x9c33d4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x70, 0x9c33d8\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x74, 0x9c33dc\nFCVT            S8, D0                                                 ; +0x78, 0x9c33e0\nSUB             X0, X2, #0x18; p                                       ; +0x7c, 0x9c33e4\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x80, 0x9c33e8\nCMP             X0, X1                                                 ; +0x84, 0x9c33ec\nB.NE            loc_9C3464                                             ; +0x88, 0x9c33f0\nLDR             X1, [X20]                                              ; +0x8c, 0x9c33f4\nMOV             X0, X20                                                ; +0x90, 0x9c33f8\nLDR             X1, [X1,#0x40]                                         ; +0x94, 0x9c33fc\nBLR             X1                                                     ; +0x98, 0x9c3400\nCMP             W0, #5                                                 ; +0x9c, 0x9c3404\nB.NE            loc_9C3418                                             ; +0xa0, 0x9c3408\nFMOV            S0, #1.0                                               ; +0xa4, 0x9c340c\nFCMPE           S8, S0                                                 ; +0xa8, 0x9c3410\nB.MI            loc_9C345C                                             ; +0xac, 0x9c3414\nLDR             X1, [X20]                                              ; +0xb0, 0x9c3418\nMOV             X0, X20                                                ; +0xb4, 0x9c341c\nLDR             X1, [X1,#0x40]                                         ; +0xb8, 0x9c3420\nBLR             X1                                                     ; +0xbc, 0x9c3424\nMOV             W1, W0                                                 ; +0xc0, 0x9c3428\nFMOV            S0, S8                                                 ; +0xc4, 0x9c342c\nMOV             X0, X21                                                ; +0xc8, 0x9c3430\nMOV             X2, #0                                                 ; +0xcc, 0x9c3434\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0xd0, 0x9c3438\nLDR             X1, [X20]                                              ; +0xd4, 0x9c343c\nMOV             X0, X20                                                ; +0xd8, 0x9c3440\nLDR             X1, [X1,#0x40]                                         ; +0xdc, 0x9c3444\nBLR             X1                                                     ; +0xe0, 0x9c3448\nMOV             W1, W0                                                 ; +0xe4, 0x9c344c\nMOV             X0, X21                                                ; +0xe8, 0x9c3450\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0xec, 0x9c3454\nB               loc_9C339C                                             ; +0xf0, 0x9c3458\nFMOV            S8, S0                                                 ; +0xf4, 0x9c345c\nB               loc_9C3418                                             ; +0xf8, 0x9c3460\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xfc, 0x9c3464\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x100, 0x9c3468\nCBZ             X1, loc_9C3498                                         ; +0x104, 0x9c346c\nSUB             X2, X2, #8                                             ; +0x108, 0x9c3470\nLDAXR           W1, [X2]                                               ; +0x10c, 0x9c3474\nSUB             W3, W1, #1                                             ; +0x110, 0x9c3478\nSTLXR           W4, W3, [X2]                                           ; +0x114, 0x9c347c\nCBNZ            W4, loc_9C3474                                         ; +0x118, 0x9c3480\nCMP             W1, WZR                                                ; +0x11c, 0x9c3484\nB.GT            loc_9C33F4                                             ; +0x120, 0x9c3488\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x9c348c\nBL              j__ZdlPv; operator delete(void *)                      ; +0x128, 0x9c3490\nB               loc_9C33F4                                             ; +0x12c, 0x9c3494\nLDUR            W1, [X2,#-8]                                           ; +0x130, 0x9c3498\nSUB             W3, W1, #1                                             ; +0x134, 0x9c349c\nSTUR            W3, [X2,#-8]                                           ; +0x138, 0x9c34a0\nB               loc_9C3484                                             ; +0x13c, 0x9c34a4\nBL              .__stack_chk_fail                                      ; +0x140, 0x9c34a8", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::textChanged @ 0x9c34b0", "<???> @ 0x68da8", "<???> @ 0x11c8b10"], "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"}