	.file	"extr_pngrtran.c_png_init_palette_transformations.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	png_init_palette_transformations, @function
png_init_palette_transformations:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR 8[rdi]
	sub	edx, 1
	xor	esi, esi
	lea	rcx, 4[rax+rdx*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR [rax]
	cmp	edx, 255
	je	.L3
	test	edx, edx
	jne	.L1
	mov	esi, 1
.L3:
	add	rax, 4
	cmp	rcx, rax
	jne	.L5
	mov	eax, DWORD PTR PNG_ENCODE_ALPHA[rip]
	mov	edx, DWORD PTR PNG_FLAG_OPTIMIZE_ALPHA[rip]
	not	eax
	and	eax, DWORD PTR 16[rdi]
	not	edx
	and	DWORD PTR 56[rdi], edx
	mov	DWORD PTR 16[rdi], eax
	test	esi, esi
	je	.L7
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR PNG_FLAG_OPTIMIZE_ALPHA[rip]
	mov	eax, DWORD PTR PNG_ENCODE_ALPHA[rip]
	not	edx
	and	DWORD PTR 56[rdi], edx
	not	eax
	and	eax, DWORD PTR 16[rdi]
.L7:
	mov	edx, DWORD PTR PNG_COMPOSE[rip]
	or	edx, DWORD PTR PNG_BACKGROUND_EXPAND[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR 16[rdi], eax
	ret
	.cfi_endproc
.LFE0:
	.size	png_init_palette_transformations, .-png_init_palette_transformations
	.comm	PNG_INVERT_ALPHA,4,4
	.comm	PNG_FLAG_OPTIMIZE_ALPHA,4,4
	.comm	PNG_EXPAND_tRNS,4,4
	.comm	PNG_EXPAND,4,4
	.comm	PNG_ENCODE_ALPHA,4,4
	.comm	PNG_COMPOSE,4,4
	.comm	PNG_BACKGROUND_EXPAND,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_pngrtran.c_png_init_palette_transformations.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	png_init_palette_transformations, %function
png_init_palette_transformations:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	str	lr, [sp, #-4]!
	cmp	ip, #0
	ble	.L2
	mov	r3, #0
	mov	lr, r3
	ldr	r1, [r0, #4]
	sub	r1, r1, #4
.L5:
	ldr	r2, [r1, #4]!
	add	r3, r3, #1
	cmp	r2, #255
	beq	.L3
	cmp	r2, #0
	ldrne	pc, [sp], #4
	mov	lr, #1
.L3:
	cmp	ip, r3
	bne	.L5
	ldr	r3, .L20
	ldr	r2, .L20+4
	ldr	ip, [r3]
	ldr	r1, [r2]
	ldr	r3, [r0, #8]
	ldr	r2, [r0, #32]
	bic	r3, r3, ip
	bic	r2, r2, r1
	cmp	lr, #0
	str	r3, [r0, #8]
	str	r2, [r0, #32]
	ldrne	pc, [sp], #4
	b	.L7
.L2:
	ldr	r2, .L20+4
	ldr	r3, .L20
	ldr	ip, [r2]
	ldr	r2, [r0, #32]
	ldr	r1, [r3]
	ldr	r3, [r0, #8]
	bic	r2, r2, ip
	str	r2, [r0, #32]
	bic	r3, r3, r1
.L7:
	ldr	r2, .L20+8
	ldr	r1, .L20+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r0, #8]
	ldr	pc, [sp], #4
.L21:
	.align	2
.L20:
	.word	PNG_ENCODE_ALPHA
	.word	PNG_FLAG_OPTIMIZE_ALPHA
	.word	PNG_COMPOSE
	.word	PNG_BACKGROUND_EXPAND
	.size	png_init_palette_transformations, .-png_init_palette_transformations
	.comm	PNG_INVERT_ALPHA,4,4
	.comm	PNG_FLAG_OPTIMIZE_ALPHA,4,4
	.comm	PNG_EXPAND_tRNS,4,4
	.comm	PNG_EXPAND,4,4
	.comm	PNG_ENCODE_ALPHA,4,4
	.comm	PNG_COMPOSE,4,4
	.comm	PNG_BACKGROUND_EXPAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
