{"type": "func", "start": 4294998608, "end": 4294998686, "name": "-[AppController gameDidSave]", "pseudocode": "// \n// -[AppController gameDidSave] from 0x100007a50 to 0x100007a9e (78 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100998f48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __cdecl -[AppController gameDidSave](AppController *self, SEL a2)\n{\n  __int64 v2; // rax\n\n  if ( self->saveCalled_ )\n  {\n    self->shouldClose_ = 1;\n    if ( self->forceClose_ )\n    {\n      -[AppController shutdownGame](self, \"shutdownGame\");\n    }\n    else\n    {\n      v2 = sub_100606910(self, a2);\n      sub_100606C70(v2);\n      objc_msgSend(NSApp, \"replyToApplicationShouldTerminate:\", 1);\n    }\n  }\n}", "assembly": "; \n; -[AppController gameDidSave] from 0x100007a50 to 0x100007a9e (78 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100998f48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100007a50\nmov     rbp, rsp                                                       ; +0x1, 0x100007a51\ncmp     byte ptr [rdi+19h], 0                                          ; +0x4, 0x100007a54\njz      short loc_100007A72                                            ; +0x8, 0x100007a58\nmov     byte ptr [rdi+18h], 1                                          ; +0xa, 0x100007a5a\ncmp     byte ptr [rdi+1Ah], 0                                          ; +0xe, 0x100007a5e\njz      short loc_100007A74                                            ; +0x12, 0x100007a62\nmov     rsi, cs:selRef_shutdownGame                                    ; +0x14, 0x100007a64\npop     rbp                                                            ; +0x1b, 0x100007a6b\njmp     cs:_objc_msgSend_ptr; -[AppController shutdownGame] ...        ; +0x1c, 0x100007a6c\npop     rbp                                                            ; +0x22, 0x100007a72\nretn                                                                   ; +0x23, 0x100007a73\ncall    sub_100606910                                                  ; +0x24, 0x100007a74\nmov     rdi, rax                                                       ; +0x29, 0x100007a79\ncall    sub_100606C70                                                  ; +0x2c, 0x100007a7c\nmov     rax, cs:_NSApp_ptr                                             ; +0x31, 0x100007a81\nmov     rdi, [rax]                                                     ; +0x38, 0x100007a88\nmov     rsi, cs:selRef_replyToApplicationShouldTerminate_              ; +0x3b, 0x100007a8b\nmov     edx, 1                                                         ; +0x42, 0x100007a92\npop     rbp                                                            ; +0x47, 0x100007a97\njmp     cs:_objc_msgSend_ptr                                           ; +0x48, 0x100007a98", "xrefs": ["<???> @ 0x100998f48"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}