Skip to content

Commit

Permalink
Fix a9 iPads
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptiiiic committed May 24, 2024
1 parent 9dcfbe5 commit 023d77b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/ibootpatchfinder64_iOS14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,20 @@ std::vector<patch> ibootpatchfinder64_iOS14::get_sigcheck_patch(){
patches.push_back({img4interposercallbackret2 - 4, "\x00\x00\x80\xD2" /*mov x0, 0*/, 4});
} else {
patches.push_back({img4interposercallbackret - 4, "\x00\x00\x80\xD2" /*mov x0, 0*/, 4});
while(--iter3 != insn::b) continue;
if(--iter3 != insn::ldp) {
while(--iter3 != insn::b) continue;
if(--iter3 != insn::ldp) {
reterror("img4interposercallback couldn't find branch for ret2!");
} else {
while(--iter3 != insn::mov) continue;
loc_t img4interposercallbackmovx20 = iter3().pc();
debug("img4interposercallbackmovx20=%p", img4interposercallbackmovx20);
patches.push_back({img4interposercallbackmovx20, "\x00\x00\x80\xD2" /*mov x0, 0*/, 4});
}
int i = 0;
for(; i < 100; i++) {
while(--iter3 != insn::b) continue;
if(--iter3 == insn::ldp) {
break;
}
}
if(i == 99) {
reterror("img4interposercallback couldn't find branch for ret2!");
}
while(--iter3 != insn::mov) continue;
loc_t img4interposercallbackmovx20 = iter3().pc();
debug("img4interposercallbackmovx20=%p", img4interposercallbackmovx20);
patches.push_back({img4interposercallbackmovx20, "\x00\x00\x80\xD2" /*mov x0, 0*/, 4});
}
return patches;
}
Expand Down

0 comments on commit 023d77b

Please # to comment.