	.file	"extr_graphics.c_convert_image_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_image_type, @function
convert_image_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	cmp	edi, 129
	je	.L2
	cmp	edi, 130
	je	.L3
	cmp	edi, 128
	je	.L15
	xor	edi, edi
	call	vcos_assert@PLT
	mov	DWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR VCOS_EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR VG_sRGBX_8888[rip]
	mov	DWORD PTR [rsi], eax
	mov	eax, 3
.L6:
	test	rdx, rdx
	je	.L8
	mov	DWORD PTR [rdx], eax
.L8:
	mov	eax, DWORD PTR VCOS_SUCCESS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR VG_sARGB_8888[rip]
	mov	DWORD PTR [rsi], eax
	mov	eax, 4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR VG_sRGB_565[rip]
	mov	DWORD PTR [rsi], eax
	mov	eax, 2
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	convert_image_type, .-convert_image_type
	.comm	VG_sRGB_565,4,4
	.comm	VG_sRGBX_8888,4,4
	.comm	VG_sARGB_8888,4,4
	.comm	VCOS_SUCCESS,4,4
	.comm	VCOS_EINVAL,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_graphics.c_convert_image_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_image_type, %function
convert_image_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #129
	push	{r4, lr}
	mov	r4, r1
	beq	.L2
	cmp	r0, #130
	beq	.L3
	cmp	r0, #128
	beq	.L15
	mov	r0, #0
	bl	vcos_assert
	mov	r2, #0
	ldr	r3, .L16
	str	r2, [r4]
	ldr	r0, [r3]
	pop	{r4, pc}
.L2:
	mov	r3, #3
	ldr	r1, .L16+4
	ldr	r1, [r1]
	str	r1, [r4]
.L6:
	cmp	r2, #0
	strne	r3, [r2]
	ldr	r3, .L16+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L15:
	ldr	r1, .L16+12
	mov	r3, #4
	ldr	r1, [r1]
	str	r1, [r4]
	b	.L6
.L3:
	ldr	r1, .L16+16
	mov	r3, #2
	ldr	r1, [r1]
	str	r1, [r4]
	b	.L6
.L17:
	.align	2
.L16:
	.word	VCOS_EINVAL
	.word	VG_sRGBX_8888
	.word	VCOS_SUCCESS
	.word	VG_sARGB_8888
	.word	VG_sRGB_565
	.size	convert_image_type, .-convert_image_type
	.comm	VG_sRGB_565,4,4
	.comm	VG_sRGBX_8888,4,4
	.comm	VG_sARGB_8888,4,4
	.comm	VCOS_SUCCESS,4,4
	.comm	VCOS_EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
