	.file	"extr_icoenc.c_ico_check_attributes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Wrong endianness for bmp pixel format\n"
	.align 8
.LC2:
	.string	"BMP must be 1bit, 4bit, 8bit, 16bit, 24bit, or 32bit\n"
	.align 8
.LC3:
	.string	"PNG in ico requires pixel format to be rgba\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Unsupported codec %s\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Unsupported dimensions %dx%d (dimensions cannot exceed 256x256)\n"
	.text
	.p2align 4
	.type	ico_check_attributes, @function
ico_check_attributes:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, QWORD PTR [rsi]
	cmp	rdi, QWORD PTR AV_CODEC_ID_BMP[rip]
	je	.L14
	cmp	rdi, QWORD PTR AV_CODEC_ID_PNG[rip]
	jne	.L5
	mov	rax, QWORD PTR AV_PIX_FMT_RGBA[rip]
	lea	rdx, .LC3[rip]
	cmp	QWORD PTR 8[rsi], rax
	jne	.L12
.L4:
	mov	ecx, DWORD PTR 16[rsi]
	mov	r8d, DWORD PTR 20[rsi]
	cmp	ecx, 256
	jg	.L7
	cmp	r8d, 256
	jg	.L7
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	avcodec_descriptor_get@PLT
	lea	rcx, .LC0[rip]
	test	rax, rax
	je	.L6
	mov	rcx, QWORD PTR [rax]
.L6:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	lea	rdx, .LC4[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsi]
	cmp	rax, QWORD PTR AV_PIX_FMT_PAL8[rip]
	je	.L15
	cmp	rax, QWORD PTR AV_PIX_FMT_RGB555LE[rip]
	je	.L4
	cmp	rax, QWORD PTR AV_PIX_FMT_BGR24[rip]
	je	.L4
	cmp	rax, QWORD PTR AV_PIX_FMT_BGRA[rip]
	je	.L4
	lea	rdx, .LC2[rip]
.L12:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	lea	rdx, .LC5[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR AV_PIX_FMT_BGRA[rip]
	cmp	QWORD PTR AV_PIX_FMT_RGB32[rip], rax
	lea	rdx, .LC1[rip]
	je	.L4
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ico_check_attributes, .-ico_check_attributes
	.comm	EINVAL,4,4
	.comm	AV_PIX_FMT_RGBA,8,8
	.comm	AV_PIX_FMT_RGB555LE,8,8
	.comm	AV_PIX_FMT_RGB32,8,8
	.comm	AV_PIX_FMT_PAL8,8,8
	.comm	AV_PIX_FMT_BGRA,8,8
	.comm	AV_PIX_FMT_BGR24,8,8
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_PNG,8,8
	.comm	AV_CODEC_ID_BMP,8,8
	.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_icoenc.c_ico_check_attributes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Wrong endianness for bmp pixel format\012\000"
	.align	2
.LC2:
	.ascii	"BMP must be 1bit, 4bit, 8bit, 16bit, 24bit, or 32bi"
	.ascii	"t\012\000"
	.align	2
.LC3:
	.ascii	"PNG in ico requires pixel format to be rgba\012\000"
	.align	2
.LC4:
	.ascii	"Unsupported codec %s\012\000"
	.align	2
.LC5:
	.ascii	"Unsupported dimensions %dx%d (dimensions cannot exc"
	.ascii	"eed 256x256)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ico_check_attributes, %function
ico_check_attributes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r2, .L16
	ldr	r3, [r1]
	ldr	r2, [r2]
	mov	r4, r0
	cmp	r3, r2
	sub	sp, sp, #8
	beq	.L13
	ldr	r2, .L16+4
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L5
	ldr	r3, .L16+8
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L14
.L4:
	ldr	r3, [r1, #8]
	ldr	r2, [r1, #12]
	cmp	r3, #256
	bgt	.L7
	cmp	r2, #256
	bgt	.L7
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L5:
	mov	r0, r3
	bl	avcodec_descriptor_get
	ldr	r3, .L16+12
	cmp	r0, #0
	ldr	r1, [r3]
	ldr	r2, .L16+16
	ldrne	r3, [r0]
	ldreq	r3, .L16+20
	mov	r0, r4
	bl	av_log
.L11:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	AVERROR
.L13:
	ldr	r2, .L16+28
	ldr	r3, [r1, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L15
	ldr	r2, .L16+32
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L16+36
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L16+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L16+12
	ldr	r2, .L16+44
	ldr	r1, [r3]
	bl	av_log
	b	.L11
.L7:
	ldr	r1, .L16+12
	str	r2, [sp]
	mov	r0, r4
	ldr	r1, [r1]
	ldr	r2, .L16+48
	bl	av_log
	b	.L11
.L14:
	ldr	r3, .L16+12
	ldr	r2, .L16+52
	ldr	r1, [r3]
	bl	av_log
	b	.L11
.L15:
	ldr	r2, .L16+56
	ldr	r3, .L16+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L16+12
	ldr	r2, .L16+60
	ldr	r1, [r3]
	bl	av_log
	b	.L11
.L17:
	.align	2
.L16:
	.word	AV_CODEC_ID_BMP
	.word	AV_CODEC_ID_PNG
	.word	AV_PIX_FMT_RGBA
	.word	AV_LOG_ERROR
	.word	.LC4
	.word	.LC0
	.word	EINVAL
	.word	AV_PIX_FMT_PAL8
	.word	AV_PIX_FMT_RGB555LE
	.word	AV_PIX_FMT_BGR24
	.word	AV_PIX_FMT_BGRA
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.word	AV_PIX_FMT_RGB32
	.word	.LC1
	.size	ico_check_attributes, .-ico_check_attributes
	.comm	EINVAL,4,4
	.comm	AV_PIX_FMT_RGBA,4,4
	.comm	AV_PIX_FMT_RGB555LE,4,4
	.comm	AV_PIX_FMT_RGB32,4,4
	.comm	AV_PIX_FMT_PAL8,4,4
	.comm	AV_PIX_FMT_BGRA,4,4
	.comm	AV_PIX_FMT_BGR24,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_PNG,4,4
	.comm	AV_CODEC_ID_BMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
