{"type": "func", "start": 4592000, "end": 4592134, "name": "CustomizeObjectLayer::onClear", "pseudocode": "// \n// CustomizeObjectLayer::onClear from 0x461180 to 0x461206 (134 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::textInputOpened @ 0x46126c\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 CustomizeObjectLayer::onClear(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int *m_targetObject; // r8\n  CCTextInputNode *m_textInput; // r8\n  char *v5; // r2\n  const char *v6; // [sp+8h] [bp-8h] BYREF\n\n  m_targetObject = (int *)a1->m_targetObject;\n  if ( m_targetObject )\n  {\n    a1->m_disableTextDelegate = 1;\n    sub_776584((int)&v6, (char *)&unk_939830);\n    TextGameObject::updateTextObject(m_targetObject, &v6, 0);\n    sub_774008(&v6);\n    m_textInput = a1->m_textInput;\n    sub_776584((int)&v6, (char *)&unk_939830);\n    CCTextInputNode::setString((int)m_textInput, (char *)&v6, v5);\n    sub_774008(&v6);\n    a1->m_disableTextDelegate = 0;\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::onClear from 0x461180 to 0x461206 (134 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::textInputOpened @ 0x46126c\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          {R0-R8,LR}                                             ; +0x0, 0x461180\nMOV             R6, R0                                                 ; +0x4, 0x461184\nLDR             R3, =(__stack_chk_guard_ptr - 0x461190)                ; +0x6, 0x461186\nLDR.W           R8, [R0,#0x200]                                        ; +0x8, 0x461188\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x46118c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x46118e\nLDR             R2, [R3]                                               ; +0x10, 0x461190\nMOV             R5, R3                                                 ; +0x12, 0x461192\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x14, 0x461194\nCMP.W           R8, #0                                                 ; +0x16, 0x461196\nBEQ             loc_4611F4                                             ; +0x1a, 0x46119a\nADD             R4, SP, #0x10+var_8                                    ; +0x1c, 0x46119c\nADD             R7, SP, #0x10+var_C                                    ; +0x1e, 0x46119e\nLDR             R1, =(unk_939830 - 0x4611AE)                           ; +0x20, 0x4611a0\nMOVS            R3, #1                                                 ; +0x22, 0x4611a2\nMOV             R2, R7                                                 ; +0x24, 0x4611a4\nSTRB.W          R3, [R0,#0x27A]                                        ; +0x26, 0x4611a6\nADD             R1, PC; unk_939830 ; char *                            ; +0x2a, 0x4611aa\nMOV             R0, R4; int                                            ; +0x2c, 0x4611ac\nBL              sub_776584                                             ; +0x2e, 0x4611ae\nMOV             R0, R8                                                 ; +0x32, 0x4611b2\nMOV             R1, R4                                                 ; +0x34, 0x4611b4\nMOVS            R2, #0                                                 ; +0x36, 0x4611b6\nBL              _ZN14TextGameObject16updateTextObjectESsb; TextGameObject::updateTextObject(std::string,bool) ; +0x38, 0x4611b8\nMOV             R0, R4                                                 ; +0x3c, 0x4611bc\nBL              sub_774008                                             ; +0x3e, 0x4611be\nLDR.W           R8, [R6,#0x248]                                        ; +0x42, 0x4611c2\nLDR             R1, =(unk_939830 - 0x4611D0)                           ; +0x46, 0x4611c6\nMOV             R0, R4; int                                            ; +0x48, 0x4611c8\nMOV             R2, R7                                                 ; +0x4a, 0x4611ca\nADD             R1, PC; unk_939830 ; char *                            ; +0x4c, 0x4611cc\nBL              sub_776584                                             ; +0x4e, 0x4611ce\nMOV             R0, R8                                                 ; +0x52, 0x4611d2\nMOV             R1, R4                                                 ; +0x54, 0x4611d4\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x56, 0x4611d6\nMOV             R0, R4                                                 ; +0x5a, 0x4611da\nBL              sub_774008                                             ; +0x5c, 0x4611dc\nMOVS            R3, #0                                                 ; +0x60, 0x4611e0\nSTRB.W          R3, [R6,#0x27A]                                        ; +0x62, 0x4611e2\nB               loc_4611F4                                             ; +0x66, 0x4611e6\nB               loc_4611EA                                             ; +0x68, 0x4611e8\nMOV             R0, R4                                                 ; +0x6a, 0x4611ea\nBL              sub_774008                                             ; +0x6c, 0x4611ec\nBL              __cxa_end_cleanup                                      ; +0x70, 0x4611f0\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x74, 0x4611f4\nLDR             R3, [R5]                                               ; +0x76, 0x4611f6\nCMP             R2, R3                                                 ; +0x78, 0x4611f8\nBEQ             loc_461200                                             ; +0x7a, 0x4611fa\nBLX             __stack_chk_fail                                       ; +0x7c, 0x4611fc\nADD             SP, SP, #0x10                                          ; +0x80, 0x461200\nPOP.W           {R4-R8,PC}                                             ; +0x82, 0x461202", "xrefs": ["CustomizeObjectLayer::textInputOpened @ 0x46126c"], "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"}