{"type": "func", "start": 3979180, "end": 3979318, "name": "FLAlertLayer::keyboardRaise", "pseudocode": "// \n// FLAlertLayer::keyboardRaise from 0x3cb7ac to 0x3cb836 (138 bytes)\n// \n// 7 xrefs:\n// > SetIDPopup::init @ 0x5da716\n// > SetTextPopup::init @ 0x5de2c4\n// > AdminActionConfirmPopup::init @ 0x73140e\n// > ReviewChoiceSheet::init @ 0x73326a\n// > RenameThreadPopup::init @ 0x74dc1a\n// > ThreadSearchPopup::init @ 0x74e206\n// > DeathStatsPopup::init @ 0x76f2b0\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:46:37 +0000\n// \n\nfloat __fastcall FLAlertLayer::keyboardRaise(FLAlertLayer *this, float a2, float a3)\n{\n  float v5; // s16\n  float v6; // s15\n  bool v7; // fzf\n  bool v8; // fnf\n  _BYTE v11[4]; // [sp+4h] [bp-Ch] BYREF\n  float v12; // [sp+8h] [bp-8h]\n\n  cocos2d::CCDirector::sharedDirector(this);\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11);\n  v5 = (float)(*(float *)&this * 0.5) + (float)(v12 * 0.5);\n  v6 = (float)(v12 - v5) - 15.0;\n  if ( a2 <= v6 )\n  {\n    v7 = a2 == 0.0;\n    v8 = a2 < 0.0;\n  }\n  else\n  {\n    v7 = v6 == 0.0;\n    v8 = v6 < 0.0;\n  }\n  if ( v8 || v7 )\n    return 0.0;\n  if ( a2 > v6 )\n    return (float)(v12 - v5) - 15.0;\n  return a2;\n}", "assembly": "; \n; FLAlertLayer::keyboardRaise from 0x3cb7ac to 0x3cb836 (138 bytes)\n; \n; 7 xrefs:\n; > SetIDPopup::init @ 0x5da716\n; > SetTextPopup::init @ 0x5de2c4\n; > AdminActionConfirmPopup::init @ 0x73140e\n; > ReviewChoiceSheet::init @ 0x73326a\n; > RenameThreadPopup::init @ 0x74dc1a\n; > ThreadSearchPopup::init @ 0x74e206\n; > DeathStatsPopup::init @ 0x76f2b0\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:46:37 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x3cb7ac\nLDR             R4, =(__stack_chk_guard_ptr - 0x3CB7B8)                ; +0x2, 0x3cb7ae\nVPUSH           {D8}                                                   ; +0x4, 0x3cb7b0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3cb7b4\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x3cb7b6\nVMOV            S17, R1                                                ; +0xc, 0x3cb7b8\nLDR             R3, [R4]                                               ; +0x10, 0x3cb7bc\nSUB             SP, SP, #0x10                                          ; +0x12, 0x3cb7be\nVMOV            S16, R0; this                                          ; +0x14, 0x3cb7c0\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x3cb7c4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a, 0x3cb7c6\nMOV             R1, R0                                                 ; +0x1e, 0x3cb7ca\nADD             R0, SP, #0x10+var_C; this                              ; +0x20, 0x3cb7cc\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x22, 0x3cb7ce\nVMOV.F32        S15, #0.5                                              ; +0x26, 0x3cb7d2\nVLDR            S14, [SP,#0x10+var_8]                                  ; +0x2a, 0x3cb7d6\nVMUL.F32        S16, S16, S15                                          ; +0x2e, 0x3cb7da\nVMLA.F32        S16, S14, S15                                          ; +0x32, 0x3cb7de\nVMOV.F32        S15, #15.0                                             ; +0x36, 0x3cb7e2\nVSUB.F32        S14, S14, S16                                          ; +0x3a, 0x3cb7e6\nVSUB.F32        S15, S14, S15                                          ; +0x3e, 0x3cb7ea\nVCMPE.F32       S17, S15                                               ; +0x42, 0x3cb7ee\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x3cb7f2\nITE GT                                                                 ; +0x4a, 0x3cb7f6\nVCMPEGT.F32     S15, #0.0                                              ; +0x4c, 0x3cb7f8\nVCMPELE.F32     S17, #0.0                                              ; +0x50, 0x3cb7fc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x54, 0x3cb800\nITE GT                                                                 ; +0x58, 0x3cb804\nMOVGT           R3, #1                                                 ; +0x5a, 0x3cb806\nMOVLE           R3, #0                                                 ; +0x5c, 0x3cb808\nCBZ             R3, loc_3CB820                                         ; +0x5e, 0x3cb80a\nVCMPE.F32       S17, S15                                               ; +0x60, 0x3cb80c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x64, 0x3cb810\nITE LE                                                                 ; +0x68, 0x3cb814\nVMOVLE          R0, S17                                                ; +0x6a, 0x3cb816\nVMOVGT          R0, S15                                                ; +0x6e, 0x3cb81a\nB               loc_3CB822                                             ; +0x72, 0x3cb81e\nMOVS            R0, #0                                                 ; +0x74, 0x3cb820\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x76, 0x3cb822\nLDR             R3, [R4]                                               ; +0x78, 0x3cb824\nCMP             R2, R3                                                 ; +0x7a, 0x3cb826\nBEQ             loc_3CB82E                                             ; +0x7c, 0x3cb828\nBLX             __stack_chk_fail                                       ; +0x7e, 0x3cb82a\nADD             SP, SP, #0x10                                          ; +0x82, 0x3cb82e\nVPOP            {D8}                                                   ; +0x84, 0x3cb830\nPOP             {R4,PC}                                                ; +0x88, 0x3cb834", "xrefs": ["SetIDPopup::init @ 0x5da716", "SetTextPopup::init @ 0x5de2c4", "AdminActionConfirmPopup::init @ 0x73140e", "ReviewChoiceSheet::init @ 0x73326a", "RenameThreadPopup::init @ 0x74dc1a", "ThreadSearchPopup::init @ 0x74e206", "DeathStatsPopup::init @ 0x76f2b0"], "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"}