	.file	"extr_colours_external.c_COLOURS_EXTERNAL_Read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
	.text
	.p2align 4
	.globl	COLOURS_EXTERNAL_Read
	.type	COLOURS_EXTERNAL_Read, @function
COLOURS_EXTERNAL_Read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rdi]
	call	fopen@PLT
	test	rax, rax
	je	.L8
	mov	rbx, QWORD PTR 8[r12]
	mov	rbp, rax
	lea	r13, 768[rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	mov	BYTE PTR -1[rbx], al
	cmp	r13, rbx
	je	.L10
.L5:
	mov	rdi, rbp
	call	fgetc@PLT
	cmp	DWORD PTR EOF[rip], eax
	jne	.L4
	mov	rdi, rbp
	call	fclose@PLT
.L8:
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR [r12], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	fclose@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR [r12], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	COLOURS_EXTERNAL_Read, .-COLOURS_EXTERNAL_Read
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_colours_external.c_COLOURS_EXTERNAL_Read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	COLOURS_EXTERNAL_Read
	.syntax unified
	.arm
	.fpu softvfp
	.type	COLOURS_EXTERNAL_Read, %function
COLOURS_EXTERNAL_Read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L11
	mov	r7, r0
	ldr	r0, [r0, #8]
	bl	fopen
	subs	r5, r0, #0
	beq	.L8
	ldr	r4, [r7, #4]
	ldr	r6, .L11+4
	add	r8, r4, #768
	b	.L5
.L4:
	strb	r0, [r4], #1
	cmp	r8, r4
	beq	.L10
.L5:
	mov	r0, r5
	bl	fgetc
	ldr	r3, [r6]
	cmp	r3, r0
	bne	.L4
	mov	r0, r5
	bl	fclose
.L8:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r5
	bl	fclose
	ldr	r3, .L11+12
	ldr	r0, [r3]
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	EOF
	.word	FALSE
	.word	TRUE
	.size	COLOURS_EXTERNAL_Read, .-COLOURS_EXTERNAL_Read
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
