	.file	"182406.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"wb"
	.text
	.globl	bmp_write
	.type	bmp_write, @function
bmp_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	eax, ecx
	mov	WORD PTR -100[rbp], dx
	mov	WORD PTR -104[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -22[rbp], 66
	mov	BYTE PTR -21[rbp], 77
	movzx	edx, WORD PTR -100[rbp]
	movzx	eax, WORD PTR -104[rbp]
	imul	eax, edx
	sal	eax, 2
	add	eax, 54
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -12[rbp], 54
	mov	DWORD PTR -64[rbp], 40
	movzx	eax, WORD PTR -100[rbp]
	mov	DWORD PTR -60[rbp], eax
	movzx	eax, WORD PTR -104[rbp]
	neg	eax
	mov	DWORD PTR -56[rbp], eax
	mov	WORD PTR -52[rbp], 1
	mov	WORD PTR -50[rbp], 32
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 13660
	mov	DWORD PTR -36[rbp], 13660
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -22[rbp]
	mov	rcx, rdx
	mov	edx, 14
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	mov	edx, 40
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	movzx	edx, WORD PTR -100[rbp]
	movzx	eax, WORD PTR -104[rbp]
	imul	eax, edx
	movsx	rdx, eax
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bmp_write, .-bmp_write
	.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	"182406.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bmp_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	bmp_write, %function
bmp_write:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-78]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-80]	@ movhi
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #66
	strb	r3, [fp, #-24]
	mov	r3, #77
	strb	r3, [fp, #-23]
	ldrh	r3, [fp, #-78]
	ldrh	r2, [fp, #-80]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r3, #54
	lsl	r3, r2, #16
	lsr	r3, r3, #16
	mov	r1, #0
	orr	r3, r1, r3
	strh	r3, [fp, #-22]	@ movhi
	lsr	r3, r2, #16
	mov	r2, #0
	orr	r3, r2, r3
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	orr	r3, r3, #54
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #40
	str	r3, [fp, #-64]
	ldrh	r3, [fp, #-78]
	str	r3, [fp, #-60]
	ldrh	r3, [fp, #-80]
	rsb	r3, r3, #0
	str	r3, [fp, #-56]
	mov	r3, #1
	strh	r3, [fp, #-52]	@ movhi
	mov	r3, #32
	strh	r3, [fp, #-50]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, .L3+4
	str	r3, [fp, #-40]
	ldr	r3, .L3+4
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r1, .L3+8
	ldr	r0, [fp, #-72]
	bl	fopen
	str	r0, [fp, #-68]
	sub	r0, fp, #24
	ldr	r3, [fp, #-68]
	mov	r2, #14
	mov	r1, #1
	bl	fwrite
	sub	r0, fp, #64
	ldr	r3, [fp, #-68]
	mov	r2, #40
	mov	r1, #1
	bl	fwrite
	ldrh	r3, [fp, #-78]
	ldrh	r2, [fp, #-80]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-68]
	mov	r1, #4
	ldr	r0, [fp, #-76]
	bl	fwrite
	ldr	r0, [fp, #-68]
	bl	fclose
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	13660
	.word	.LC0
	.size	bmp_write, .-bmp_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
