{"type": "func", "start": 4296247568, "end": 4296247764, "name": "CommentCell::onMoreOptions", "pseudocode": "// \n// CommentCell::onMoreOptions from 0x100138910 to 0x1001389d4 (196 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x10012c7ec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:59:28 +0000\n// \n\n__int64 __fastcall CommentCell::onMoreOptions(__int64 result)\n{\n  __int64 v1; // x8\n  __int64 v2; // x19\n  int v3; // w20\n  _BOOL8 v4; // x1\n  __int64 v5; // x0\n  __int64 v6; // x0\n  __int64 v7; // x0\n  int v8; // w8\n\n  v1 = *(_QWORD *)(result + 584);\n  if ( v1 )\n  {\n    v2 = result;\n    if ( *(_BYTE *)(result + 592) == 1 )\n    {\n      v3 = *(_DWORD *)(v1 + 388);\n      result = GJAccountManager::sharedState(result);\n      if ( v3 == *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) )\n      {\n        v4 = 0;\n        v5 = *(_QWORD *)(v2 + 584);\n        goto LABEL_10;\n      }\n    }\n    v6 = GameManager::sharedState(result);\n    if ( *(_DWORD *)(v6 + 660) <= *(_DWORD *)(v6 + 664) )\n    {\n      v5 = *(_QWORD *)(v2 + 584);\n    }\n    else\n    {\n      v7 = GameManager::sharedState(v6);\n      v8 = *(_DWORD *)(v7 + 660) - *(_DWORD *)(v7 + 664);\n      v5 = *(_QWORD *)(v2 + 584);\n      if ( v8 == *(_DWORD *)(v5 + 372) )\n      {\n        v4 = 0;\n        goto LABEL_10;\n      }\n    }\n    v4 = (*(_DWORD *)(v5 + 436) & 0xFFFFFFFE) != 4;\nLABEL_10:\n    result = CommentOptionsPopup::create(v5, v4);\n    if ( result )\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1312LL))(result);\n  }\n  return result;\n}", "assembly": "; \n; CommentCell::onMoreOptions from 0x100138910 to 0x1001389d4 (196 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x10012c7ec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:59:28 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100138910\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100138914\nADD             X29, SP, #0x10                                         ; +0x8, 0x100138918\nLDR             X8, [X0,#0x248]                                        ; +0xc, 0x10013891c\nCBZ             X8, loc_1001389C8                                      ; +0x10, 0x100138920\nMOV             X19, X0                                                ; +0x14, 0x100138924\nLDRB            W9, [X0,#0x250]                                        ; +0x18, 0x100138928\nCMP             W9, #1                                                 ; +0x1c, 0x10013892c\nB.NE            loc_10013895C                                          ; +0x20, 0x100138930\nLDR             W20, [X8,#0x184]                                       ; +0x24, 0x100138934\nBL              GJAccountManager__sharedState                          ; +0x28, 0x100138938\nLDR             W8, [X0,#0x160]                                        ; +0x2c, 0x10013893c\nLDR             W9, [X0,#0x164]                                        ; +0x30, 0x100138940\nSUB             W8, W8, W9                                             ; +0x34, 0x100138944\nCMP             W20, W8                                                ; +0x38, 0x100138948\nB.NE            loc_10013895C                                          ; +0x3c, 0x10013894c\nMOV             W1, #0                                                 ; +0x40, 0x100138950\nLDR             X0, [X19,#0x248]                                       ; +0x44, 0x100138954\nB               loc_1001389AC                                          ; +0x48, 0x100138958\nBL              GameManager__sharedState                               ; +0x4c, 0x10013895c\nLDR             W8, [X0,#0x294]                                        ; +0x50, 0x100138960\nLDR             W9, [X0,#0x298]                                        ; +0x54, 0x100138964\nCMP             W8, W9                                                 ; +0x58, 0x100138968\nB.LE            loc_100138998                                          ; +0x5c, 0x10013896c\nBL              GameManager__sharedState                               ; +0x60, 0x100138970\nLDR             W8, [X0,#0x294]                                        ; +0x64, 0x100138974\nLDR             W9, [X0,#0x298]                                        ; +0x68, 0x100138978\nSUB             W8, W8, W9                                             ; +0x6c, 0x10013897c\nLDR             X0, [X19,#0x248]                                       ; +0x70, 0x100138980\nLDR             W9, [X0,#0x174]                                        ; +0x74, 0x100138984\nCMP             W8, W9                                                 ; +0x78, 0x100138988\nB.NE            loc_10013899C                                          ; +0x7c, 0x10013898c\nMOV             W1, #0                                                 ; +0x80, 0x100138990\nB               loc_1001389AC                                          ; +0x84, 0x100138994\nLDR             X0, [X19,#0x248]                                       ; +0x88, 0x100138998\nLDR             W8, [X0,#0x1B4]                                        ; +0x8c, 0x10013899c\nAND             W8, W8, #0xFFFFFFFE                                    ; +0x90, 0x1001389a0\nCMP             W8, #4                                                 ; +0x94, 0x1001389a4\nCSET            W1, NE                                                 ; +0x98, 0x1001389a8\nBL              CommentOptionsPopup__create                            ; +0x9c, 0x1001389ac\nCBZ             X0, loc_1001389C8                                      ; +0xa0, 0x1001389b0\nLDR             X8, [X0]                                               ; +0xa4, 0x1001389b4\nLDR             X1, [X8,#0x520]                                        ; +0xa8, 0x1001389b8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x1001389bc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x1001389c0\nBR              X1                                                     ; +0xb4, 0x1001389c4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb8, 0x1001389c8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xbc, 0x1001389cc\nRET                                                                    ; +0xc0, 0x1001389d0", "xrefs": ["CommentCell::loadFromComment @ 0x10012c7ec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}