{"type": "func", "start": 776820, "end": 777084, "name": "sub_BDA74", "pseudocode": "// \n// sub_BDA74 from 0xbda74 to 0xbdb7c (264 bytes)\n// \n// 1 xrefs:\n// > sub_BD5E0 @ 0xbda14\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 12:14:42 +0000\n// \n\n__int64 __fastcall sub_BDA74(__int64 result)\n{\n  __int64 v1; // x8\n\n  if ( *(_BYTE *)(result + 8) )\n  {\n    v1 = result;\n    result = *(_QWORD *)result;\n    if ( result )\n    {\n      if ( *(_BYTE *)(v1 + 8) )\n      {\n        *(_BYTE *)(v1 + 8) = 0;\n        return sub_7BC40(result);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_BDA74 from 0xbda74 to 0xbdb7c (264 bytes)\n; \n; 1 xrefs:\n; > sub_BD5E0 @ 0xbda14\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 12:14:42 +0000\n; \nLDRB            W8, [X0,#8]                                            ; +0x0, 0xbda74\nCBZ             W8, locret_BDA80                                       ; +0x4, 0xbda78\nB               loc_BDB5C                                              ; +0x8, 0xbda7c\nRET                                                                    ; +0xc, 0xbda80\nSTP             X29, X30, [SP,#var_10]!                                ; +0x10, 0xbda84\nCMP             W1, #3; switch 4 cases                                 ; +0x14, 0xbda88\nMOV             X29, SP                                                ; +0x18, 0xbda8c\nB.HI            def_BDAB4; jumptable 00000000000BDAB4 default case     ; +0x1c, 0xbda90\nADRP            X10, #jpt_BDAB4@PAGE                                   ; +0x20, 0xbda94\nMOV             W9, W1                                                 ; +0x24, 0xbda98\nADD             X10, X10, #jpt_BDAB4@PAGEOFF                           ; +0x28, 0xbda9c\nMOV             W8, #0xC220                                            ; +0x2c, 0xbdaa0\nADR             X11, loc_BDAB8; jumptable 00000000000BDAB4 case 0      ; +0x30, 0xbdaa4\nLDRB            W12, [X10,X9]                                          ; +0x34, 0xbdaa8\nADD             X11, X11, X12,LSL#2                                    ; +0x38, 0xbdaac\nADD             X8, X0, X8                                             ; +0x3c, 0xbdab0\nBR              X11; switch jump                                       ; +0x40, 0xbdab4\nCBZ             X2, loc_BDAC4; jumptable 00000000000BDAB4 case 0       ; +0x44, 0xbdab8\nLDR             W9, [X8]                                               ; +0x48, 0xbdabc\nSTR             W9, [X2]                                               ; +0x4c, 0xbdac0\nCBZ             X3, def_BDAB4; jumptable 00000000000BDAB4 default case ; +0x50, 0xbdac4\nLDR             S0, [X8]                                               ; +0x54, 0xbdac8\nADRL            X2, a02f; \"%.02f\"                                      ; +0x58, 0xbdacc\nMOV             W1, #0x20 ; ' '                                        ; +0x60, 0xbdad4\nFCVT            D0, S0                                                 ; +0x64, 0xbdad8\nMOV             X0, X3                                                 ; +0x68, 0xbdadc\nBL              sub_E3FC8                                              ; +0x6c, 0xbdae0\nB               def_BDAB4; jumptable 00000000000BDAB4 default case     ; +0x70, 0xbdae4\nCBZ             X2, loc_BDAF8; jumptable 00000000000BDAB4 case 1       ; +0x74, 0xbdae8\nLDR             S0, [X8,#4]                                            ; +0x78, 0xbdaec\nSCVTF           S0, S0                                                 ; +0x7c, 0xbdaf0\nSTR             S0, [X2]                                               ; +0x80, 0xbdaf4\nCBZ             X3, def_BDAB4; jumptable 00000000000BDAB4 default case ; +0x84, 0xbdaf8\nLDR             W8, [X8,#4]                                            ; +0x88, 0xbdafc\nB               loc_BDB38                                              ; +0x8c, 0xbdb00\nCBZ             X2, loc_BDB14; jumptable 00000000000BDAB4 case 2       ; +0x90, 0xbdb04\nLDR             S0, [X8,#8]                                            ; +0x94, 0xbdb08\nSCVTF           S0, S0                                                 ; +0x98, 0xbdb0c\nSTR             S0, [X2]                                               ; +0x9c, 0xbdb10\nCBZ             X3, def_BDAB4; jumptable 00000000000BDAB4 default case ; +0xa0, 0xbdb14\nLDR             W8, [X8,#8]                                            ; +0xa4, 0xbdb18\nB               loc_BDB38                                              ; +0xa8, 0xbdb1c\nCBZ             X2, loc_BDB30; jumptable 00000000000BDAB4 case 3       ; +0xac, 0xbdb20\nLDR             S0, [X8,#0xC]                                          ; +0xb0, 0xbdb24\nSCVTF           S0, S0                                                 ; +0xb4, 0xbdb28\nSTR             S0, [X2]                                               ; +0xb8, 0xbdb2c\nCBZ             X3, def_BDAB4; jumptable 00000000000BDAB4 default case ; +0xbc, 0xbdb30\nLDR             W8, [X8,#0xC]                                          ; +0xc0, 0xbdb34\nADRL            X2, aD; \"%d\"                                           ; +0xc4, 0xbdb38\nMOV             W1, #0x20 ; ' '                                        ; +0xcc, 0xbdb40\nMOV             X0, X3                                                 ; +0xd0, 0xbdb44\nMOV             W3, W8                                                 ; +0xd4, 0xbdb48\nBL              sub_E3FC8                                              ; +0xd8, 0xbdb4c\nMOV             W0, WZR; jumptable 00000000000BDAB4 default case       ; +0xdc, 0xbdb50\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0xe0, 0xbdb54\nRET                                                                    ; +0xe4, 0xbdb58\nMOV             X8, X0                                                 ; +0xe8, 0xbdb5c\nLDR             X0, [X0]                                               ; +0xec, 0xbdb60\nCBZ             X0, locret_BDB78                                       ; +0xf0, 0xbdb64\nLDRB            W9, [X8,#8]                                            ; +0xf4, 0xbdb68\nCBZ             W9, locret_BDB78                                       ; +0xf8, 0xbdb6c\nSTRB            WZR, [X8,#8]                                           ; +0xfc, 0xbdb70\nB               sub_7BC40                                              ; +0x100, 0xbdb74\nRET                                                                    ; +0x104, 0xbdb78", "xrefs": ["sub_BD5E0 @ 0xbda14"], "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"}