123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- .file "fasit.c"
- .text
- .globl writebyte
- .type writebyte, @function
- writebyte:
- .LFB5:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $24, %esp
- movl 12(%ebp), %eax
- movb %al, -12(%ebp)
- pushl 8(%ebp)
- pushl $1
- pushl $1
- leal -12(%ebp), %eax
- pushl %eax
- call fwrite
- addl $16, %esp
- nop
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE5:
- .size writebyte, .-writebyte
- .globl writeutf8char
- .type writeutf8char, @function
- writeutf8char:
- .LFB6:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $24, %esp
- cmpl $127, 12(%ebp)
- ja .L3
- movl 12(%ebp), %eax
- movzbl %al, %eax
- subl $8, %esp
- pushl %eax
- pushl 8(%ebp)
- call writebyte
- addl $16, %esp
- jmp .L2
- .L3:
- cmpl $65535, 12(%ebp)
- jbe .L5
- movl $18, -12(%ebp)
- movl -12(%ebp), %eax
- movl 12(%ebp), %edx
- movl %eax, %ecx
- shrl %cl, %edx
- movl %edx, %eax
- andl $7, %eax
- orl $-16, %eax
- movzbl %al, %eax
- subl $8, %esp
- pushl %eax
- pushl 8(%ebp)
- call writebyte
- addl $16, %esp
- jmp .L6
- .L5:
- cmpl $2047, 12(%ebp)
- jbe .L7
- movl $12, -12(%ebp)
- movl -12(%ebp), %eax
- movl 12(%ebp), %edx
- movl %eax, %ecx
- shrl %cl, %edx
- movl %edx, %eax
- andl $15, %eax
- orl $-32, %eax
- movzbl %al, %eax
- subl $8, %esp
- pushl %eax
- pushl 8(%ebp)
- call writebyte
- addl $16, %esp
- jmp .L6
- .L7:
- movl $6, -12(%ebp)
- movl -12(%ebp), %eax
- movl 12(%ebp), %edx
- movl %eax, %ecx
- shrl %cl, %edx
- movl %edx, %eax
- andl $31, %eax
- orl $-64, %eax
- movzbl %al, %eax
- subl $8, %esp
- pushl %eax
- pushl 8(%ebp)
- call writebyte
- addl $16, %esp
- .L6:
- subl $6, -12(%ebp)
- movl -12(%ebp), %eax
- movl 12(%ebp), %edx
- movl %eax, %ecx
- shrl %cl, %edx
- movl %edx, %eax
- andl $63, %eax
- orl $-128, %eax
- movzbl %al, %eax
- subl $8, %esp
- pushl %eax
- pushl 8(%ebp)
- call writebyte
- addl $16, %esp
- cmpl $0, -12(%ebp)
- jg .L6
- .L2:
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE6:
- .size writeutf8char, .-writeutf8char
- .globl readbyte
- .type readbyte, @function
- readbyte:
- .LFB7:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $24, %esp
- pushl 8(%ebp)
- pushl $1
- pushl $1
- leal -13(%ebp), %eax
- pushl %eax
- call fread
- addl $16, %esp
- movl %eax, -12(%ebp)
- cmpl $0, -12(%ebp)
- jg .L9
- movl $-1, %eax
- jmp .L11
- .L9:
- movzbl -13(%ebp), %eax
- movzbl %al, %eax
- .L11:
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE7:
- .size readbyte, .-readbyte
- .globl readutf8char
- .type readutf8char, @function
- readutf8char:
- .LFB8:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $8, %esp
- subl $12, %esp
- pushl 8(%ebp)
- call readbyte
- addl $16, %esp
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- .LFE8:
- .size readutf8char, .-readutf8char
- .ident "GCC: (GNU) 6.3.1 20170306"
- .section .note.GNU-stack,"",@progbits
|