	.file	"26055.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open %s"
.LC2:
	.string	"%*[^DFHVW*]"
.LC3:
	.string	"epth=%d"
.LC4:
	.string	"ormat_version=%d"
.LC5:
	.string	"eight=%d"
.LC6:
	.string	"alid_bits_per_item=%d"
.LC7:
	.string	"idth=%d"
.LC8:
	.string	"%c"
.LC9:
	.string	"header format error in %s"
.LC10:
	.string	" 0x%x,"
.LC11:
	.string	"data format error in %s"
	.text
	.globl	loadlogo
	.type	loadlogo, @function
loadlogo:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	QWORD PTR -72[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -40[rbp], 64
	mov	DWORD PTR -36[rbp], 64
	mov	DWORD PTR -32[rbp], 16
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	_error@PLT
	jmp	.L26
.L2:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	je	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 42
	cmp	eax, 45
	ja	.L6
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L8[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L13-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L6-.L8
	.long	.L10-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L12:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	jne	.L29
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	je	.L29
	jmp	.L18
.L11:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	jne	.L30
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	je	.L30
	jmp	.L18
.L10:
	lea	rdx, -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L6
.L9:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L6
.L7:
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L6
.L13:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	movzx	eax, BYTE PTR -28[rbp]
	cmp	al, 47
	je	.L31
	movzx	eax, BYTE PTR -28[rbp]
	movsx	eax, al
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L6
.L29:
	nop
	jmp	.L6
.L30:
	nop
.L6:
	cmp	DWORD PTR -24[rbp], -1
	jne	.L2
	jmp	.L5
.L28:
	nop
	jmp	.L5
.L31:
	nop
.L5:
	cmp	DWORD PTR -24[rbp], -1
	je	.L32
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jne	.L32
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jne	.L32
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 16
	je	.L19
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 32
	je	.L19
.L32:
	nop
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 0
	mov	eax, 0
	call	_error@PLT
	jmp	.L26
.L19:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	mov	ecx, DWORD PTR -32[rbp]
	cdq
	idiv	ecx
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L20
.L24:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L21
	cmp	DWORD PTR -24[rbp], -1
	je	.L21
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 16
	je	.L22
	cmp	eax, 32
	jne	.L23
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 24
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L22:
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	nop
.L23:
	sub	DWORD PTR -20[rbp], 1
.L20:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L24
.L21:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -20[rbp], 0
	jle	.L25
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	lea	rsi, .LC11[rip]
	mov	edi, 0
	mov	eax, 0
	call	_error@PLT
	jmp	.L26
.L25:
	mov	eax, 0
.L26:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	loadlogo, .-loadlogo
	.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	"26055.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open %s\000"
	.align	2
.LC2:
	.ascii	"%*[^DFHVW*]\000"
	.align	2
.LC3:
	.ascii	"epth=%d\000"
	.align	2
.LC4:
	.ascii	"ormat_version=%d\000"
	.align	2
.LC5:
	.ascii	"eight=%d\000"
	.align	2
.LC6:
	.ascii	"alid_bits_per_item=%d\000"
	.align	2
.LC7:
	.ascii	"idth=%d\000"
	.align	2
.LC8:
	.ascii	"%c\000"
	.align	2
.LC9:
	.ascii	"header format error in %s\000"
	.global	__aeabi_idiv
	.align	2
.LC10:
	.ascii	" 0x%x,\000"
	.align	2
.LC11:
	.ascii	"data format error in %s\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	loadlogo
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadlogo, %function
loadlogo:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #64
	str	r3, [fp, #-36]
	mov	r3, #64
	str	r3, [fp, #-32]
	mov	r3, #16
	str	r3, [fp, #-28]
	ldr	r1, .L33+4
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r2, [fp, #-40]
	ldr	r1, .L33+8
	mov	r0, #1
	bl	_error
	mov	r3, r0
	b	.L26
.L2:
	ldr	r1, .L33+12
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L28
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #42
	cmp	r3, #45
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L13
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L12
	.word	.L6
	.word	.L11
	.word	.L6
	.word	.L10
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L9
	.word	.L7
.L12:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L33+16
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L29
	b	.L18
.L11:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L33+20
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L30
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L30
	b	.L18
.L10:
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L33+24
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	b	.L6
.L9:
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L33+28
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	b	.L6
.L7:
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L33+32
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	b	.L6
.L13:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L33+36
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L31
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	ungetc
	b	.L6
.L29:
	nop
	b	.L6
.L30:
	nop
.L6:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L2
	b	.L5
.L28:
	nop
	b	.L5
.L31:
	nop
.L5:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L32
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-28]
	cmp	r3, #16
	beq	.L19
	ldr	r3, [fp, #-28]
	cmp	r3, #32
	beq	.L19
.L32:
	nop
.L18:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r2, [fp, #-40]
	ldr	r1, .L33+40
	mov	r0, #0
	bl	_error
	mov	r3, r0
	b	.L26
.L19:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L20
.L24:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L33+44
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-28]
	cmp	r3, #16
	beq	.L22
	cmp	r3, #32
	bne	.L23
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #24
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	str	r1, [fp, #-52]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	str	r1, [fp, #-52]
	and	r2, r2, #255
	strb	r2, [r3]
.L22:
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	str	r1, [fp, #-52]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	str	r1, [fp, #-52]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
.L23:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L24
.L21:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L25
	ldr	r2, [fp, #-40]
	ldr	r1, .L33+48
	mov	r0, #0
	bl	_error
	mov	r3, r0
	b	.L26
.L25:
	mov	r3, #0
.L26:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	loadlogo, .-loadlogo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
