{"type": "func", "start": 5044284, "end": 5044498, "name": "ConfigureValuePopup::addInfoAlertButton", "pseudocode": "// \n// ConfigureValuePopup::addInfoAlertButton from 0x4cf83c to 0x4cf912 (214 bytes)\n// \n// 1 xrefs:\n// > SetGroupIDLayer::onGroupIDOptions @ 0x50885e\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\nint __fastcall ConfigureValuePopup::addInfoAlertButton(int a1)\n{\n  cocos2d::CCDirector *v2; // r0\n  CCMenuItemSpriteExtra *v3; // r6\n  int v4; // r0\n  cocos2d::CCNode *v5; // r8\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  cocos2d::CCSize v8; // [sp+4h] [bp-20h] BYREF\n  cocos2d::CCPoint v9; // [sp+Ch] [bp-18h] BYREF\n  cocos2d::CCPoint v10; // [sp+14h] [bp-10h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v8, v2);\n  sub_775C20(&v9);\n  sub_775C20(&v10);\n  v3 = InfoAlertButton::create((int)&v9, (int)&v10, 1061997773);\n  sub_774008(&v10);\n  sub_774008(&v9);\n  v4 = *(_DWORD *)(a1 + 440);\n  v3[1].m_nLuaID = 1063675494;\n  (*(void (__fastcall **)(int, CCMenuItemSpriteExtra *))(*(_DWORD *)v4 + 220))(v4, v3);\n  v5 = *(cocos2d::CCNode **)(a1 + 440);\n  setPosition = v3->setPosition;\n  cocos2d::CCPoint::CCPoint(\n    &v9,\n    (float)((float)(v8.width * 0.5) + 130.0) - 17.0,\n    (float)((float)(v8.height * 0.5) + 100.0) - 17.0);\n  cocos2d::CCNode::convertToNodeSpace(&v10, v5, &v9);\n  return ((int (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))setPosition)(v3, &v10);\n}", "assembly": "; \n; ConfigureValuePopup::addInfoAlertButton from 0x4cf83c to 0x4cf912 (214 bytes)\n; \n; 1 xrefs:\n; > SetGroupIDLayer::onGroupIDOptions @ 0x50885e\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-R9,LR}                                             ; +0x0, 0x4cf83c\nSUB             SP, SP, #0x24                                          ; +0x4, 0x4cf840\nLDR             R7, =(__stack_chk_guard_ptr - 0x4CF84E)                ; +0x6, 0x4cf842\nMOV             R5, R1                                                 ; +0x8, 0x4cf844\nMOV             R6, R2                                                 ; +0xa, 0x4cf846\nMOV             R8, R0                                                 ; +0xc, 0x4cf848\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4cf84a\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x4cf84c\nADD             R4, SP, #0x24+var_18                                   ; +0x12, 0x4cf84e\nLDR             R3, [R7]                                               ; +0x14, 0x4cf850\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x16, 0x4cf852\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x4cf854\nMOV             R1, R0                                                 ; +0x1c, 0x4cf858\nADD             R0, SP, #0x24+var_20; this                             ; +0x1e, 0x4cf85a\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x20, 0x4cf85c\nMOV             R1, R5                                                 ; +0x24, 0x4cf860\nADD             R5, SP, #0x24+var_10                                   ; +0x26, 0x4cf862\nMOV             R0, R4                                                 ; +0x28, 0x4cf864\nBL              sub_775C20                                             ; +0x2a, 0x4cf866\nMOV             R1, R6                                                 ; +0x2e, 0x4cf86a\nMOV             R0, R5                                                 ; +0x30, 0x4cf86c\nBL              sub_775C20                                             ; +0x32, 0x4cf86e\nMOV             R0, R4                                                 ; +0x36, 0x4cf872\nMOV             R1, R5                                                 ; +0x38, 0x4cf874\nLDR             R2, =0x3F4CCCCD                                        ; +0x3a, 0x4cf876\nBL              _ZN15InfoAlertButton6createESsSsf; InfoAlertButton::create(std::string,std::string,float) ; +0x3c, 0x4cf878\nMOV             R6, R0                                                 ; +0x40, 0x4cf87c\nMOV             R0, R5                                                 ; +0x42, 0x4cf87e\nBL              sub_774008                                             ; +0x44, 0x4cf880\nMOV             R0, R4                                                 ; +0x48, 0x4cf884\nBL              sub_774008                                             ; +0x4a, 0x4cf886\nLDR.W           R0, [R8,#0x1B8]                                        ; +0x4e, 0x4cf88a\nLDR             R3, =0x3F666666                                        ; +0x52, 0x4cf88e\nMOV             R1, R6                                                 ; +0x54, 0x4cf890\nSTR.W           R3, [R6,#0x17C]                                        ; +0x56, 0x4cf892\nLDR             R3, [R0]                                               ; +0x5a, 0x4cf896\nLDR.W           R3, [R3,#0xDC]                                         ; +0x5c, 0x4cf898\nBLX             R3                                                     ; +0x60, 0x4cf89c\nVMOV.F32        S12, #0.5                                              ; +0x62, 0x4cf89e\nVLDR            S15, [SP,#0x24+var_20]                                 ; +0x66, 0x4cf8a2\nMOV             R0, R4; this                                           ; +0x6a, 0x4cf8a6\nLDR             R3, [R6]                                               ; +0x6c, 0x4cf8a8\nLDR.W           R8, [R8,#0x1B8]                                        ; +0x6e, 0x4cf8aa\nVLDR            S14, =130.0                                            ; +0x72, 0x4cf8ae\nLDR.W           R9, [R3,#0x5C]                                         ; +0x76, 0x4cf8b2\nVLDR            S11, [SP,#0x24+var_1C]                                 ; +0x7a, 0x4cf8b6\nVMLA.F32        S14, S15, S12                                          ; +0x7e, 0x4cf8ba\nVLDR            S15, =100.0                                            ; +0x82, 0x4cf8be\nVMLA.F32        S15, S11, S12                                          ; +0x86, 0x4cf8c2\nVMOV.F32        S13, #17.0                                             ; +0x8a, 0x4cf8c6\nVSUB.F32        S14, S14, S13                                          ; +0x8e, 0x4cf8ca\nVSUB.F32        S15, S15, S13                                          ; +0x92, 0x4cf8ce\nVMOV            R1, S14; float                                         ; +0x96, 0x4cf8d2\nVMOV            R2, S15; float                                         ; +0x9a, 0x4cf8d6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x9e, 0x4cf8da\nMOV             R2, R4                                                 ; +0xa2, 0x4cf8de\nMOV             R0, R5; this                                           ; +0xa4, 0x4cf8e0\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0xa6, 0x4cf8e2\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xa8, 0x4cf8e4\nMOV             R0, R6                                                 ; +0xac, 0x4cf8e8\nMOV             R1, R5                                                 ; +0xae, 0x4cf8ea\nBLX             R9                                                     ; +0xb0, 0x4cf8ec\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xb2, 0x4cf8ee\nLDR             R3, [R7]                                               ; +0xb4, 0x4cf8f0\nCMP             R2, R3                                                 ; +0xb6, 0x4cf8f2\nBEQ             loc_4CF90C                                             ; +0xb8, 0x4cf8f4\nBLX             __stack_chk_fail                                       ; +0xba, 0x4cf8f6\nMOV             R0, R5                                                 ; +0xbe, 0x4cf8fa\nBL              sub_774008                                             ; +0xc0, 0x4cf8fc\nB               loc_4CF902                                             ; +0xc4, 0x4cf900\nMOV             R0, R4                                                 ; +0xc6, 0x4cf902\nBL              sub_774008                                             ; +0xc8, 0x4cf904\nBL              __cxa_end_cleanup                                      ; +0xcc, 0x4cf908\nADD             SP, SP, #0x24 ; '$'                                    ; +0xd0, 0x4cf90c\nPOP.W           {R4-R9,PC}                                             ; +0xd2, 0x4cf90e", "xrefs": ["SetGroupIDLayer::onGroupIDOptions @ 0x50885e"], "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"}