	.file	"extr_surface.c_convert_argb_pixels.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	convert_argb_pixels
	.type	convert_argb_pixels, @function
convert_argb_pixels:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, esi
	mov	esi, 32
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 248
	.cfi_def_cfa_offset 304
	mov	r12, QWORD PTR 320[rsp]
	mov	rax, QWORD PTR 344[rsp]
	mov	QWORD PTR 40[rsp], rcx
	mov	QWORD PTR 104[rsp], r9
	mov	r14, QWORD PTR 328[rsp]
	mov	QWORD PTR 144[rsp], rdi
	mov	QWORD PTR 48[rsp], r12
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 232[rsp], rax
	xor	eax, eax
	lea	rax, 192[rsp]
	mov	rdi, rax
	mov	QWORD PTR 96[rsp], rax
	call	ZeroMemory@PLT
	lea	rax, 168[rsp]
	mov	rsi, r14
	mov	rdi, r15
	mov	rdx, rax
	mov	QWORD PTR 120[rsp], rax
	call	init_argb_conversion_info@PLT
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR 0[r13]
	call	min@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 4[rsp], eax
	call	min@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 8[r13]
	mov	DWORD PTR 60[rsp], eax
	call	min@PLT
	cmp	QWORD PTR 336[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 116[rsp], eax
	jne	.L34
.L2:
	mov	ecx, DWORD PTR 116[rsp]
	test	ecx, ecx
	jle	.L3
	movsx	rax, ebx
	mov	DWORD PTR 112[rsp], 0
	lea	r13, 160[rsp]
	mov	QWORD PTR 136[rsp], rax
	movsx	rax, DWORD PTR 312[rsp]
	mov	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 128[rsp], rax
	movsx	rax, DWORD PTR 304[rsp]
	mov	QWORD PTR 88[rsp], 0
	sal	rax, 2
	mov	QWORD PTR 72[rsp], rax
	lea	rax, 0[0+rbp*4]
	mov	QWORD PTR 64[rsp], rax
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 60[rsp]
	test	edx, edx
	jle	.L4
	mov	rcx, QWORD PTR 80[rsp]
	mov	rax, QWORD PTR 104[rsp]
	mov	DWORD PTR 56[rsp], 0
	lea	rax, [rax+rcx*4]
	mov	rcx, QWORD PTR 88[rsp]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 144[rsp]
	lea	rax, [rax+rcx*4]
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 4[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	mov	rbp, QWORD PTR 32[rsp]
	test	eax, eax
	jle	.L5
	xor	r12d, r12d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, r15
	call	format_to_vec4@PLT
	mov	rax, QWORD PTR 24[r15]
	test	rax, rax
	je	.L11
	mov	rdx, QWORD PTR 16[rsp]
	lea	rsi, 164[rsp]
	mov	rdi, r13
	call	rax
.L12:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L13
	lea	rdx, 184[rsp]
	lea	rsi, 164[rsp]
	call	format_from_vec4@PLT
	mov	rax, QWORD PTR 336[rsp]
	cmp	QWORD PTR 184[rsp], rax
	jne	.L13
	mov	DWORD PTR 164[rsp], 0x00000000
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 16[r14]
	test	rax, rax
	je	.L15
	lea	rdi, 164[rsp]
	mov	rsi, r13
	call	rax
.L16:
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r14
	call	format_from_vec4@PLT
.L10:
	movsx	rax, DWORD PTR 8[r15]
	add	r12d, 1
	lea	rbx, [rbx+rax*4]
	movsx	rax, DWORD PTR 8[r14]
	lea	rbp, 0[rbp+rax*4]
	cmp	DWORD PTR 4[rsp], r12d
	je	.L5
.L17:
	cmp	QWORD PTR 24[r15], 0
	jne	.L6
	cmp	QWORD PTR 16[r14], 0
	jne	.L6
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR [r15], rax
	jne	.L6
	cmp	DWORD PTR 8[r15], 4
	jg	.L6
	cmp	DWORD PTR 8[r14], 4
	jg	.L6
	mov	rdx, QWORD PTR 96[rsp]
	mov	rdi, QWORD PTR 120[rsp]
	mov	rsi, rbx
	call	get_relevant_argb_components@PLT
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdi, QWORD PTR 120[rsp]
	call	make_argb_color@PLT
	cmp	QWORD PTR 336[rsp], 0
	mov	QWORD PTR 184[rsp], rax
	jne	.L35
.L8:
	mov	edx, DWORD PTR 8[r14]
	lea	rsi, 184[rsp]
	mov	rdi, rbp
	call	memcpy@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movss	xmm0, DWORD PTR 160[rsp]
	movss	DWORD PTR 164[rsp], xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movss	xmm0, DWORD PTR 164[rsp]
	movss	DWORD PTR 160[rsp], xmm0
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR [rcx]
	cmp	eax, edx
	jl	.L36
.L18:
	mov	rbx, QWORD PTR 72[rsp]
	add	DWORD PTR 56[rsp], 1
	add	QWORD PTR 32[rsp], rbx
	mov	eax, DWORD PTR 56[rsp]
	mov	rbx, QWORD PTR 64[rsp]
	add	QWORD PTR 24[rsp], rbx
	cmp	DWORD PTR 60[rsp], eax
	jne	.L19
.L4:
	mov	rax, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, DWORD PTR 4[rcx]
	cmp	eax, edx
	jl	.L37
.L20:
	mov	rbx, QWORD PTR 136[rsp]
	add	DWORD PTR 112[rsp], 1
	add	QWORD PTR 88[rsp], rbx
	mov	eax, DWORD PTR 112[rsp]
	mov	rbx, QWORD PTR 128[rsp]
	add	QWORD PTR 80[rsp], rbx
	cmp	DWORD PTR 116[rsp], eax
	jne	.L21
.L3:
	mov	rax, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, DWORD PTR 8[rcx]
	cmp	eax, edx
	jl	.L38
.L1:
	mov	rax, QWORD PTR 232[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	add	rsp, 248
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	sub	edx, eax
	imul	edx, DWORD PTR 8[r14]
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	jmp	.L18
.L37:
	sub	edx, eax
	imul	eax, DWORD PTR 304[rsp]
	mov	rcx, QWORD PTR 104[rsp]
	xor	esi, esi
	imul	edx, DWORD PTR 304[rsp]
	cdqe
	lea	rdi, [rcx+rax*4]
	call	memset@PLT
	jmp	.L20
.L35:
	mov	rdx, QWORD PTR 96[rsp]
	lea	rdi, 176[rsp]
	mov	rsi, rbx
	mov	QWORD PTR 152[rsp], rdi
	call	get_relevant_argb_components@PLT
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdi, QWORD PTR 152[rsp]
	call	make_argb_color@PLT
	cmp	QWORD PTR 336[rsp], rax
	jne	.L8
	mov	rax, QWORD PTR 168[rsp]
	mov	rax, QWORD PTR [rax]
	not	rax
	and	QWORD PTR 184[rsp], rax
	jmp	.L8
.L38:
	sub	edx, eax
	imul	eax, DWORD PTR 312[rsp]
	mov	rcx, QWORD PTR 104[rsp]
	xor	esi, esi
	imul	edx, DWORD PTR 312[rsp]
	cdqe
	lea	rdi, [rcx+rax*4]
	call	memset@PLT
	jmp	.L1
.L34:
	mov	edi, DWORD PTR D3DFMT_A8R8G8B8[rip]
	call	get_format_info@PLT
	lea	rdx, 176[rsp]
	mov	rdi, r15
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	init_argb_conversion_info@PLT
	jmp	.L2
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	convert_argb_pixels, .-convert_argb_pixels
	.comm	D3DFMT_A8R8G8B8,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_surface.c_convert_argb_pixels.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert_argb_pixels
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_argb_pixels, %function
convert_argb_pixels:
	@ args = 32, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	sub	sp, sp, #124
	ldr	r7, [sp, #176]
	str	r3, [sp, #20]
	ldr	r3, .L40
	str	ip, [sp, #68]
	str	r2, [sp, #64]
	str	r7, [sp, #24]
	ldr	r3, [r3]
	str	r3, [sp, #116]
	mov	r3,#0
	ldr	r3, [sp, #164]
	ldr	r9, [sp, #184]
	str	r3, [sp, #52]
	ldr	r3, [sp, #168]
	ldr	r4, [sp, #160]
	ldr	r5, [sp, #180]
	str	r3, [sp, #72]
	ldr	r3, [sp, #172]
	mov	r6, r1
	add	r0, sp, #100
	mov	r1, #16
	str	r3, [sp, #60]
	str	r9, [sp, #4]
	ldr	fp, [sp, #188]
	bl	ZeroMemory
	add	r2, sp, #80
	mov	r1, r5
	mov	r0, r4
	bl	init_argb_conversion_info
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	min
	ldr	r1, [r7, #4]
	mov	r10, r0
	ldr	r0, [r8, #4]
	bl	min
	mov	r3, r0
	ldr	r1, [r7, #8]
	ldr	r0, [r8, #8]
	str	r3, [sp, #28]
	bl	min
	cmp	r9, #0
	ldreq	r9, [sp, #4]
	str	r0, [sp, #56]
	bne	.L35
.L2:
	ldr	r3, [sp, #56]
	cmp	r3, #0
	ble	.L3
	mov	r3, #0
	str	r3, [sp, #40]
	str	r3, [sp, #44]
	str	r3, [sp, #48]
	lsl	r3, r6, #2
	str	r3, [sp, #32]
	ldr	r3, [sp, #72]
	lsl	r3, r3, #2
	str	r3, [sp, #36]
.L21:
	ldr	r3, [sp, #28]
	cmp	r3, #0
	ble	.L4
	mov	r3, #0
	ldr	r2, [sp, #40]
	str	r3, [sp, #16]
	ldr	r3, [sp, #52]
	add	r3, r3, r2, lsl #2
	str	r3, [sp, #12]
	ldr	r2, [sp, #44]
	ldr	r3, [sp, #68]
	add	r3, r3, r2, lsl #2
	str	r3, [sp, #8]
.L19:
	cmp	r10, #0
	ldr	r7, [sp, #8]
	ldr	r6, [sp, #12]
	ble	.L5
	mov	r8, #0
	b	.L17
.L6:
	mov	r1, r7
	mov	r0, r4
	add	r2, sp, #88
	bl	format_to_vec4
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L11
	mov	r2, fp
	add	r1, sp, #92
	add	r0, sp, #88
	blx	r3
.L12:
	cmp	r9, #0
	beq	.L13
	add	r2, sp, #96
	mov	r0, r9
	add	r1, sp, #92
	bl	format_from_vec4
	ldr	r3, [sp, #96]
	ldr	r2, [sp, #4]
	cmp	r3, r2
	moveq	r3, #0
	streq	r3, [sp, #92]	@ float
.L13:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L15
	add	r1, sp, #88
	add	r0, sp, #92
	blx	r3
.L16:
	mov	r2, r6
	mov	r0, r5
	add	r1, sp, #88
	bl	format_from_vec4
.L10:
	ldr	r2, [r4, #4]
	ldr	r3, [r5, #4]
	add	r8, r8, #1
	cmp	r10, r8
	add	r7, r7, r2, lsl #2
	add	r6, r6, r3, lsl #2
	beq	.L5
.L17:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L6
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r4, #4]
	cmp	r3, #4
	bgt	.L6
	ldr	r3, [r5, #4]
	cmp	r3, #4
	bgt	.L6
	add	r2, sp, #100
	mov	r1, r7
	add	r0, sp, #80
	bl	get_relevant_argb_components
	add	r1, sp, #100
	add	r0, sp, #80
	bl	make_argb_color
	ldr	r2, [sp, #4]
	str	r0, [sp, #96]
	cmp	r2, #0
	bne	.L36
.L8:
	mov	r0, r6
	ldr	r2, [r5, #4]
	add	r1, sp, #96
	bl	memcpy
	b	.L10
.L11:
	ldr	r3, [sp, #88]	@ float
	str	r3, [sp, #92]	@ float
	b	.L12
.L15:
	ldr	r3, [sp, #92]	@ float
	str	r3, [sp, #88]	@ float
	b	.L16
.L5:
	ldr	r3, [sp, #20]
	ldr	r1, [r3]
	ldr	r3, [sp, #24]
	ldr	r3, [r3]
	cmp	r1, r3
	blt	.L37
.L18:
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #28]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #16]
	ldr	r2, [sp, #36]
	ldr	r3, [sp, #12]
	add	r3, r3, r2
	str	r3, [sp, #12]
	ldr	r2, [sp, #32]
	ldr	r3, [sp, #8]
	add	r3, r3, r2
	str	r3, [sp, #8]
	bne	.L19
.L4:
	ldr	r3, [sp, #20]
	ldr	r2, [r3, #4]
	ldr	r3, [sp, #24]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L38
.L20:
	ldr	r3, [sp, #48]
	ldr	r2, [sp, #56]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #48]
	ldr	r2, [sp, #64]
	ldr	r3, [sp, #44]
	add	r3, r3, r2
	str	r3, [sp, #44]
	ldr	r2, [sp, #60]
	ldr	r3, [sp, #40]
	add	r3, r3, r2
	str	r3, [sp, #40]
	bne	.L21
.L3:
	ldr	r3, [sp, #20]
	ldr	r2, [r3, #8]
	ldr	r3, [sp, #24]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	blt	.L39
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	ldr	r2, [r5, #4]
	sub	r3, r3, r1
	mov	r0, r6
	mov	r1, #0
	mul	r2, r3, r2
	bl	memset
	b	.L18
.L38:
	ldr	r1, [sp, #72]
	mov	r0, r1
	mul	r0, r2, r0
	sub	r2, r3, r2
	mul	r1, r2, r1
	ldr	r3, [sp, #52]
	mov	r2, r1
	add	r0, r3, r0, lsl #2
	mov	r1, #0
	bl	memset
	b	.L20
.L36:
	add	r2, sp, #100
	mov	r1, r7
	str	r0, [sp, #76]
	add	r0, sp, #84
	bl	get_relevant_argb_components
	add	r1, sp, #100
	add	r0, sp, #84
	bl	make_argb_color
	ldr	r3, [sp, #4]
	cmp	r3, r0
	ldreq	r2, [sp, #80]
	ldr	r3, [sp, #76]
	ldreq	r2, [r2]
	biceq	r3, r3, r2
	streq	r3, [sp, #96]
	b	.L8
.L35:
	ldr	r3, .L40+4
	ldr	r0, [r3]
	bl	get_format_info
	add	r2, sp, #84
	mov	r9, r0
	mov	r1, r0
	mov	r0, r4
	bl	init_argb_conversion_info
	b	.L2
.L39:
	ldr	r1, [sp, #60]
	sub	r3, r3, r2
	mov	r0, r1
	mul	r0, r2, r0
	mov	r2, r1
	mul	r2, r3, r2
	ldr	r3, [sp, #52]
	add	r0, r3, r0, lsl #2
	ldr	r3, .L40
	ldr	r1, [r3]
	ldr	r3, [sp, #116]
	eors	r1, r3, r1
	mov	r3, #0
	bne	.L33
	mov	r1, #0
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memset
.L33:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	.LC0
	.word	D3DFMT_A8R8G8B8
	.size	convert_argb_pixels, .-convert_argb_pixels
	.comm	D3DFMT_A8R8G8B8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
