	.file	"206394257.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s filename_argb8888.bmp\n"
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"Could not open the %s file for writing\n"
	.align 8
.LC3:
	.string	"raw image file successfully opened for reading"
.LC4:
	.string	"file size: %d\n"
.LC5:
	.string	"Magic: %c%c\n"
.LC6:
	.string	"File size: 0x%04x\n"
.LC7:
	.string	"pixel offset: 0x%04x\n"
.LC8:
	.string	"Header size: %d\n"
.LC9:
	.string	"Image width: %d, height: %d\n"
.LC10:
	.string	"planes: %d\n"
.LC11:
	.string	"compression: %d\n"
.LC12:
	.string	"imagesize: %d\n"
	.align 8
.LC13:
	.string	"xresolution: %d yresolution %d\n"
.LC14:
	.string	"ncolors: %d\n"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -78[rbp]
	mov	edx, 14
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	add	QWORD PTR -88[rbp], 14
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -64[rbp]
	mov	edx, 44
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	movzx	eax, WORD PTR -78[rbp]
	shr	ax, 8
	movzx	edx, ax
	movzx	eax, WORD PTR -78[rbp]
	movzx	eax, ax
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -52[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"206394257.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s filename_argb8888.bmp\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Could not open the %s file for writing\012\000"
	.align	2
.LC3:
	.ascii	"raw image file successfully opened for reading\000"
	.align	2
.LC4:
	.ascii	"file size: %d\012\000"
	.align	2
.LC5:
	.ascii	"Magic: %c%c\012\000"
	.align	2
.LC6:
	.ascii	"File size: 0x%04x\012\000"
	.align	2
.LC7:
	.ascii	"pixel offset: 0x%04x\012\000"
	.align	2
.LC8:
	.ascii	"Header size: %d\012\000"
	.align	2
.LC9:
	.ascii	"Image width: %d, height: %d\012\000"
	.align	2
.LC10:
	.ascii	"planes: %d\012\000"
	.align	2
.LC11:
	.ascii	"compression: %d\012\000"
	.align	2
.LC12:
	.ascii	"imagesize: %d\012\000"
	.align	2
.LC13:
	.ascii	"xresolution: %d yresolution %d\012\000"
	.align	2
.LC14:
	.ascii	"ncolors: %d\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L6+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L6+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+16
	bl	fprintf
.L3:
	ldr	r0, .L6+20
	bl	puts
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-84]
	bl	fseek
	ldr	r0, [fp, #-84]
	bl	ftell
	str	r0, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r0, .L6+24
	bl	printf
	ldr	r0, [fp, #-84]
	bl	rewind
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-84]
	mov	r2, #1
	ldr	r0, [fp, #-76]
	bl	fread
	ldr	r0, [fp, #-84]
	bl	fclose
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #68
	mov	r2, #14
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-72]
	add	r3, r3, #14
	str	r3, [fp, #-72]
	sub	r3, fp, #52
	mov	r2, #44
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	memmove
	ldrh	r3, [fp, #-68]
	and	r1, r3, #255
	ldrh	r3, [fp, #-68]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r0, .L6+28
	bl	printf
	ldrh	r3, [fp, #-66]
	ldrh	r2, [fp, #-64]
	lsl	r2, r2, #16
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L6+32
	bl	printf
	ldrh	r3, [fp, #-58]
	ldrh	r2, [fp, #-56]
	lsl	r2, r2, #16
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L6+36
	bl	printf
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L6+40
	bl	printf
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, .L6+44
	bl	printf
	ldrh	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L6+48
	bl	printf
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L6+52
	bl	printf
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L6+56
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L6+60
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L6+64
	bl	printf
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
