{"type": "func", "start": 7834852, "end": 7835020, "name": "EmotePickerPopup::openAt", "pseudocode": "// \n// EmotePickerPopup::openAt from 0x778ce4 to 0x778d8c (168 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::toggle @ 0x779446\n// > EmotePickerPopup::togglePicker @ 0x77951a\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:59:21 +0000\n// \n\n_DWORD *__fastcall EmotePickerPopup::openAt(_DWORD *a1, int a2, cocos2d::CCNode *a3)\n{\n  const cocos2d::CCSize *v5; // r0\n  float v7[2]; // [sp+Ch] [bp-24h] BYREF\n  float v8; // [sp+14h] [bp-1Ch] BYREF\n  float v9; // [sp+18h] [bp-18h]\n  _BYTE v10[16]; // [sp+1Ch] [bp-14h] BYREF\n\n  if ( a1 )\n  {\n    a1[213] = a2;\n    EmotePickerPopup::buttonAnchor((EmotePickerPopup *)v7, a3);\n    v5 = (const cocos2d::CCSize *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a3 + 164))(a3);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8, v5);\n    cocos2d::CCRect::CCRect(\n      (cocos2d::CCRect *)v10,\n      (float)(v7[0] - (float)(v8 * 0.5)) - 4.0,\n      (float)(v7[1] - (float)(v9 * 0.5)) - 4.0,\n      v8 + 8.0,\n      v9 + 8.0);\n    cocos2d::CCRect::operator=(a1 + 214, v10);\n    (*(void (__fastcall **)(_DWORD *))(*a1 + 656))(a1);\n  }\n  return a1;\n}", "assembly": "; \n; EmotePickerPopup::openAt from 0x778ce4 to 0x778d8c (168 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::toggle @ 0x779446\n; > EmotePickerPopup::togglePicker @ 0x77951a\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:59:21 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x778CEC)                ; +0x0, 0x778ce4\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x778ce6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x778ce8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x778cea\nMOV             R4, R2                                                 ; +0x8, 0x778cec\nSUB             SP, SP, #0x30; float                                   ; +0xa, 0x778cee\nLDR             R2, [R3]                                               ; +0xc, 0x778cf0\nMOV             R6, R0                                                 ; +0xe, 0x778cf2\nMOV             R5, R3                                                 ; +0x10, 0x778cf4\nSTR             R2, [SP,#0x30+var_4]                                   ; +0x12, 0x778cf6\nCMP             R0, #0                                                 ; +0x14, 0x778cf8\nBEQ             loc_778D7A                                             ; +0x16, 0x778cfa\nSTR.W           R1, [R0,#0x354]                                        ; +0x18, 0x778cfc\nMOV             R1, R4; cocos2d::CCNode *                              ; +0x1c, 0x778d00\nADD             R0, SP, #0x30+var_24; this                             ; +0x1e, 0x778d02\nBL              _ZN16EmotePickerPopup12buttonAnchorEPN7cocos2d6CCNodeE; EmotePickerPopup::buttonAnchor(cocos2d::CCNode *) ; +0x20, 0x778d04\nLDR             R3, [R4]                                               ; +0x24, 0x778d08\nMOV             R0, R4                                                 ; +0x26, 0x778d0a\nADD             R4, SP, #0x30+var_14                                   ; +0x28, 0x778d0c\nLDR.W           R3, [R3,#0xA4]                                         ; +0x2a, 0x778d0e\nBLX             R3                                                     ; +0x2e, 0x778d12\nMOV             R1, R0; cocos2d::CCSize *                              ; +0x30, 0x778d14\nADD             R0, SP, #0x30+var_1C; this                             ; +0x32, 0x778d16\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x34, 0x778d18\nVMOV.F32        S12, #0.5                                              ; +0x38, 0x778d1c\nVLDR            S11, [SP,#0x30+var_1C]                                 ; +0x3c, 0x778d20\nMOV             R0, R4; this                                           ; +0x40, 0x778d24\nVLDR            S13, [SP,#0x30+var_24]                                 ; +0x42, 0x778d26\nVLDR            S15, [SP,#0x30+var_18]                                 ; +0x46, 0x778d2a\nVLDR            S14, [SP,#0x30+var_20]                                 ; +0x4a, 0x778d2e\nVMLS.F32        S13, S11, S12                                          ; +0x4e, 0x778d32\nVMLS.F32        S14, S15, S12                                          ; +0x52, 0x778d36\nVMOV.F32        S12, #8.0                                              ; +0x56, 0x778d3a\nVMOV.F32        S10, #4.0                                              ; +0x5a, 0x778d3e\nVADD.F32        S15, S15, S12                                          ; +0x5e, 0x778d42\nVSTR            S15, [SP,#0x30+var_30]                                 ; +0x62, 0x778d46\nVSUB.F32        S15, S13, S10                                          ; +0x66, 0x778d4a\nVMOV            R1, S15; float                                         ; +0x6a, 0x778d4e\nVSUB.F32        S15, S14, S10                                          ; +0x6e, 0x778d52\nVMOV            R2, S15; float                                         ; +0x72, 0x778d56\nVADD.F32        S15, S11, S12                                          ; +0x76, 0x778d5a\nVMOV            R3, S15; float                                         ; +0x7a, 0x778d5e\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x7e, 0x778d62\nADD.W           R0, R6, #0x358                                         ; +0x82, 0x778d66\nMOV             R1, R4                                                 ; +0x86, 0x778d6a\nBL              _ZN7cocos2d6CCRectaSERKS0_; cocos2d::CCRect::operator=(cocos2d::CCRect const&) ; +0x88, 0x778d6c\nLDR             R3, [R6]                                               ; +0x8c, 0x778d70\nMOV             R0, R6                                                 ; +0x8e, 0x778d72\nLDR.W           R3, [R3,#0x290]                                        ; +0x90, 0x778d74\nBLX             R3                                                     ; +0x94, 0x778d78\nLDR             R2, [SP,#0x30+var_4]                                   ; +0x96, 0x778d7a\nMOV             R0, R6                                                 ; +0x98, 0x778d7c\nLDR             R3, [R5]                                               ; +0x9a, 0x778d7e\nCMP             R2, R3                                                 ; +0x9c, 0x778d80\nBEQ             loc_778D88                                             ; +0x9e, 0x778d82\nBLX             __stack_chk_fail                                       ; +0xa0, 0x778d84\nADD             SP, SP, #0x30 ; '0'                                    ; +0xa4, 0x778d88\nPOP             {R4-R6,PC}                                             ; +0xa6, 0x778d8a", "xrefs": ["EmotePickerPopup::toggle @ 0x779446", "EmotePickerPopup::togglePicker @ 0x77951a"], "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"}