{"type": "func", "start": 4300315888, "end": 4300315980, "name": "NewsPopup::keyDown", "pseudocode": "// \n// NewsPopup::keyDown from 0x100519cf0 to 0x100519d4c (92 bytes)\n// \n// 2 xrefs:\n// > sub_100519D4C @ 0x100519d50\n// > <???> @ 0x10099cf18\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 11:07:08 +0000\n// \n\nvoid __fastcall NewsPopup::keyDown(__int64 a1, int a2)\n{\n  int v2; // w8\n  int v3; // w1\n  signed int v4; // w8\n\n  if ( a2 == 39 )\n  {\n    v4 = *(_DWORD *)(a1 + 704);\n    if ( v4 < (int)(-858993459 * ((*(_QWORD *)(a1 + 688) - *(_QWORD *)(a1 + 680)) >> 4) - 1) )\n    {\n      v3 = v4 + 1;\nLABEL_4:\n      sub_100518264(a1, v3);\n    }\n  }\n  else\n  {\n    if ( a2 == 37 )\n    {\n      v2 = *(_DWORD *)(a1 + 704);\n      v3 = v2 - 1;\n      if ( v2 < 1 )\n        return;\n      goto LABEL_4;\n    }\n    FLAlertLayer::keyDown(a1, a2);\n  }\n}", "assembly": "; \n; NewsPopup::keyDown from 0x100519cf0 to 0x100519d4c (92 bytes)\n; \n; 2 xrefs:\n; > sub_100519D4C @ 0x100519d50\n; > <???> @ 0x10099cf18\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 11:07:08 +0000\n; \nCMP             W1, #0x27 ; '''                                        ; +0x0, 0x100519cf0\nB.EQ            loc_100519D10                                          ; +0x4, 0x100519cf4\nCMP             W1, #0x25 ; '%'                                        ; +0x8, 0x100519cf8\nB.NE            loc_100519D44                                          ; +0xc, 0x100519cfc\nLDR             W8, [X0,#0x2C0]                                        ; +0x10, 0x100519d00\nSUBS            W1, W8, #1                                             ; +0x14, 0x100519d04\nB.LT            locret_100519D48                                       ; +0x18, 0x100519d08\nB               sub_100518264                                          ; +0x1c, 0x100519d0c\nLDR             W8, [X0,#0x2C0]                                        ; +0x20, 0x100519d10\nLDR             X9, [X0,#0x2B0]                                        ; +0x24, 0x100519d14\nLDR             X10, [X0,#0x2A8]                                       ; +0x28, 0x100519d18\nSUB             X9, X9, X10                                            ; +0x2c, 0x100519d1c\nLSR             X9, X9, #4                                             ; +0x30, 0x100519d20\nMOV             W10, #0xCCCCCCCD                                       ; +0x34, 0x100519d24\nMOV             W11, #0xFFFFFFFF                                       ; +0x3c, 0x100519d2c\nMADD            W9, W9, W10, W11                                       ; +0x40, 0x100519d30\nCMP             W8, W9                                                 ; +0x44, 0x100519d34\nB.GE            locret_100519D48                                       ; +0x48, 0x100519d38\nADD             W1, W8, #1                                             ; +0x4c, 0x100519d3c\nB               sub_100518264                                          ; +0x50, 0x100519d40\nB               FLAlertLayer__keyDown                                  ; +0x54, 0x100519d44\nRET                                                                    ; +0x58, 0x100519d48", "xrefs": ["sub_100519D4C @ 0x100519d50", "<???> @ 0x10099cf18"], "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"}