Skip to content

Instantly share code, notes, and snippets.

@aviraxp
Created September 2, 2018 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviraxp/2d26b9b4fb525c027a5baa79a9e808f9 to your computer and use it in GitHub Desktop.
Save aviraxp/2d26b9b4fb525c027a5baa79a9e808f9 to your computer and use it in GitHub Desktop.
after
.text:0000648A LDR R1, [SP,#0x38+ptr]
.text:0000648C MOVS R5, #2
.text:0000648E LDR.W R0, [R6,#0x1D4]
.text:00006492 BLX mct_list_remove
.text:00006496 STR.W R0, [R6,#0x1D4]
.text:0000649A LDR R0, [SP,#0x38+ptr]
.text:0000649C BLX j_isp_parser_thread_join
.text:000064A0 LDR R0, [SP,#0x38+ptr]
.text:000064A2 BLX j_isp_trigger_thread_join
.text:000064A6 LDR R0, [SP,#0x38+ptr]
.text:000064A8 BLX j_isp_hw_update_thread_join
.text:000064AC MOV R0, R4
.text:000064AE LDR R1, [SP,#0x38+ptr]
.text:000064B0 BLX j_isp_algo_stop_session
.text:000064B4 LDR R4, [SP,#0x38+ptr]
.text:000064B6 ADD.W R0, R4, #0x31800
.text:000064BA ADDS R0, #0xB4 ; mutex
.text:000064BC BLX pthread_mutex_destroy
.text:000064C0 LDR R0, [SP,#0x38+ptr]
.text:000064C2 ADD.W R0, R0, #0x31800
.text:000064C6 ADDS R0, #0xB8 ; mutex
.text:000064C8 BLX pthread_mutex_destroy
.text:000064CC LDR R2, [SP,#0x38+ptr]
.text:000064CE ADD.W R0, R2, #0x31800
.text:000064D2 ADDS R0, #0xBC ; mutex
.text:000064D4 BLX pthread_mutex_destroy
.text:000064D8 LDR R1, [SP,#0x38+ptr]
.text:000064DA ADD.W R0, R1, #0x31800
.text:000064DE ADDS R0, #0xB0 ; cond
.text:000064E0 BLX pthread_cond_destroy
.text:000064E4 CMP R5, #1
.text:000064E6 BEQ loc_64EC
.text:000064E8 MOVS R5, #1
.text:000064EA MOVS R0, R0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment