{"type": "func", "start": 4294998900, "end": 4294998972, "name": "GJSmartTemplate::flipBlockType", "pseudocode": "// \n// GJSmartTemplate::flipBlockType from 0x100007b74 to 0x100007bbc (72 bytes)\n// \n// 9 xrefs:\n// > GJSmartTemplate::flipKey @ 0x100006ef0\n// > GJSmartTemplate::flipKey @ 0x100006f04\n// > GJSmartTemplate::flipKey @ 0x100006f18\n// > GJSmartTemplate::flipKey @ 0x100006f2c\n// > GJSmartTemplate::flipKey @ 0x100006f40\n// > GJSmartTemplate::flipKey @ 0x100006f54\n// > GJSmartTemplate::flipKey @ 0x100006f68\n// > GJSmartTemplate::flipKey @ 0x100006f7c\n// > GJSmartTemplate::flipKey @ 0x100006f90\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\nSmartBlockType __fastcall GJSmartTemplate::flipBlockType(SmartBlockType a1, bool a2, bool a3)\n{\n  _BOOL4 v4; // w19\n\n  if ( (a1 & 0xFFFFFFFE) != 0x30 && (a2 || a3) )\n  {\n    v4 = a3;\n    if ( a2 )\n      a1 = GJSmartTemplate::flipBlockTypeX(a1);\n    if ( v4 )\n      return GJSmartTemplate::flipBlockTypeY(a1);\n  }\n  return a1;\n}", "assembly": "; \n; GJSmartTemplate::flipBlockType from 0x100007b74 to 0x100007bbc (72 bytes)\n; \n; 9 xrefs:\n; > GJSmartTemplate::flipKey @ 0x100006ef0\n; > GJSmartTemplate::flipKey @ 0x100006f04\n; > GJSmartTemplate::flipKey @ 0x100006f18\n; > GJSmartTemplate::flipKey @ 0x100006f2c\n; > GJSmartTemplate::flipKey @ 0x100006f40\n; > GJSmartTemplate::flipKey @ 0x100006f54\n; > GJSmartTemplate::flipKey @ 0x100006f68\n; > GJSmartTemplate::flipKey @ 0x100006f7c\n; > GJSmartTemplate::flipKey @ 0x100006f90\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100007b74\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100007b78\nADD             X29, SP, #0x10                                         ; +0x8, 0x100007b7c\nAND             W8, W0, #0xFFFFFFFE                                    ; +0xc, 0x100007b80\nORR             W9, W1, W2                                             ; +0x10, 0x100007b84\nCMP             W8, #0x30 ; '0'                                        ; +0x14, 0x100007b88\nCCMP            W9, #0, #4, NE                                         ; +0x18, 0x100007b8c\nB.EQ            loc_100007BB0                                          ; +0x1c, 0x100007b90\nMOV             X19, X2                                                ; +0x20, 0x100007b94\nCBZ             W1, loc_100007BA0                                      ; +0x24, 0x100007b98\nBL              GJSmartTemplate__flipBlockTypeX                        ; +0x28, 0x100007b9c\nCBZ             W19, loc_100007BB0                                     ; +0x2c, 0x100007ba0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x100007ba4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x100007ba8\nB               GJSmartTemplate__flipBlockTypeY                        ; +0x38, 0x100007bac\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x100007bb0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x100007bb4\nRET                                                                    ; +0x44, 0x100007bb8", "xrefs": ["GJSmartTemplate::flipKey @ 0x100006ef0", "GJSmartTemplate::flipKey @ 0x100006f04", "GJSmartTemplate::flipKey @ 0x100006f18", "GJSmartTemplate::flipKey @ 0x100006f2c", "GJSmartTemplate::flipKey @ 0x100006f40", "GJSmartTemplate::flipKey @ 0x100006f54", "GJSmartTemplate::flipKey @ 0x100006f68", "GJSmartTemplate::flipKey @ 0x100006f7c", "GJSmartTemplate::flipKey @ 0x100006f90"], "is_objc": false, "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"}