{"type": "func", "start": 4299240768, "end": 4299240866, "name": "GJSmartTemplate::shouldDiscardObject", "pseudocode": "// \n// GJSmartTemplate::shouldDiscardObject from 0x100413540 to 0x1004135a2 (98 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 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:30:10 +0000\n// \n\nchar __fastcall GJSmartTemplate::shouldDiscardObject(int a1, unsigned int a2)\n{\n  unsigned int v2; // eax\n  char result; // al\n\n  LOBYTE(v2) = 0;\n  switch ( a1 )\n  {\n    case '7':\n    case 'B':\n      if ( a2 >= 9 )\n        goto LABEL_9;\n      v2 = 0x146u >> a2;\n      goto LABEL_4;\n    case '9':\n    case 'D':\n      if ( a2 >= 8 )\nLABEL_9:\n        result = 0;\n      else\n        result = (0xA6u >> a2) & 1;\n      break;\n    case 'F':\n    case 'H':\n      result = ((a2 - 3) & 0xFFFFFFFA) == 0;\n      break;\n    case 'J':\n    case 'L':\n      result = a2 - 3 < 4;\n      break;\n    default:\nLABEL_4:\n      result = v2 & 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::shouldDiscardObject from 0x100413540 to 0x1004135a2 (98 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 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:30:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100413540\nmov     rbp, rsp                                                       ; +0x1, 0x100413541\nxor     eax, eax                                                       ; +0x4, 0x100413544\nadd     edi, 0FFFFFFC9h; switch 22 cases                               ; +0x6, 0x100413546\ncmp     edi, 15h                                                       ; +0x9, 0x100413549\nja      short def_10041355C; jumptable 000000010041355C default case, cases 56,58-65,67,69,71,73,75 ; +0xc, 0x10041354c\nlea     rcx, jpt_10041355C                                             ; +0xe, 0x10041354e\nmovsxd  rdx, (jpt_10041355C - 1004135A4h)[rcx+rdi*4]                   ; +0x15, 0x100413555\nadd     rdx, rcx                                                       ; +0x19, 0x100413559\njmp     rdx; switch jump                                               ; +0x1c, 0x10041355c\ncmp     esi, 9; jumptable 000000010041355C cases 55,66                 ; +0x1e, 0x10041355e\njnb     short loc_10041359C                                            ; +0x21, 0x100413561\nmov     eax, 146h                                                      ; +0x23, 0x100413563\nmov     ecx, esi                                                       ; +0x28, 0x100413568\nshr     eax, cl                                                        ; +0x2a, 0x10041356a\nand     al, 1; jumptable 000000010041355C default case, cases 56,58-65,67,69,71,73,75 ; +0x2c, 0x10041356c\npop     rbp                                                            ; +0x2e, 0x10041356e\nretn                                                                   ; +0x2f, 0x10041356f\nadd     esi, 0FFFFFFFDh; jumptable 000000010041355C cases 74,76        ; +0x30, 0x100413570\ncmp     esi, 4                                                         ; +0x33, 0x100413573\nsetb    al                                                             ; +0x36, 0x100413576\nand     al, 1                                                          ; +0x39, 0x100413579\npop     rbp                                                            ; +0x3b, 0x10041357b\nretn                                                                   ; +0x3c, 0x10041357c\nadd     esi, 0FFFFFFFDh; jumptable 000000010041355C cases 70,72        ; +0x3d, 0x10041357d\ntest    esi, 0FFFFFFFAh                                                ; +0x40, 0x100413580\nsetz    al                                                             ; +0x46, 0x100413586\nand     al, 1                                                          ; +0x49, 0x100413589\npop     rbp                                                            ; +0x4b, 0x10041358b\nretn                                                                   ; +0x4c, 0x10041358c\ncmp     esi, 8; jumptable 000000010041355C cases 57,68                 ; +0x4d, 0x10041358d\njnb     short loc_10041359C                                            ; +0x50, 0x100413590\nmov     al, 0A6h                                                       ; +0x52, 0x100413592\nmov     ecx, esi                                                       ; +0x54, 0x100413594\nshr     al, cl                                                         ; +0x56, 0x100413596\nand     al, 1                                                          ; +0x58, 0x100413598\npop     rbp                                                            ; +0x5a, 0x10041359a\nretn                                                                   ; +0x5b, 0x10041359b\nxor     eax, eax                                                       ; +0x5c, 0x10041359c\nand     al, 1                                                          ; +0x5e, 0x10041359e\npop     rbp                                                            ; +0x60, 0x1004135a0\nretn                                                                   ; +0x61, 0x1004135a1", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}