utils.mid
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· MID 代码 · 共 4,694 行 · 第 1/5 页
MID
4,694 行
.file 1 "utils.c" .section .mdebug.abi32 .previous .section .text.av_register_input_format,"ax",@progbits .align 2 .align 5 .globl av_register_input_format .ent av_register_input_format .type av_register_input_format, @functionav_register_input_format: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lui $3,%hi(first_iformat) lw $2,%lo(first_iformat)($3) beq $2,$0,$L9 addiu $3,$3,%lo(first_iformat)$L6: addiu $3,$2,60 lw $2,60($2) bne $2,$0,$L6 nop sw $4,0($3) j $31 sw $0,60($4)$L9: sw $4,0($3) j $31 sw $0,60($4) .set macro .set reorder .end av_register_input_format .section .text.av_register_output_format,"ax",@progbits .align 2 .align 5 .globl av_register_output_format .ent av_register_output_format .type av_register_output_format, @functionav_register_output_format: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lui $3,%hi(first_oformat) lw $2,%lo(first_oformat)($3) beq $2,$0,$L17 addiu $3,$3,%lo(first_oformat)$L15: addiu $3,$2,60 lw $2,60($2) bne $2,$0,$L15 nop sw $4,0($3) j $31 sw $0,60($4)$L17: sw $4,0($3) j $31 sw $0,60($4) .set macro .set reorder .end av_register_output_format .section .text.av_init_packet,"ax",@progbits .align 2 .align 5 .globl av_init_packet .ent av_init_packet .type av_init_packet, @functionav_init_packet: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lui $2,%hi(av_destruct_packet_nofree) addiu $2,$2,%lo(av_destruct_packet_nofree) move $6,$0 li $7,-2147483648 # 0xffffffff80000000 sw $2,36($4) li $3,-1 # 0xffffffffffffffff li $2,-1 # 0xffffffffffffffff sw $6,8($4) sw $7,12($4) sw $2,48($4) sw $3,52($4) sw $6,0($4) sw $7,4($4) sw $0,32($4) sw $0,28($4) j $31 sw $0,24($4) .set macro .set reorder .end av_init_packet .section .rodata.str1.4,"aMS",@progbits,1 .align 2$LC0: .ascii "NULL\000" .section .text.format_to_name,"ax",@progbits .align 2 .align 5 .ent format_to_name .type format_to_name, @functionformat_to_name: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2,4($4) beq $2,$0,$L21 nop j $31 lw $2,0($2)$L21: lw $4,8($4) lui $2,%hi($LC0) beq $4,$0,$L27 addiu $2,$2,%lo($LC0) lw $2,0($4)$L27: j $31 nop .set macro .set reorder .end format_to_name .section .text.av_read_packet,"ax",@progbits .align 2 .align 5 .globl av_read_packet .ent av_read_packet .type av_read_packet, @functionav_read_packet: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2,4($4) move $8,$0 lw $25,20($2) lui $2,%hi(av_destruct_packet_nofree) addiu $2,$2,%lo(av_destruct_packet_nofree) li $9,-2147483648 # 0xffffffff80000000 sw $2,36($5) li $3,-1 # 0xffffffffffffffff li $2,-1 # 0xffffffffffffffff sw $8,8($5) sw $9,12($5) sw $2,48($5) sw $3,52($5) sw $8,0($5) sw $9,4($5) sw $0,32($5) sw $0,28($5) jr $25 sw $0,24($5) .set macro .set reorder .end av_read_packet .section .text.av_destruct_packet_nofree,"ax",@progbits .align 2 .align 5 .globl av_destruct_packet_nofree .ent av_destruct_packet_nofree .type av_destruct_packet_nofree, @functionav_destruct_packet_nofree: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro sw $0,20($4) j $31 sw $0,16($4) .set macro .set reorder .end av_destruct_packet_nofree .section .text.av_find_default_stream_index,"ax",@progbits .align 2 .align 5 .globl av_find_default_stream_index .ent av_find_default_stream_index .type av_find_default_stream_index, @functionav_find_default_stream_index: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $7,96($4) beq $7,$0,$L41 move $5,$4 lw $2,100($4) lw $3,8($2) lw $4,224($3) beq $4,$0,$L36 move $6,$0 j $L42 addiu $6,$6,1$L39: lw $2,104($5) lw $3,8($2) lw $4,224($3) beq $4,$0,$L35 addiu $5,$5,4 addiu $6,$6,1$L42: bne $6,$7,$L39 nop$L36: move $6,$0$L35: j $31 move $2,$6$L41: li $6,-1 # 0xffffffffffffffff j $31 move $2,$6 .set macro .set reorder .end av_find_default_stream_index .section .text.av_index_search_timestamp,"ax",@progbits .align 2 .align 5 .globl av_index_search_timestamp .ent av_index_search_timestamp .type av_index_search_timestamp, @functionav_index_search_timestamp: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $12,148($4) lw $14,16($sp) lw $11,144($4) move $9,$12 li $10,-1 # 0xffffffffffffffff move $13,$7$L79: addu $2,$10,$9 sra $8,$2,1 sll $3,$8,3 sll $2,$8,5 subu $2,$2,$3 subu $3,$9,$10 slt $3,$3,2 bne $3,$0,$L81 addu $2,$2,$11$L45: lw $5,12($2) lw $4,8($2) slt $2,$5,$7 bne $2,$0,$L46 slt $3,$7,$5 beq $5,$7,$L82 sltu $2,$4,$6$L48: bne $3,$0,$L79 move $9,$8 beq $13,$5,$L83 sltu $2,$6,$4 move $9,$8$L46: move $10,$8$L85: addu $2,$10,$9 sra $8,$2,1 sll $3,$8,3 sll $2,$8,5 subu $2,$2,$3 subu $3,$9,$10 slt $3,$3,2 beq $3,$0,$L45 addu $2,$2,$11$L81: andi $5,$14,0x1 move $4,$10 andi $2,$14,0x4 bne $2,$0,$L56 movz $4,$9,$5 bltz $4,$L86 xor $3,$4,$12 slt $2,$4,$12 beq $2,$0,$L56 sll $3,$4,5 sll $2,$4,3 subu $3,$3,$2 addu $3,$3,$11 lw $2,16($3) andi $2,$2,0x1 bne $2,$0,$L56 nop bne $5,$0,$L61 move $5,$12 j $L63 addiu $3,$3,24$L84: beq $4,$5,$L56 nop lw $2,16($3) andi $2,$2,0x1 bne $2,$0,$L56 addiu $3,$3,24$L63: addiu $4,$4,1 bgez $4,$L84 nop$L56: xor $3,$4,$12$L86: li $2,-1 # 0xffffffffffffffff j $31 movn $2,$4,$3$L83: bne $2,$0,$L79 nop j $L46 move $9,$8$L82: beq $2,$0,$L48 nop j $L85 move $10,$8$L61: addiu $3,$3,-24 li $5,-1 # 0xffffffffffffffff$L66: addiu $4,$4,-1 beq $4,$5,$L56 slt $2,$4,$12 beq $2,$0,$L56 nop lw $2,16($3) andi $2,$2,0x1 beq $2,$0,$L66 addiu $3,$3,-24 j $L86 xor $3,$4,$12 .set macro .set reorder .end av_index_search_timestamp .section .text.codec_get_tag,"ax",@progbits .align 2 .align 5 .globl codec_get_tag .ent codec_get_tag .type codec_get_tag, @functioncodec_get_tag: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $2,0($4) beq $2,$0,$L88 nop bne $5,$2,$L98 addiu $4,$4,8 addiu $4,$4,-8 j $31 lw $2,4($4)$L92: beq $3,$5,$L90 nop addiu $4,$4,8$L98: lw $3,0($4) bne $3,$0,$L92 nop$L88: j $31 move $2,$0$L90: lw $2,4($4) j $31 nop .set macro .set reorder .end codec_get_tag .section .text.av_codec_get_tag,"ax",@progbits .align 2 .align 5 .globl av_codec_get_tag .ent av_codec_get_tag .type av_codec_get_tag, @functionav_codec_get_tag: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro beq $4,$0,$L100 nop lw $3,0($4) bne $3,$0,$L116 move $2,$0 j $L118 nop$L108: beq $2,$5,$L117 nop addiu $3,$3,8$L116: lw $2,0($3) bne $2,$0,$L108 nop$L104: lw $3,4($4) bne $3,$0,$L116 addiu $4,$4,4$L100: j $31 move $2,$0$L117: lw $2,4($3) beq $2,$0,$L104 nop$L118: j $31 nop .set macro .set reorder .end av_codec_get_tag .section .text.av_read_play,"ax",@progbits .align 2 .align 5 .globl av_read_play .ent av_read_play .type av_read_play, @functionav_read_play: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $3,4($4) lw $25,48($3) beq $25,$0,$L125 li $2,-89 # 0xffffffffffffffa7 jr $25 nop$L125: j $31 nop .set macro .set reorder .end av_read_play .section .text.av_read_pause,"ax",@progbits .align 2 .align 5 .globl av_read_pause .ent av_read_pause .type av_read_pause, @functionav_read_pause: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro lw $3,4($4) lw $25,52($3) beq $25,$0,$L132 li $2,-89 # 0xffffffffffffffa7 jr $25 nop$L132: j $31 nop .set macro .set reorder .end av_read_pause .section .text.av_set_pts_info,"ax",@progbits .align 2 .align 5 .globl av_set_pts_info .ent av_set_pts_info .type av_set_pts_info, @functionav_set_pts_info: .frame $sp,0,$31 # vars= 0, regs= 0/0, args= 0, gp= 0 .mask 0x00000000,0 .fmask 0x00000000,0 .set noreorder .set nomacro sw $7,68($4) sw $5,72($4) j $31 sw $6,64($4) .set macro .set reorder .end av_set_pts_info .section .rodata.str1.4 .align 2$LC1: .ascii "%08x \000" .align 2$LC2: .ascii " %02x\000" .align 2$LC3: .ascii " \000" .align 2$LC4: .ascii " \000" .align 2$LC5: .ascii "%c\000" .align 2$LC6: .ascii "\012\000" .section .text.hex_dump_internal,"ax",@progbits .align 2 .align 5 .ent hex_dump_internal .type hex_dump_internal, @functionhex_dump_internal: .frame $sp,56,$31 # vars= 0, regs= 10/0, args= 16, gp= 0 .mask 0xc0ff0000,-4 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-56 lw $2,72($sp) sw $fp,48($sp) sw $23,44($sp) sw $31,52($sp) sw $22,40($sp) sw $21,36($sp) sw $20,32($sp) sw $19,28($sp) sw $18,24($sp) sw $17,20($sp) sw $16,16($sp) move $fp,$4 sw $5,60($sp) blez $2,$L154 move $23,$6 move $19,$7 move $20,$0$L138: lw $2,72($sp) li $18,16 # 0x10 subu $3,$2,$20 slt $2,$3,17 movn $18,$3,$2 lw $3,60($sp) beq $3,$0,$L159 move $4,$fp blez $18,$L166 lw $2,60($sp) lw $3,60($sp)$L167: beq $3,$0,$L160 move $16,$19$L148: lw $3,72($sp)$L164: addiu $20,$20,16 slt $2,$20,$3 bne $2,$0,$L138 addiu $19,$19,16$L154: lw $31,52($sp) lw $fp,48($sp) lw $23,44($sp) lw $22,40($sp) lw $21,36($sp) lw $20,32($sp) lw $19,28($sp) lw $18,24($sp) lw $17,20($sp) lw $16,16($sp) j $31 addiu $sp,$sp,56$L159: lui $6,%hi($LC1) addiu $6,$6,%lo($LC1) move $5,$23 jal av_log move $7,$20 move $16,$19 move $17,$0 lui $22,%hi($LC2) j $L141 li $21,16 # 0x10$L162: lbu $7,0($16) jal av_log addiu $17,$17,1 beq $17,$21,$L161 addiu $16,$16,1$L141: slt $2,$17,$18 move $4,$fp move $5,$23 bne $2,$0,$L162 addiu $6,$22,%lo($LC2) lui $2,%hi($LC3) move $4,$fp move $5,$23 addiu $6,$2,%lo($LC3) jal av_log addiu $17,$17,1 bne $17,$21,$L141 addiu $16,$16,1$L161: lui $6,%hi($LC4) addiu $6,$6,%lo($LC4) move $4,$fp jal av_log move $5,$23 bgtz $18,$L167 lw $3,60($sp) lw $2,60($sp)$L166: bne $2,$0,$L148 nop lui $6,%hi($LC6)$L165: addiu $6,$6,%lo($LC6) move $4,$fp jal av_log move $5,$23 j $L164 lw $3,72($sp)$L160: move $17,$0 lui $21,%hi($LC5)$L150: lbu $7,0($16) li $3,46 # 0x2e addiu $2,$7,-32 sltu $2,$2,95 movz $7,$3,$2 move $4,$fp move $5,$23 addiu $6,$21,%lo($LC5) jal av_log addiu $17,$17,1 bne $18,$17,$L150 addiu $16,$16,1 j $L165 lui $6,%hi($LC6) .set macro .set reorder .end hex_dump_internal .section .text.av_hex_dump_log,"ax",@progbits .align 2 .align 5 .globl av_hex_dump_log .ent av_hex_dump_log .type av_hex_dump_log, @functionav_hex_dump_log: .frame $sp,32,$31 # vars= 0, regs= 1/0, args= 24, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 move $2,$6 sw $7,16($sp) move $6,$5 move $7,$2 sw $31,24($sp) jal hex_dump_internal move $5,$0 lw $31,24($sp) j $31 addiu $sp,$sp,32 .set macro .set reorder .end av_hex_dump_log .section .text.av_hex_dump,"ax",@progbits .align 2 .align 5 .globl av_hex_dump .ent av_hex_dump .type av_hex_dump, @functionav_hex_dump: .frame $sp,32,$31 # vars= 0, regs= 1/0, args= 24, gp= 0 .mask 0x80000000,-8 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 sw $6,16($sp) move $7,$5 move $6,$0 move $5,$4 sw $31,24($sp) jal hex_dump_internal move $4,$0 lw $31,24($sp) j $31 addiu $sp,$sp,32 .set macro .set reorder .end av_hex_dump .section .text.find_info_tag,"ax",@progbits .align 2 .align 5 .globl find_info_tag .ent find_info_tag .type find_info_tag, @functionfind_info_tag: .frame $sp,168,$31 # vars= 128, regs= 6/0, args= 16, gp= 0 .mask 0x801f0000,-4 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-168 sw $20,160($sp) sw $19,156($sp) sw $18,152($sp) sw $31,164($sp) sw $17,148($sp) sw $16,144($sp) lb $3,0($7) li $2,63 # 0x3f move $18,$4 move $20,$5 beq $3,$2,$L173 move $19,$6 move $16,$7 addiu $17,$sp,16$L209: lb $3,0($16) beq $3,$0,$L210 li $2,61 # 0x3d$L219: beq $3,$2,$L210 li $2,38 # 0x26 beq $3,$2,$L210 move $6,$17 li $5,61 # 0x3d j $L183 li $4,38 # 0x26$L211: beq $3,$5,$L217 nop beq $3,$4,$L217 nop$L183: subu $2,$6,$17 sltu $2,$2,127 beq $2,$0,$L184 addiu $16,$16,1 sb $3,0($6) addiu $6,$6,1$L184: lb $3,0($16) bne $3,$0,$L211 li $2,61 # 0x3d$L217: beq $3,$2,$L212 sb $0,0($6)$L188: move $4,$17 jal strcmp move $5,$19 beq $2,$0,$L218 lw $31,164($sp)$L215: lb $3,0($16) li $2,38 # 0x26 bne $3,$2,$L206 addiu $16,$16,1 lb $3,0($16) bne $3,$0,$L219 li $2,61 # 0x3d$L210: move $6,$17 li $2,61 # 0x3d bne $3,$2,$L188 sb $0,0($6)$L212: addiu $16,$16,1 lb $3,0($16) li $2,38 # 0x26 beq $3,$2,$L220 move $4,$18 beq $3,$0,$L220 addiu $5,$20,-1 move $4,$18 li $7,43 # 0x2b li $8,32 j $L193 li $6,38 # 0x26$L196: sb $3,0($4) addiu $4,$4,1$L194: addiu $16,$16,1 lb $3,0($16) beq $3,$6,$L198 nop$L214: beq $3,$0,$L198 nop$L193: subu $2,$4,$18 slt $2,$2,$5 beq $2,$0,$L194 nop
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?