{"type": "func", "start": 5444156, "end": 5444368, "name": "CreateParticlePopup::updateInputNodeStringForType", "pseudocode": "// \n// CreateParticlePopup::updateInputNodeStringForType from 0x53123c to 0x531310 (212 bytes)\n// \n// 22 xrefs:\n// > CreateParticlePopup::createParticleSlider @ 0x5315c8\n// > CreateParticlePopup::onDuplicateColor @ 0x5319dc\n// > CreateParticlePopup::onDuplicateColor @ 0x5319e4\n// > CreateParticlePopup::onDuplicateColor @ 0x5319ec\n// > CreateParticlePopup::colorSelectClosed @ 0x531b5e\n// > CreateParticlePopup::colorSelectClosed @ 0x531b66\n// > CreateParticlePopup::colorSelectClosed @ 0x531b6e\n// > CreateParticlePopup::colorSelectClosed @ 0x531c32\n// > CreateParticlePopup::colorSelectClosed @ 0x531c3a\n// > CreateParticlePopup::colorSelectClosed @ 0x531c42\n// > CreateParticlePopup::onDurationForever @ 0x531caa\n// > CreateParticlePopup::onMaxEmission @ 0x531cda\n// > CreateParticlePopup::onCalcEmission @ 0x531d5e\n// > CreateParticlePopup::sliderChanged @ 0x531e04\n// > CreateParticlePopup::ccTouchMoved @ 0x531f04\n// > CreateParticlePopup::ccTouchMoved @ 0x531f14\n// > CreateParticlePopup::ccTouchMoved @ 0x531f62\n// > CreateParticlePopup::ccTouchMoved @ 0x531f72\n// > CreateParticlePopup::ccTouchMoved @ 0x531fc4\n// > CreateParticlePopup::ccTouchMoved @ 0x531fe2\n// > CreateParticlePopup::ccTouchMoved @ 0x532088\n// > CreateParticlePopup::ccTouchMoved @ 0x532098\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::updateInputNodeStringForType(CreateParticlePopup *a1, gjParticleValue a2)\n{\n  cocos2d::CCDictionary *PageInputNodes; // r0\n  cocos2d::CCObject *v5; // r8\n  float v6; // s16\n  const char *v7; // r1\n  cocos2d::CCString *v8; // r0\n  char *CString; // r0\n  char *v10; // r1\n  char *v11; // r2\n  char *v12; // [sp+4h] [bp-Ch] BYREF\n  char v13[4]; // [sp+8h] [bp-8h] BYREF\n\n  PageInputNodes = CreateParticlePopup::getPageInputNodes(a1, 0);\n  v5 = cocos2d::CCDictionary::objectForKey(PageInputNodes, a2);\n  if ( v5 )\n  {\n    v12 = (char *)&unk_ACDDA8;\n    v6 = CreateParticlePopup::valueForParticleValue(a1, a2);\n    if ( CreateParticlePopup::particleValueIsInt(a1, a2) )\n      v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)(int)v6);\n    else\n      v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v7, v6);\n    CString = (char *)cocos2d::CCString::getCString(v8);\n    sub_7753D4((int)&v12, CString);\n    v10 = v12;\n    a1->m_disableTextDelegate = 1;\n    sub_776584((int)v13, v10);\n    CCTextInputNode::setString((int)v5, v13, v11);\n    sub_774008(v13);\n    a1->m_disableTextDelegate = 0;\n    sub_774008(&v12);\n  }\n}", "assembly": "; \n; CreateParticlePopup::updateInputNodeStringForType from 0x53123c to 0x531310 (212 bytes)\n; \n; 22 xrefs:\n; > CreateParticlePopup::createParticleSlider @ 0x5315c8\n; > CreateParticlePopup::onDuplicateColor @ 0x5319dc\n; > CreateParticlePopup::onDuplicateColor @ 0x5319e4\n; > CreateParticlePopup::onDuplicateColor @ 0x5319ec\n; > CreateParticlePopup::colorSelectClosed @ 0x531b5e\n; > CreateParticlePopup::colorSelectClosed @ 0x531b66\n; > CreateParticlePopup::colorSelectClosed @ 0x531b6e\n; > CreateParticlePopup::colorSelectClosed @ 0x531c32\n; > CreateParticlePopup::colorSelectClosed @ 0x531c3a\n; > CreateParticlePopup::colorSelectClosed @ 0x531c42\n; > CreateParticlePopup::onDurationForever @ 0x531caa\n; > CreateParticlePopup::onMaxEmission @ 0x531cda\n; > CreateParticlePopup::onCalcEmission @ 0x531d5e\n; > CreateParticlePopup::sliderChanged @ 0x531e04\n; > CreateParticlePopup::ccTouchMoved @ 0x531f04\n; > CreateParticlePopup::ccTouchMoved @ 0x531f14\n; > CreateParticlePopup::ccTouchMoved @ 0x531f62\n; > CreateParticlePopup::ccTouchMoved @ 0x531f72\n; > CreateParticlePopup::ccTouchMoved @ 0x531fc4\n; > CreateParticlePopup::ccTouchMoved @ 0x531fe2\n; > CreateParticlePopup::ccTouchMoved @ 0x532088\n; > CreateParticlePopup::ccTouchMoved @ 0x532098\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x53123c\nMOV             R5, R1                                                 ; +0x4, 0x531240\nLDR             R6, =(__stack_chk_guard_ptr - 0x531250)                ; +0x6, 0x531242\nMOVS            R1, #0; int                                            ; +0x8, 0x531244\nVPUSH           {D8}                                                   ; +0xa, 0x531246\nMOV             R7, R0                                                 ; +0xe, 0x53124a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x53124c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x53124e\nLDR             R3, [R6]                                               ; +0x14, 0x531250\nSUB             SP, SP, #0x10                                          ; +0x16, 0x531252\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x531254\nBL              _ZN19CreateParticlePopup17getPageInputNodesEi; CreateParticlePopup::getPageInputNodes(int) ; +0x1a, 0x531256\nMOV             R1, R5; int                                            ; +0x1e, 0x53125a\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x20, 0x53125c\nMOV             R8, R0                                                 ; +0x24, 0x531260\nCMP             R0, #0                                                 ; +0x26, 0x531262\nBEQ             loc_5312FA                                             ; +0x28, 0x531264\nMOV             R1, R5                                                 ; +0x2a, 0x531266\nMOV             R0, R7                                                 ; +0x2c, 0x531268\nBL              _ZN19CreateParticlePopup21valueForParticleValueE15gjParticleValue; CreateParticlePopup::valueForParticleValue(gjParticleValue) ; +0x2e, 0x53126a\nLDR             R3, =(off_AB5BA0 - 0x531278)                           ; +0x32, 0x53126e\nADD             R4, SP, #0x10+var_s0                                   ; +0x34, 0x531270\nMOV             R1, R5                                                 ; +0x36, 0x531272\nADD             R3, PC; off_AB5BA0                                     ; +0x38, 0x531274\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x3a, 0x531276\nADDS            R3, #0xC                                               ; +0x3c, 0x531278\nSTR.W           R3, [R4,#-0xC]!                                        ; +0x3e, 0x53127a\nVMOV            S16, R0                                                ; +0x42, 0x53127e\nMOV             R0, R7                                                 ; +0x46, 0x531282\nBL              _ZN19CreateParticlePopup18particleValueIsIntE15gjParticleValue; CreateParticlePopup::particleValueIsInt(gjParticleValue) ; +0x48, 0x531284\nCBZ             R0, loc_5312BA                                         ; +0x4c, 0x531288\nVCVT.S32.F32    S15, S16                                               ; +0x4e, 0x53128a\nLDR             R0, =(aI - 0x531294); \"%i\"                             ; +0x52, 0x53128e\nADD             R0, PC; \"%i\"                                           ; +0x54, 0x531290\nVMOV            R1, S15; char *                                        ; +0x56, 0x531292\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x5a, 0x531296\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5e, 0x53129a\nMOV             R1, R0; char *                                         ; +0x62, 0x53129e\nMOV             R0, R4; int                                            ; +0x64, 0x5312a0\nBL              sub_7753D4                                             ; +0x66, 0x5312a2\nADD             R5, SP, #0x10+var_8                                    ; +0x6a, 0x5312a6\nMOVS            R3, #1                                                 ; +0x6c, 0x5312a8\nLDR             R1, [SP,#0x10+var_C]; char *                           ; +0x6e, 0x5312aa\nMOV             R2, SP                                                 ; +0x70, 0x5312ac\nSTRB.W          R3, [R7,#0x208]                                        ; +0x72, 0x5312ae\nMOV             R0, R5; int                                            ; +0x76, 0x5312b2\nBL              sub_776584                                             ; +0x78, 0x5312b4\nB               loc_5312CC                                             ; +0x7c, 0x5312b8\nVCVT.F64.F32    D7, S16                                                ; +0x7e, 0x5312ba\nLDR             R0, =(a02f_0 - 0x5312C4); \"%.02f\"                      ; +0x82, 0x5312be\nADD             R0, PC; \"%.02f\"                                        ; +0x84, 0x5312c0\nVMOV            R2, R3, D7                                             ; +0x86, 0x5312c2\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x8a, 0x5312c6\nB               loc_53129A                                             ; +0x8e, 0x5312ca\nMOV             R0, R8                                                 ; +0x90, 0x5312cc\nMOV             R1, R5                                                 ; +0x92, 0x5312ce\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x94, 0x5312d0\nMOV             R0, R5                                                 ; +0x98, 0x5312d4\nBL              sub_774008                                             ; +0x9a, 0x5312d6\nMOVS            R3, #0                                                 ; +0x9e, 0x5312da\nMOV             R0, R4                                                 ; +0xa0, 0x5312dc\nSTRB.W          R3, [R7,#0x208]                                        ; +0xa2, 0x5312de\nBL              sub_774008                                             ; +0xa6, 0x5312e2\nB               loc_5312FA                                             ; +0xaa, 0x5312e6\nMOV             R0, R5                                                 ; +0xac, 0x5312e8\nBL              sub_774008                                             ; +0xae, 0x5312ea\nB               loc_5312F0                                             ; +0xb2, 0x5312ee\nMOV             R0, R4                                                 ; +0xb4, 0x5312f0\nBL              sub_774008                                             ; +0xb6, 0x5312f2\nBL              __cxa_end_cleanup                                      ; +0xba, 0x5312f6\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xbe, 0x5312fa\nLDR             R3, [R6]                                               ; +0xc0, 0x5312fc\nCMP             R2, R3                                                 ; +0xc2, 0x5312fe\nBEQ             loc_531306                                             ; +0xc4, 0x531300\nBLX             __stack_chk_fail                                       ; +0xc6, 0x531302\nADD             SP, SP, #0x10                                          ; +0xca, 0x531306\nVPOP            {D8}                                                   ; +0xcc, 0x531308\nPOP.W           {R4-R8,PC}                                             ; +0xd0, 0x53130c", "xrefs": ["CreateParticlePopup::createParticleSlider @ 0x5315c8", "CreateParticlePopup::onDuplicateColor @ 0x5319dc", "CreateParticlePopup::onDuplicateColor @ 0x5319e4", "CreateParticlePopup::onDuplicateColor @ 0x5319ec", "CreateParticlePopup::colorSelectClosed @ 0x531b5e", "CreateParticlePopup::colorSelectClosed @ 0x531b66", "CreateParticlePopup::colorSelectClosed @ 0x531b6e", "CreateParticlePopup::colorSelectClosed @ 0x531c32", "CreateParticlePopup::colorSelectClosed @ 0x531c3a", "CreateParticlePopup::colorSelectClosed @ 0x531c42", "CreateParticlePopup::onDurationForever @ 0x531caa", "CreateParticlePopup::onMaxEmission @ 0x531cda", "CreateParticlePopup::onCalcEmission @ 0x531d5e", "CreateParticlePopup::sliderChanged @ 0x531e04", "CreateParticlePopup::ccTouchMoved @ 0x531f04", "CreateParticlePopup::ccTouchMoved @ 0x531f14", "CreateParticlePopup::ccTouchMoved @ 0x531f62", "CreateParticlePopup::ccTouchMoved @ 0x531f72", "CreateParticlePopup::ccTouchMoved @ 0x531fc4", "CreateParticlePopup::ccTouchMoved @ 0x531fe2", "CreateParticlePopup::ccTouchMoved @ 0x532088", "CreateParticlePopup::ccTouchMoved @ 0x532098"], "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"}