	.file	"745682.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	bin_print
	.type	bin_print, @function
bin_print:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 63
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bin_print, .-bin_print
	.globl	bwi_print
	.type	bwi_print, @function
bwi_print:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	bin_print
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L7
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bwi_print, .-bwi_print
	.section	.rodata
.LC1:
	.string	"%d "
	.text
	.globl	bmp_print
	.type	bmp_print, @function
bmp_print:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L12
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bmp_print, .-bmp_print
	.section	.rodata
.LC2:
	.string	"wb"
.LC3:
	.string	"the_stack_data/745682.c"
.LC4:
	.string	"pf"
	.text
	.globl	bmp_write
	.type	bmp_write, @function
bmp_write:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 37
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L15:
	mov	rdx, QWORD PTR -8[rbp]
	lea	rax, -36[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -8[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fwrite@PLT
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bmp_write, .-bmp_write
	.section	.rodata
.LC5:
	.string	"rb"
	.text
	.globl	bmp_read
	.type	bmp_read, @function
bmp_read:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L19
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 50
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L19:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	imul	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L21
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
.L21:
	add	DWORD PTR -20[rbp], 1
.L20:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jl	.L22
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	bmp_read, .-bmp_read
	.globl	bwi_write
	.type	bwi_write, @function
bwi_write:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -56[rbp]
	sal	eax, 6
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L25
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 67
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L25:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -52[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -28[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L26
.L29:
	mov	DWORD PTR -20[rbp], 63
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	mov	BYTE PTR -29[rbp], al
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -29[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	sub	DWORD PTR -20[rbp], 1
.L27:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L28
	add	DWORD PTR -24[rbp], 1
.L26:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	bwi_write, .-bwi_write
	.globl	bit_count
	.type	bit_count, @function
bit_count:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	and	QWORD PTR -24[rbp], rax
	add	DWORD PTR -4[rbp], 1
.L32:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L33
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	bit_count, .-bit_count
	.globl	bwi_read
	.type	bwi_read, @function
bwi_read:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L36
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 92
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L36:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	imul	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L37
.L43:
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, DWORD PTR -44[rbp]
	add	eax, 8
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L38
.L42:
	mov	DWORD PTR -36[rbp], 63
	mov	QWORD PTR -32[rbp], 0
	jmp	.L39
.L41:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -49[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -49[rbp]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	QWORD PTR -32[rbp], rax
.L40:
	sub	DWORD PTR -36[rbp], 1
.L39:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L41
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	bit_count
	mov	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -40[rbp], 1
.L38:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L42
	add	DWORD PTR -44[rbp], 1
.L37:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bwi_read, .-bwi_read
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 10
__PRETTY_FUNCTION__.3:
	.string	"bmp_write"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"bmp_read"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 10
__PRETTY_FUNCTION__.1:
	.string	"bwi_write"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 9
__PRETTY_FUNCTION__.0:
	.string	"bwi_read"
	.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	"745682.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	bin_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	bin_print, %function
bin_print:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r3, #63
	str	r3, [fp, #-24]
	b	.L2
.L3:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl ip
	orr	r4, r4, r3, lsr r0
	lsr	r5, r3, r1
	mov	r2, #1
	mov	r3, #0
	and	r6, r4, r2
	and	r7, r5, r3
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L3
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	bin_print, .-bin_print
	.align	2
	.global	bwi_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_print, %function
bwi_print:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	bin_print
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bwi_print, .-bwi_print
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	bmp_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	bmp_print, %function
bmp_print:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L15:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L14
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.size	bmp_print, .-bmp_print
	.section	.rodata
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"the_stack_data/745682.c\000"
	.align	2
.LC4:
	.ascii	"pf\000"
	.text
	.align	2
	.global	bmp_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	bmp_write, %function
bmp_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r1, .L22
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L22+4
	mov	r2, #37
	ldr	r1, .L22+8
	ldr	r0, .L22+12
	bl	__assert_fail
.L19:
	sub	r0, fp, #24
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r0, fp, #28
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.5194
	.word	.LC3
	.word	.LC4
	.size	bmp_write, .-bmp_write
	.section	.rodata
	.align	2
.LC5:
	.ascii	"rb\000"
	.text
	.align	2
	.global	bmp_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	bmp_read, %function
bmp_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, .L30
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L30+4
	mov	r2, #50
	ldr	r1, .L30+8
	ldr	r0, .L30+12
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-28]
	bl	fread
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-32]
	bl	fread
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L26
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L27:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L28
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	__PRETTY_FUNCTION__.5207
	.word	.LC3
	.word	.LC4
	.size	bmp_read, .-bmp_read
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bwi_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_write, %function
bwi_write:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #6
	str	r3, [fp, #-32]
	ldr	r1, .L39+4
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L39+8
	mov	r2, #67
	ldr	r1, .L39+12
	ldr	r0, .L39+16
	bl	__assert_fail
.L33:
	sub	r0, fp, #48
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r0, fp, #32
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L37:
	mov	r3, #63
	str	r3, [fp, #-24]
	b	.L35
.L36:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl ip
	orr	r4, r4, r3, lsr r0
	lsr	r5, r3, r1
	and	r3, r4, #255
	and	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-33]
	sub	r0, fp, #33
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L35:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L36
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L37
	ldr	r0, [fp, #-20]
	bl	fclose
	nop
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC6
	.word	.LC2
	.word	__PRETTY_FUNCTION__.5222
	.word	.LC3
	.word	.LC4
	.size	bwi_write, .-bwi_write
	.align	2
	.global	bit_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	bit_count, %function
bit_count:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	mov	r1, #0
	str	r1, [fp, #-16]
	b	.L42
.L43:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	subs	r2, r0, #1
	sbc	r3, r1, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	and	r4, r0, r2
	and	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	ldr	r1, [fp, #-16]
	add	r1, r1, #1
	str	r1, [fp, #-16]
.L42:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	orrs	r1, r0, r1
	bne	.L43
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	bit_count, .-bit_count
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bwi_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_read, %function
bwi_read:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r1, .L56+4
	ldr	r0, [fp, #-72]
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L56+8
	mov	r2, #92
	ldr	r1, .L56+12
	ldr	r0, .L56+16
	bl	__assert_fail
.L46:
	ldr	r3, [fp, #-44]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-76]
	bl	fread
	sub	r0, fp, #60
	ldr	r3, [fp, #-44]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-60]
	add	r2, r3, #63
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-80]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L47
.L53:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	add	r3, r3, #8
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L48
.L52:
	mov	r3, #63
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L49
.L51:
	sub	r0, fp, #61
	ldr	r3, [fp, #-44]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L50
	mov	r2, #1
	mov	r3, #0
	ldr	r1, [fp, #-48]
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r5, r3, r1
	orr	r5, r5, r2, lsl ip
	orr	r5, r5, r2, lsr r0
	lsl	r4, r2, r1
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	orr	r6, r2, r4
	orr	r7, r3, r5
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L50:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L49:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L51
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	bit_count
	mov	r2, r0
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r1, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L48:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L52
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L47:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L53
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r3, [fp, #-40]
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC7
	.word	.LC5
	.word	__PRETTY_FUNCTION__.5250
	.word	.LC3
	.word	.LC4
	.size	bwi_read, .-bwi_read
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5194, %object
	.size	__PRETTY_FUNCTION__.5194, 10
__PRETTY_FUNCTION__.5194:
	.ascii	"bmp_write\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5207, %object
	.size	__PRETTY_FUNCTION__.5207, 9
__PRETTY_FUNCTION__.5207:
	.ascii	"bmp_read\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5222, %object
	.size	__PRETTY_FUNCTION__.5222, 10
__PRETTY_FUNCTION__.5222:
	.ascii	"bwi_write\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5250, %object
	.size	__PRETTY_FUNCTION__.5250, 9
__PRETTY_FUNCTION__.5250:
	.ascii	"bwi_read\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
