root/platform/a640/sub/100b/mount.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. init_file_modules_task
  2. sub_FFEDE49C_my
  3. Mount_FileSystem_my
  4. sub_FFC61630_my
  5. sub_FFC613C4_my

   1 void __attribute__((naked,noinline)) init_file_modules_task(){
   2  asm volatile(
   3                 "STMFD   SP!, {R4,LR}\n"
   4                 "BL      _Unmount_FileSystem\n" // + 
   5                 "BL      sub_FFEDE470\n"
   6                 "SUBS    R4, R0, #0\n"
   7                 "MOV     R0, #0x5000\n"
   8                 "MOV     R1, #0\n"
   9                 "ADD     R0, R0, #6\n"
  10                 "BEQ     loc_FFD9412C\n"
  11                 "BL      sub_FFD66990\n"
  12 "loc_FFD9412C:\n"
  13                 "BL      sub_FFEDE49C_my\n"   //-------------->
  14                 "MOV     R0, #0x5000\n"
  15                 "CMP     R4, #0\n"
  16                 "MOV     R1, R4\n"
  17                 "ADD     R0, R0, #6\n"
  18                 "LDMNEFD SP!, {R4,PC}\n"
  19                 "LDMFD   SP!, {R4,LR}\n"
  20                 "B       sub_FFD66990\n"
  21  );
  22 }
  23 
  24 void __attribute__((naked,noinline)) sub_FFEDE49C_my(){
  25  asm volatile(
  26                 "STR     LR, [SP,#-4]!\n"
  27                 "BL      Mount_FileSystem_my\n"  //------------->
  28                 "LDR     R3, =0xAFA4\n"
  29                 "LDR     R2, [R3]\n"
  30                 "CMP     R2, #0\n"
  31                 "BNE     loc_FFEDE4D8\n"
  32                 "BL      sub_FFDBA20C\n"
  33                 "AND     R0, R0, #0xFF\n"
  34                 "BL      sub_FFC2427C\n"
  35                 "BL      sub_FFDBA20C\n"
  36                 "AND     R0, R0, #0xFF\n"
  37                 "BL      sub_FFC56118\n"
  38                 "BL      sub_FFDBA21C\n"
  39                 "AND     R0, R0, #0xFF\n"
  40                 "BL      sub_FFC24350\n"
  41 "loc_FFEDE4D8:\n"
  42                 "LDR     R2, =0xAFA0\n"
  43                 "MOV     R3, #1\n"
  44                 "STR     R3, [R2]\n"
  45                 "LDR     PC, [SP],#4\n"
  46  );
  47 }
  48 
  49 void __attribute__((naked,noinline)) Mount_FileSystem_my(){
  50  asm volatile(
  51                 "STMFD   SP!, {R4-R6,LR}\n"
  52                 "MOV     R5, #0\n"
  53                 "LDR     R6, =0x2C550\n"
  54                 "MOV     R0, R5\n"
  55                 "BL      sub_FFC612B8\n"
  56                 "LDR     R0, [R6,#0x38]\n"
  57                 "BL      sub_FFC60978\n"
  58                 "SUBS    R1, R0, #0\n"
  59                 "MOV     R0, R5\n"
  60                 "BNE     loc_FFC61910\n"
  61                 "LDR     R3, =0x2798\n"
  62                 "LDR     R2, =0x2790\n"
  63                 "STR     R1, [R3]\n"
  64                 "LDR     R3, =0x2794\n"
  65                 "STR     R1, [R2]\n"
  66                 "STR     R1, [R3]\n"
  67 "loc_FFC61910:\n"
  68                 "BL      sub_FFC61308\n"
  69                 "MOV     R0, R5\n"
  70                 "BL      sub_FFC61630_my\n"   //------------------->
  71                 "MOV     R4, R0\n"
  72                 "MOV     R0, R5\n"
  73                 "BL      sub_FFC616B8\n"
  74                 "AND     R4, R4, R0\n"
  75                 "MOV     R2, R4\n"
  76                 "MOV     R0, R6\n"
  77                 "LDR     R1, [R6,#0x3C]\n"
  78                 "BL      sub_FFC61880\n"
  79                 "STR     R0, [R6,#0x40]\n"
  80                 "LDMFD   SP!, {R4-R6,PC}\n"
  81  );
  82 }
  83 
  84 void __attribute__((naked,noinline)) sub_FFC61630_my(){
  85  asm volatile(
  86                 "STMFD   SP!, {R4-R7,LR}\n"
  87                 "LDR     R7, =0x2794\n"
  88                 "LDR     R3, [R7]\n"
  89                 "MOV     R4, R0\n"
  90                 "CMP     R3, #0\n"
  91                 "ADD     R3, R4, R4,LSL#1\n"
  92                 "RSB     R3, R4, R3,LSL#3\n"
  93                 "LDR     R6, =0x2C588\n"
  94                 "MOV     R5, R3,LSL#2\n"
  95                 "MOV     R1, R4\n"
  96                 "BNE     loc_FFC616A4\n"
  97                 "LDR     R0, [R6,R5]\n"
  98                 "BL      sub_FFC613C4_my\n"  //--------------->
  99                 "SUBS    R3, R0, #0\n"
 100                 "MOV     R1, R4\n"
 101                 "BEQ     loc_FFC6167C\n"
 102                 "LDR     R0, [R6,R5]\n"
 103                 "BL      sub_FFC61510\n"
 104                 "MOV     R3, R0\n"
 105 "loc_FFC6167C:\n"
 106                 "CMP     R3, #0\n"
 107                 "MOV     R0, R4\n"
 108                 "BEQ     loc_FFC61690\n"
 109                 "BL      sub_FFC60A50\n"
 110                 "MOV     R3, R0\n"
 111 "loc_FFC61690:\n"
 112                 "CMP     R3, #0\n"
 113                 "MOV     R0, R3\n"
 114                 "MOVNE   R3, #1\n"
 115                 "STRNE   R3, [R7]\n"
 116                 "LDMFD   SP!, {R4-R7,PC}\n"
 117 "loc_FFC616A4:\n"
 118                 "MOV     R0, #1\n"
 119                 "LDMFD   SP!, {R4-R7,PC}\n"
 120  );
 121 }
 122 
 123 void __attribute__((naked,noinline)) sub_FFC613C4_my(){
 124  asm volatile(
 125                 "STMFD   SP!, {R4-R8,LR}\n"
 126                 "MOV     R5, R1\n"
 127                 "MOV     R8, R5,LSL#1\n"
 128                 "ADD     R3, R8, R5\n"
 129                 "LDR     R2, =0x2C58C\n"
 130                 "SUB     SP, SP, #8\n"
 131                 "RSB     R3, R5, R3,LSL#3\n"
 132                 "LDR     R1, [R2,R3,LSL#2]\n"
 133                 "MOV     R6, #0\n"
 134                 "STR     R6, [SP]\n"
 135                 "MOV     R7, R0\n"
 136                 "STR     R6, [SP,#4]\n"
 137                 "CMP     R1, #5\n"
 138                 "LDRLS   PC, [PC,R1,LSL#2]\n"
 139                 "B       loc_FFC614C0\n"
 140                 ".long loc_FFC61464\n"
 141                 ".long loc_FFC61418\n"
 142                 ".long loc_FFC61418\n"
 143                 ".long loc_FFC61418\n"
 144                 ".long loc_FFC61418\n"
 145                 ".long loc_FFC614B0\n"
 146 "loc_FFC61418:\n"
 147                 "MOV     R0, #3\n"
 148                 "MOV     R1, #0x200\n"
 149                 "MOV     R2, #0\n"
 150                 "BL      sub_FFC02834\n"
 151                 "SUBS    R6, R0, #0\n"
 152                 "BEQ     loc_FFC614F4\n"
 153                 "ADD     R12, R8, R5\n"
 154                 "RSB     R12, R5, R12,LSL#3\n"
 155                 "LDR     R4, =0x2C59C\n"
 156                 "MOV     R0, R7\n"
 157                 "MOV     R1, #0\n"
 158                 "MOV     R2, #1\n"
 159                 "MOV     R3, R6\n"
 160                 "MOV     LR, PC\n"
 161                 "LDR     PC, [R4,R12,LSL#2]\n"
 162                 "CMP     R0, #1\n"
 163                 "BNE     loc_FFC6146C\n"
 164                 "MOV     R0, #3\n"
 165                 "BL      sub_FFC02904\n"
 166 "loc_FFC61464:\n"
 167                 "MOV     R0, #0\n"
 168                 "B       loc_FFC614F4\n"
 169 "loc_FFC6146C:\n"
 170                 "MOV     R0, R7\n"
 171                 "BL      sub_FFC71D8C\n"
 172                 "MOV     R1, R0\n"
 173                 "ADD     R2, SP, #4\n"
 174                 "MOV     R3, SP\n"
 175                 "MOV     R0, R6\n"
 176 
 177                 "STMFD   SP!, {R4-R11,LR}\n" // +
 178                 "BL      mbr_read\n"    //-----------> 
 179                 "LDMFD   SP!, {R4-R11,LR}\n" // +
 180 
 181         //      "BL      sub_FFC60B54\n"  // original function
 182                 "MOV     R4, R0\n"
 183                 "MOV     R0, #3\n"
 184                 "BL      sub_FFC02904\n"
 185                 "CMP     R4, #0\n"
 186                 "BNE     loc_FFC614CC\n"
 187                 "MOV     R0, R7\n"
 188                 "STR     R4, [SP,#4]\n"
 189                 "BL      sub_FFC71D8C\n"
 190                 "STR     R0, [SP]\n"
 191                 "B       loc_FFC614CC\n"
 192 "loc_FFC614B0:\n"
 193                 "MOV     R3, #0\n"
 194                 "MOV     R2, #0x40\n"
 195                 "STMEA   SP, {R2,R3}\n"
 196                 "B       loc_FFC614CC\n"
 197 "loc_FFC614C0:\n"
 198                 "LDR     R0, =0xFFC611AC\n"
 199                 "MOV     R1, #0x2B4\n"
 200                 "BL      sub_FFC03CF8\n"
 201 "loc_FFC614CC:\n"
 202                 "LDR     R2, =0x2C550\n"
 203                 "ADD     R3, R8, R5\n"
 204                 "LDMFD   SP, {R0,R12}\n"
 205                 "RSB     R3, R5, R3,LSL#3\n"
 206                 "MOV     R3, R3,LSL#2\n"
 207                 "ADD     R1, R2, #0x48\n"
 208                 "ADD     R2, R2, #0x44\n"
 209                 "STR     R0, [R1,R3]\n"
 210                 "STR     R12, [R2,R3]\n"
 211                 "MOV     R0, #1\n"
 212 "loc_FFC614F4:\n"
 213                 "ADD     SP, SP, #8\n"
 214                 "LDMFD   SP!, {R4-R8,PC}\n"
 215  );
 216 }

/* [<][>][^][v][top][bottom][index][help] */