Last active
April 24, 2022 07:03
-
-
Save madordie/7bdcae5a58a5288059632586771ab48c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIViewController *__cdecl -[UIViewController init](UIViewController *self, SEL a2) | |
{ | |
return (UIViewController *)-[UIViewController initWithNibName:bundle:](self, "initWithNibName:bundle:", 0LL, 0LL); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIViewController *__cdecl -[UIViewController initWithNibName:bundle:](UIViewController *self, SEL a2, id a3, id a4) | |
{ | |
id v4; // r12 | |
void *v5; // r15 | |
__int64 v6; // r14 | |
char *v7; // rbx | |
void *v8; // rax | |
__int64 v9; // rdi | |
char v10; // al | |
char v11; // al | |
UIViewController *v13; // [rsp+8h] [rbp-38h] | |
__objc2_class *v14; // [rsp+10h] [rbp-30h] | |
v4 = a4; | |
v5 = (void *)objc_retain(a3); | |
v6 = objc_retain(v4); | |
v13 = self; | |
v14 = &OBJC_CLASS___UIViewController; | |
v7 = (char *)objc_msgSendSuper2(&v13, "init"); | |
if ( v7 ) | |
{ | |
v8 = objc_msgSend(v5, "copy"); | |
v9 = *(_QWORD *)(v7 + 60); | |
*(_QWORD *)(v7 + 60) = v8; | |
objc_release(v9); | |
objc_storeStrong(v7 + 68, v4); | |
objc_msgSend(v7, "_populateInitialTraitCollection"); | |
objc_msgSend(v7, "_doCommonSetup"); | |
*(_QWORD *)(v7 + 580) = 15LL; | |
v7[328] |= 0x10u; | |
v10 = (unsigned __int64)objc_msgSend(v7, "_isPresentationContextByDefault"); | |
objc_msgSend(v7, "setDefinesPresentationContext:", (unsigned int)v10); | |
v11 = (unsigned __int64)objc_msgSend(v7, "_restoresFocusAfterTransitionByDefault"); | |
objc_msgSend(v7, "setRestoresFocusAfterTransition:", (unsigned int)v11); | |
v7[329] |= 0x40u; | |
*(_QWORD *)(v7 + 204) = 0LL; | |
*(_QWORD *)(v7 + 212) = _UIViewControllerDefaulModalPresentationStyle(); | |
} | |
objc_release(v6); | |
objc_release(v5); | |
return (UIViewController *)v7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment