Jump to content

Boolean in ARM64?


Ted2

9 posts in this topic

Recommended Posts

Hey,

 

So I'm trying to make my hack support arm64 devices too, lazy too use AutoLipo & since most devices are arm64 it's good to understand it I think.

 

So the hack is done for armv7, I got a boolean function which looks like this in armv7:

__text:003D5A58 sub_3D5A58                            
__text:003D5A58                                        
__text:003D5A58                 CMP             R0, #0
__text:003D5A5A                 ITTT EQ
__text:003D5A5C                 MOVEQ           R0, #0
__text:003D5A5E                 SXTBEQ          R0, R0
__text:003D5A60                 BXEQ            LR
__text:003D5A62                 MOV             R1, #(_OBJC_IVAR_$_Something) ; char _somethign;
__text:003D5A6A                 ADD             R1, PC  ; char _something;
__text:003D5A6C                 LDR             R1, [R1] ; char _something;
__text:003D5A6E                 LDRB            R0, [R0,R1]
__text:003D5A70                 SXTB            R0, R0
__text:003D5A72                 BX              LR

 

What I did here was,

Change CMP R0, #0 to MOV R0, #1

and change MOVEQ R0, #0 to MOVEQ R0, #1.

This worked.

 

Now I went to the same function in arm64, and my mind was like :o 

This is the code:

 

sub_10041D8DC                           ; CODE XREF: sub_10031C83C+228�p
__text:000000010041D8DC                                        
__text:000000010041D8DC                 CBZ             X0, locret_10041D8F4
__text:000000010041D8E0                 ADRP            X8, #_OBJC_IVAR_$_something._something@PAGE ; bool _something;
__text:000000010041D8E4                 LDRSW           X8, [X8,#_OBJC_IVAR_$_Something._something@PAGEOFF] ; bool _something;
__text:000000010041D8E8                 LDRB            W8, [X0,X8]
__text:000000010041D8EC                 CMP             W8, #0
__text:000000010041D8F0                 CSET            W0, NE
__text:000000010041D8F4
__text:000000010041D8F4 locret_10041D8F4                        ; CODE XREF: sub_10041D8DC�j
__text:000000010041D8F4                 RET

 

So I was actually looking for a boolean, which I thought was: MOV X0, #0 or MOV W0, #0.

The only function I see which I have to include is the CMP.

 

So my question, what's the boolean function? Is it diffrent named in arm64 binary's?

 

Thankyou in advance :D

Link to comment
https://iosgods.com/topic/53270-boolean-in-arm64/
Share on other sites

4 minutes ago, Ted2 said:

Hey,

 

So I'm trying to make my hack support arm64 devices too, lazy too use AutoLipo & since most devices are arm64 it's good to understand it I think.

 

So the hack is done for armv7, I got a boolean function which looks like this in armv7:


__text:003D5A58 sub_3D5A58                            
__text:003D5A58                                        
__text:003D5A58                 CMP             R0, #0
__text:003D5A5A                 ITTT EQ
__text:003D5A5C                 MOVEQ           R0, #0
__text:003D5A5E                 SXTBEQ          R0, R0
__text:003D5A60                 BXEQ            LR
__text:003D5A62                 MOV             R1, #(_OBJC_IVAR_$_Something) ; char _somethign;
__text:003D5A6A                 ADD             R1, PC  ; char _something;
__text:003D5A6C                 LDR             R1, [R1] ; char _something;
__text:003D5A6E                 LDRB            R0, [R0,R1]
__text:003D5A70                 SXTB            R0, R0
__text:003D5A72                 BX              LR

 

What I did here was,

Change CMP R0, #0 to MOV R0, #1

and change MOVEQ R0, #0 to MOVEQ R0, #1.

This worked.

 

Now I went to the same function in arm64, and my mind was like :o 

This is the code:

 


sub_10041D8DC                           ; CODE XREF: sub_10031C83C+228�p
__text:000000010041D8DC                                        
__text:000000010041D8DC                 CBZ             X0, locret_10041D8F4
__text:000000010041D8E0                 ADRP            X8, #_OBJC_IVAR_$_something._something@PAGE ; bool _something;
__text:000000010041D8E4                 LDRSW           X8, [X8,#_OBJC_IVAR_$_Something._something@PAGEOFF] ; bool _something;
__text:000000010041D8E8                 LDRB            W8, [X0,X8]
__text:000000010041D8EC                 CMP             W8, #0
__text:000000010041D8F0                 CSET            W0, NE
__text:000000010041D8F4
__text:000000010041D8F4 locret_10041D8F4                        ; CODE XREF: sub_10041D8DC�j
__text:000000010041D8F4                 RET

 

So I was actually looking for a boolean, which I thought was: MOV X0, #0 or MOV W0, #0.

The only function I see which I have to include is the CMP.

 

So my question, what's the boolean function? Is it diffrent named in arm64 binary's?

 

Thankyou in advance :D

CSET W0, NE is setting W0 to 1 if W8 is not zero. Try modding that to MOV W0, #1

Link to comment
https://iosgods.com/topic/53270-boolean-in-arm64/#findComment-1655463
Share on other sites

6 minutes ago, shmoo said:

CSET W0, NE is setting W0 to zero if W8 is not zero. Try modding that to MOV W0, #1

Crashes :S

 

Edit: did the CMP to MOV W0, #1, should've been MOV W8, #1.

Works fine now, thankyou Shmoo! :D

Link to comment
https://iosgods.com/topic/53270-boolean-in-arm64/#findComment-1655465
Share on other sites

2 minutes ago, Ted2 said:

Crashes :S

Refresh I made a typo in the explanation. try changing the LDRB to MOV W8, #1. that way W8 will always be 1 making it so that W0 will always be 1

4 minutes ago, Ted2 said:

Crashes :S

 

Edit: did the CMP to MOV W0, #1, should've been MOV W8, #1.

Works fine now, thankyou Shmoo! :D

Haha good job :)

Link to comment
https://iosgods.com/topic/53270-boolean-in-arm64/#findComment-1655467
Share on other sites

8 minutes ago, DiDA said:

In ARM64

MOV X0, #1 = True

 

http://armconverter.com/submissions.php

Yea, I was looking there. But got confused when in the arm64 function wasn't a boolean to false like it was in the armv7 function xD

 

10 minutes ago, shmoo said:

Refresh I made a typo in the explanation. try changing the LDRB to MOV W8, #1. that way W8 will always be 1 making it so that W0 will always be 1

Haha good job :)

The LDRB to MOV W8, #1 doesn't seem to work, but I'll just keep it with the other ine xD

Link to comment
https://iosgods.com/topic/53270-boolean-in-arm64/#findComment-1655473
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Toram Online v4.0.58 - [ Custom Move Speed & More ]
      Modded/Hacked App: Toram Online By ASOBIMO,Inc.
      Bundle ID: com.asobimo.toramonline
      iTunes Store Link: https://itunes.apple.com/us/app/toram-online/id988683886?mt=8&uo=4&at=1010lce4
       

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - Custom Move Speed
      - God Mode 
      - Fast Attack Speed
      - Fast Cast Speed
      - Always Critical Chance
      - Never Miss Hit 
      - Mobs/Bosses Can't Avoid & Guard 
      - Quick Draw
      - Armor Break
      - Magic Wall - Stun + Full Map Hack 
      • 2,547 replies
    • [ Re:Dive KR ] 프린세스 커넥트! Re:Dive Cheats v10.1.10 +3
      Modded/Hacked App: 프린세스 커넥트! Re:Dive By Kakao Games Corp.
      Bundle ID: com.kakaogames.pcr
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-re-dive/id1452123050?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/148422-%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-redive-cheats-v403-3/
      • 101 replies
    • BitLife - Life Simulator Cheats v3.17.10 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
      • 3,463 replies
    • DomiNations v12.1450.1450 +40++ Cheats [ Exclusive ]
      Modded/Hacked App: DomiNations by NEXON M Inc.
      Bundle ID: com.nexonm.dominations
      iTunes Store Link: https://itunes.apple.com/us/app/dominations/id922558758


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizens Cost
      - Place Multiple of Same Building
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train Cooldown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app.
      • 4,951 replies
    • Real Racing 3 Cheats v13.2.1 +4
      Modded/Hacked App: Real Racing 3 By Electronic Arts Inc.
      Bundle ID: com.ea.realracing3.inc
      iTunes Store Link: https://apps.apple.com/us/app/real-racing-3/id556164008?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Store
      - Freeze M$
      - Freeze R$
      - Freeze Gold

      Non-Jailbroken Hack: https://iosgods.com/topic/185163-real-racing-3-v1317-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147926-real-racing-3-cheats-v1318-4/
        • Like
      • 981 replies
    • Harry Potter: Puzzles & Spells v90.0.290 +1 Jailed Cheat [ Unlimited Moves ]
      Modded/Hacked App: Harry Potter: Puzzles & Spells By Zynga Inc.
      Bundle ID: com.zynga.pottermatch
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-puzzles-spells/id1434505322?uo=4


      Hack Features:
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Harry Potter: Puzzles & Spells v85.0.271 +1 Cheat [ Unlimited Moves ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Haha
      • 32 replies
    • Harry Potter: Puzzles & Spells v90.0.290 +1 Cheat [ Unlimited Moves ]
      Modded/Hacked App: Harry Potter: Puzzles & Spells By Zynga Inc.
      Bundle ID: com.zynga.pottermatch
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-puzzles-spells/id1434505322?uo=4


      Hack Features:
      - Unlimited Moves -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Harry Potter: Puzzles & Spells v85.0.271 +1 Jailed Cheat [ Unlimited Moves ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 19 replies
    • DREDGE v1.0.6 +3 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
      • 4 replies
    • DREDGE v1.0.6 +3 Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
      • 1 reply
    • Good Coffee, Great Coffee v1.0 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 0 replies
    • Good Coffee, Great Coffee v1.0 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 7 replies
    • Modded/Hacked App: Farming Harvest By IVYMOBI LIMITED
      Bundle ID: com.merge.farmharvest.ios
      iTunes Store Link: https://apps.apple.com/us/app/farming-harvest/id6446156138?uo=4


      🤩 Hack Features

      - Cash
      - Coins
      - LvL
      - Exp

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack
      • 1 reply
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines