{"type": "func", "start": 4298793404, "end": 4298793548, "name": "-[iRate applicationWillEnterForeground]", "pseudocode": "// \n// -[iRate applicationWillEnterForeground] from 0x1003a61bc to 0x1003a624c (144 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008479c8\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 -[iRate applicationWillEnterForeground](iRate *self, SEL a2)\n{\n  UIApplication *v3; // x20\n  void *v4; // x21\n\n  v3 = objc_retainAutoreleasedReturnValue(+[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, \"sharedApplication\"));\n  v4 = -[UIApplication applicationState](v3, \"applicationState\");\n  objc_release(v3);\n  if ( v4 == (void *)2 )\n  {\n    -[iRate incrementUseCount](self, \"incrementUseCount\");\n    -[iRate checkForConnectivityInBackground](self, \"checkForConnectivityInBackground\");\n    if ( -[iRate promptAtLaunch](self, \"promptAtLaunch\") )\n    {\n      if ( -[iRate shouldPromptForRating](self, \"shouldPromptForRating\") )\n        -[iRate promptIfNetworkAvailable](self, \"promptIfNetworkAvailable\");\n    }\n  }\n}", "assembly": "; \n; -[iRate applicationWillEnterForeground] from 0x1003a61bc to 0x1003a624c (144 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008479c8\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003a61bc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003a61c0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003a61c4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003a61c8\nMOV             X19, X0                                                ; +0x10, 0x1003a61cc\nADRP            X8, #classRef_UIApplication@PAGE                       ; +0x14, 0x1003a61d0\nLDR             X0, [X8,#classRef_UIApplication@PAGEOFF]; _OBJC_CLASS_$_UIApplication ; +0x18, 0x1003a61d4\nBL              _objc_msgSend$sharedApplication; +[UIApplication sharedApplication] ... ; +0x1c, 0x1003a61d8\nMOV             X29, X29                                               ; +0x20, 0x1003a61dc\nBL              _objc_retainAutoreleasedReturnValue                    ; +0x24, 0x1003a61e0\nMOV             X20, X0                                                ; +0x28, 0x1003a61e4\nBL              _objc_msgSend$applicationState; -[UIApplication applicationState] ... ; +0x2c, 0x1003a61e8\nMOV             X21, X0                                                ; +0x30, 0x1003a61ec\nMOV             X0, X20; id                                            ; +0x34, 0x1003a61f0\nBL              _objc_release                                          ; +0x38, 0x1003a61f4\nCMP             X21, #2                                                ; +0x3c, 0x1003a61f8\nB.NE            loc_1003A623C                                          ; +0x40, 0x1003a61fc\nMOV             X0, X19                                                ; +0x44, 0x1003a6200\nBL              _objc_msgSend$incrementUseCount; -[iRate incrementUseCount] ... ; +0x48, 0x1003a6204\nMOV             X0, X19                                                ; +0x4c, 0x1003a6208\nBL              _objc_msgSend$checkForConnectivityInBackground; -[iRate checkForConnectivityInBackground] ... ; +0x50, 0x1003a620c\nMOV             X0, X19                                                ; +0x54, 0x1003a6210\nBL              _objc_msgSend$promptAtLaunch; -[iRate promptAtLaunch] ... ; +0x58, 0x1003a6214\nCBZ             W0, loc_1003A623C                                      ; +0x5c, 0x1003a6218\nMOV             X0, X19                                                ; +0x60, 0x1003a621c\nBL              _objc_msgSend$shouldPromptForRating; -[iRate shouldPromptForRating] ... ; +0x64, 0x1003a6220\nCBZ             W0, loc_1003A623C                                      ; +0x68, 0x1003a6224\nMOV             X0, X19                                                ; +0x6c, 0x1003a6228\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1003a622c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1003a6230\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x1003a6234\nB               _objc_msgSend$promptIfNetworkAvailable; -[iRate promptIfNetworkAvailable] ... ; +0x7c, 0x1003a6238\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x1003a623c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x1003a6240\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x1003a6244\nRET                                                                    ; +0x8c, 0x1003a6248", "xrefs": ["<???> @ 0x1008479c8"], "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"}