	.file	"159514635.c"
	.intel_syntax noprefix
	.text
	.type	__bswap_16, @function
__bswap_16:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	rol	ax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	__bswap_16, .-__bswap_16
	.type	__bswap_32, @function
__bswap_32:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	bswap	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	__bswap_32, .-__bswap_32
	.type	__bswap_64, @function
__bswap_64:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	bswap	rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	__bswap_64, .-__bswap_64
	.type	__uint16_identity, @function
__uint16_identity:
.LFB3:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	__uint16_identity, .-__uint16_identity
	.type	__uint32_identity, @function
__uint32_identity:
.LFB4:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	__uint32_identity, .-__uint32_identity
	.type	__uint64_identity, @function
__uint64_identity:
.LFB5:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	__uint64_identity, .-__uint64_identity
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"o:"
.LC2:
	.string	"not an elf file"
.LC3:
	.string	"wrong class"
.LC4:
	.string	"wrong data format"
.LC5:
	.string	"wrong elf version"
.LC6:
	.string	"wrong machine type"
.LC7:
	.string	"phdr size mismatch"
.LC8:
	.string	"too many loadable segments"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -276[rbp], 0
	jmp	.L14
.L17:
	cmp	DWORD PTR -268[rbp], 111
	jne	.L15
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 420
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR optarg[rip]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L15:
	call	usage
.L14:
	mov	rcx, QWORD PTR -304[rbp]
	mov	eax, DWORD PTR -292[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], -1
	jne	.L17
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -292[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -304[rbp], rax
	cmp	DWORD PTR -292[rbp], 0
	jne	.L18
	call	usage
.L18:
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -264[rbp], eax
	cmp	DWORD PTR -264[rbp], 0
	js	.L19
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L20
.L19:
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L20:
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -264[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 1
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], -1
	jne	.L21
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L21:
	mov	rax, QWORD PTR -248[rbp]
	push	QWORD PTR 56[rax]
	push	QWORD PTR 48[rax]
	push	QWORD PTR 40[rax]
	push	QWORD PTR 32[rax]
	push	QWORD PTR 24[rax]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	mov	eax, 0
	call	IS_ELF@PLT
	add	rsp, 64
	test	eax, eax
	jne	.L22
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L22:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, BYTE PTR 4[rax]
	cmp	al, 2
	je	.L23
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L23:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, BYTE PTR 5[rax]
	mov	BYTE PTR -283[rbp], al
	cmp	BYTE PTR -283[rbp], 2
	je	.L24
	cmp	BYTE PTR -283[rbp], 1
	je	.L24
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L24:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, BYTE PTR 6[rax]
	cmp	al, 1
	je	.L25
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L25:
	cmp	BYTE PTR -283[rbp], 2
	jne	.L26
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 18[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__bswap_16
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 18[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__uint16_identity
.L27:
	mov	WORD PTR -282[rbp], ax
	cmp	WORD PTR -282[rbp], 43
	je	.L28
	cmp	WORD PTR -282[rbp], -28634
	je	.L28
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L28:
	cmp	BYTE PTR -283[rbp], 2
	jne	.L29
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 54[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__bswap_16
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 54[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__uint16_identity
.L30:
	mov	WORD PTR -280[rbp], ax
	cmp	WORD PTR -280[rbp], 56
	je	.L31
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L31:
	cmp	BYTE PTR -283[rbp], 2
	jne	.L32
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	__bswap_64
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	__uint64_identity
.L33:
	mov	QWORD PTR -240[rbp], rax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L34
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	__bswap_64
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	__uint64_identity
.L35:
	mov	QWORD PTR -232[rbp], rax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L36
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 56[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__bswap_16
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -248[rbp]
	movzx	eax, WORD PTR 56[rax]
	movzx	eax, ax
	mov	edi, eax
	call	__uint16_identity
.L37:
	mov	WORD PTR -278[rbp], ax
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	lea	rax, -192[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR -272[rbp], 0
	jmp	.L38
.L60:
	cmp	BYTE PTR -283[rbp], 2
	jne	.L39
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	__bswap_32
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	__uint32_identity
.L40:
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 1
	jne	.L63
	mov	eax, DWORD PTR -192[rbp]
	test	eax, eax
	je	.L42
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L42:
	cmp	BYTE PTR -283[rbp], 2
	jne	.L43
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	__bswap_64
	jmp	.L44
.L43:
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	__uint64_identity
.L44:
	mov	QWORD PTR -216[rbp], rax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L45
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	__bswap_64
	jmp	.L46
.L45:
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	__uint64_identity
.L46:
	mov	QWORD PTR -208[rbp], rax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L47
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	__bswap_64
	jmp	.L48
.L47:
	mov	eax, DWORD PTR -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	__uint64_identity
.L48:
	mov	QWORD PTR -200[rbp], rax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L49
	mov	edi, 16974087
	call	__bswap_32
	jmp	.L50
.L49:
	mov	edi, 16974087
	call	__uint32_identity
.L50:
	mov	DWORD PTR -192[rbp], eax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L51
	mov	rax, QWORD PTR -216[rbp]
	mov	edi, eax
	call	__bswap_32
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -216[rbp]
	mov	edi, eax
	call	__uint32_identity
.L52:
	mov	DWORD PTR -188[rbp], eax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L53
	mov	rax, QWORD PTR -208[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -216[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edi, eax
	call	__bswap_32
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -208[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -216[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edi, eax
	call	__uint32_identity
.L54:
	mov	DWORD PTR -180[rbp], eax
	cmp	BYTE PTR -283[rbp], 2
	jne	.L55
	mov	rax, QWORD PTR -240[rbp]
	mov	edi, eax
	call	__bswap_32
	jmp	.L56
.L55:
	mov	rax, QWORD PTR -240[rbp]
	mov	edi, eax
	call	__uint32_identity
.L56:
	mov	DWORD PTR -172[rbp], eax
	lea	rcx, -192[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 32
	jne	.L57
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR -216[rbp]
	cmp	rax, rdx
	je	.L64
.L57:
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L63:
	nop
	jmp	.L59
.L64:
	nop
.L59:
	add	DWORD PTR -272[rbp], 1
.L38:
	movzx	eax, WORD PTR -278[rbp]
	cmp	DWORD PTR -272[rbp], eax
	jl	.L60
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.string	"usage: elf2aout [-o outfile] infile\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"159514635.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__bswap_16, %function
__bswap_16:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r2, r3, #8
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #8
	orr	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__bswap_16, .-__bswap_16
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__bswap_32, %function
__bswap_32:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__bswap_32, .-__bswap_32
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__bswap_64, %function
__bswap_64:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r2, [fp, #-20]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r1, r2, r3
	ldr	r2, [fp, #-16]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	mov	r4, r3
	mov	r5, r1
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	__bswap_64, .-__bswap_64
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__uint16_identity, %function
__uint16_identity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__uint16_identity, .-__uint16_identity
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__uint32_identity, %function
__uint32_identity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__uint32_identity, .-__uint32_identity
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__uint64_identity, %function
__uint64_identity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__uint64_identity, .-__uint64_identity
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"o:\000"
	.align	2
.LC2:
	.ascii	"not an elf file\000"
	.align	2
.LC3:
	.ascii	"wrong class\000"
	.align	2
.LC4:
	.ascii	"wrong data format\000"
	.align	2
.LC5:
	.ascii	"wrong elf version\000"
	.align	2
.LC6:
	.ascii	"wrong machine type\000"
	.align	2
.LC7:
	.ascii	"phdr size mismatch\000"
	.align	2
.LC8:
	.ascii	"too many loadable segments\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #268
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L14
.L17:
	ldr	r3, [fp, #-204]
	cmp	r3, #111
	bne	.L15
	ldr	r3, .L65+4
	ldr	r3, [r3]
	mov	r2, #420
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	bge	.L14
	ldr	r3, .L65+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L65+8
	mov	r0, #1
	bl	err
.L15:
	bl	usage
.L14:
	ldr	r2, .L65+12
	ldr	r1, [fp, #-228]
	ldr	r0, [fp, #-224]
	bl	getopt
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L65+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-224]
	sub	r3, r2, r3
	str	r3, [fp, #-224]
	ldr	r3, .L65+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-228]
	add	r3, r2, r3
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bne	.L18
	bl	usage
.L18:
	ldr	r3, [fp, #-228]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	blt	.L19
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-200]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
.L19:
	mov	r1, #0
	mov	r0, #1
	bl	err
.L20:
	ldr	r3, [fp, #-64]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-200]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmn	r3, #1
	bne	.L21
	mov	r1, #0
	mov	r0, #1
	bl	err
.L21:
	ldr	r4, [fp, #-192]
	mov	lr, sp
	add	ip, r4, #16
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldm	r4, {r0, r1, r2, r3}
	bl	IS_ELF
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r1, .L65+20
	mov	r0, #1
	bl	errx
.L22:
	ldr	r3, [fp, #-192]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L23
	ldr	r1, .L65+24
	mov	r0, #1
	bl	errx
.L23:
	ldr	r3, [fp, #-192]
	ldrb	r3, [r3, #5]
	strb	r3, [fp, #-219]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L24
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L24
	ldr	r1, .L65+28
	mov	r0, #1
	bl	errx
.L24:
	ldr	r3, [fp, #-192]
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L25
	ldr	r1, .L65+32
	mov	r0, #1
	bl	errx
.L25:
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L26
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #18]
	mov	r0, r3
	bl	__bswap_16
	mov	r3, r0
	b	.L27
.L26:
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #18]
	mov	r0, r3
	bl	__uint16_identity
	mov	r3, r0
.L27:
	strh	r3, [fp, #-218]	@ movhi
	ldrh	r3, [fp, #-218]
	cmp	r3, #43
	beq	.L28
	ldrh	r3, [fp, #-218]
	ldr	r2, .L65+36
	cmp	r3, r2
	beq	.L28
	ldr	r1, .L65+40
	mov	r0, #1
	bl	errx
.L28:
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L29
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #54]
	mov	r0, r3
	bl	__bswap_16
	mov	r3, r0
	b	.L30
.L29:
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #54]
	mov	r0, r3
	bl	__uint16_identity
	mov	r3, r0
.L30:
	strh	r3, [fp, #-216]	@ movhi
	ldrh	r3, [fp, #-216]
	cmp	r3, #56
	beq	.L31
	ldr	r1, .L65+44
	mov	r0, #1
	bl	errx
.L31:
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L32
	ldr	r3, [fp, #-192]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__bswap_64
	mov	r2, r0
	mov	r3, r1
	b	.L33
.L32:
	ldr	r3, [fp, #-192]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__uint64_identity
	mov	r2, r0
	mov	r3, r1
.L33:
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L34
	ldr	r3, [fp, #-192]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__bswap_64
	mov	r2, r0
	mov	r3, r1
	b	.L35
.L34:
	ldr	r3, [fp, #-192]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__uint64_identity
	mov	r2, r0
	mov	r3, r1
.L35:
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L36
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #56]
	mov	r0, r3
	bl	__bswap_16
	mov	r3, r0
	b	.L37
.L36:
	ldr	r3, [fp, #-192]
	ldrh	r3, [r3, #56]
	mov	r0, r3
	bl	__uint16_identity
	mov	r3, r0
.L37:
	strh	r3, [fp, #-214]	@ movhi
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-192]
	add	r3, r2, r3
	str	r3, [fp, #-188]
	sub	r3, fp, #140
	mov	r0, r3
	mov	r3, #32
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L38
.L60:
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L39
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	ldr	r3, [r3]
	mov	r0, r3
	bl	__bswap_32
	mov	r3, r0
	b	.L40
.L39:
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	ldr	r3, [r3]
	mov	r0, r3
	bl	__uint32_identity
	mov	r3, r0
.L40:
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #1
	bne	.L63
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L42
	ldr	r1, .L65+48
	mov	r0, #1
	bl	errx
.L42:
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L43
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__bswap_64
	mov	r2, r0
	mov	r3, r1
	b	.L44
.L43:
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__uint64_identity
	mov	r2, r0
	mov	r3, r1
.L44:
	str	r2, [fp, #-164]
	str	r3, [fp, #-160]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L45
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__bswap_64
	mov	r2, r0
	mov	r3, r1
	b	.L46
.L45:
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__uint64_identity
	mov	r2, r0
	mov	r3, r1
.L46:
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L47
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__bswap_64
	mov	r2, r0
	mov	r3, r1
	b	.L48
.L47:
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-188]
	add	r3, r3, r2
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__uint64_identity
	mov	r2, r0
	mov	r3, r1
.L48:
	str	r2, [fp, #-148]
	str	r3, [fp, #-144]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L49
	ldr	r0, .L65+52
	bl	__bswap_32
	mov	r3, r0
	b	.L50
.L49:
	ldr	r0, .L65+52
	bl	__uint32_identity
	mov	r3, r0
.L50:
	str	r3, [fp, #-140]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L51
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	__bswap_32
	mov	r3, r0
	b	.L52
.L51:
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	__uint32_identity
	mov	r3, r0
.L52:
	str	r3, [fp, #-136]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L53
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-164]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__bswap_32
	mov	r3, r0
	b	.L54
.L53:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-164]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__uint32_identity
	mov	r3, r0
.L54:
	str	r3, [fp, #-128]
	ldrb	r3, [fp, #-219]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L55
	ldr	r3, [fp, #-180]
	mov	r0, r3
	bl	__bswap_32
	mov	r3, r0
	b	.L56
.L55:
	ldr	r3, [fp, #-180]
	mov	r0, r3
	bl	__uint32_identity
	mov	r3, r0
.L56:
	str	r3, [fp, #-120]
	sub	r3, fp, #140
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-212]
	bl	write
	mov	r3, r0
	cmp	r3, #32
	bne	.L57
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-192]
	add	r3, r2, r3
	ldr	r2, [fp, #-164]
	mov	r1, r3
	ldr	r0, [fp, #-212]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	beq	.L64
.L57:
	mov	r1, #0
	mov	r0, #1
	bl	err
.L63:
	nop
	b	.L59
.L64:
	nop
.L59:
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L38:
	ldrh	r3, [fp, #-214]
	ldr	r2, [fp, #-208]
	cmp	r2, r3
	blt	.L60
	mov	r3, #0
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC9
	.word	optarg
	.word	.LC0
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	36902
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	16974087
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"usage: elf2aout [-o outfile] infile\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L68+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC10
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
