{"type": "func", "start": 6706832, "end": 6706916, "name": "CreateParticlePopup::onPosType", "pseudocode": "// \n// CreateParticlePopup::onPosType from 0x665690 to 0x6656e4 (84 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:40 +0000\n// \n\nint __fastcall CreateParticlePopup::onPosType(CCMenuItemToggler **this, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // r5\n  int result; // r0\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)v3, 57, nullptr);\n  if ( v3 )\n  {\n    CCMenuItemToggler::toggle(*(this + 153), 0);\n    if ( v3 == 1 )\n      return CCMenuItemToggler::toggle(*(this + 155), 0);\n  }\n  result = CCMenuItemToggler::toggle(*(this + 154), 0);\n  if ( v3 != 2 )\n    return CCMenuItemToggler::toggle(*(this + 155), 0);\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::onPosType from 0x665690 to 0x6656e4 (84 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:40 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x665690\nMOV             R4, R0                                                 ; +0x2, 0x665692\nLDR             R3, [R1]                                               ; +0x4, 0x665694\nMOV             R0, R1                                                 ; +0x6, 0x665696\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x665698\nBLX             R3                                                     ; +0xa, 0x66569a\nMOVS            R2, #0x39 ; '9'                                        ; +0xc, 0x66569c\nMOVS            R3, #0                                                 ; +0xe, 0x66569e\nMOV             R5, R0                                                 ; +0x10, 0x6656a0\nMOV             R0, R4                                                 ; +0x12, 0x6656a2\nVMOV            S15, R5                                                ; +0x14, 0x6656a4\nVCVT.F32.U32    S15, S15                                               ; +0x18, 0x6656a8\nVMOV            R1, S15                                                ; +0x1c, 0x6656ac\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x20, 0x6656b0\nCBNZ            R5, loc_6656C6                                         ; +0x24, 0x6656b4\nLDR.W           R0, [R4,#0x268]; this                                  ; +0x26, 0x6656b6\nMOVS            R1, #0; bool                                           ; +0x2a, 0x6656ba\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x2c, 0x6656bc\nCMP             R5, #2                                                 ; +0x30, 0x6656c0\nBEQ             locret_6656E2                                          ; +0x32, 0x6656c2\nB               loc_6656D4                                             ; +0x34, 0x6656c4\nLDR.W           R0, [R4,#0x264]; this                                  ; +0x36, 0x6656c6\nMOVS            R1, #0; bool                                           ; +0x3a, 0x6656ca\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x3c, 0x6656cc\nCMP             R5, #1                                                 ; +0x40, 0x6656d0\nBNE             loc_6656B6                                             ; +0x42, 0x6656d2\nLDR.W           R0, [R4,#0x26C]; this                                  ; +0x44, 0x6656d4\nMOVS            R1, #0; bool                                           ; +0x48, 0x6656d8\nPOP.W           {R3-R5,LR}                                             ; +0x4a, 0x6656da\nB.W             _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x4e, 0x6656de\nPOP             {R3-R5,PC}                                             ; +0x52, 0x6656e2", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}