	.file	"extr_surface_extra.c_SetSurfaceExtra.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SetSurfaceExtra
	.type	SetSurfaceExtra, @function
SetSurfaceExtra:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	test	esi, esi
	js	.L1
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	mov	rbx, rdi
	call	AllocSurfaceExtra@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	rcx, QWORD PTR 24[rbx]
	mov	QWORD PTR 32[rax], rbx
	mov	DWORD PTR 28[rax], edx
	mov	edx, -1
	test	rcx, rcx
	je	.L3
	mov	edx, DWORD PTR [rcx]
.L3:
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rax]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 20[rbx]
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR 16[rbx]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR 12[rbx]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[rax], edx
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	VectorCopy@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	SetSurfaceExtra, .-SetSurfaceExtra
	.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_extra.c_SetSurfaceExtra.c"
	.text
	.align	2
	.global	SetSurfaceExtra
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetSurfaceExtra, %function
SetSurfaceExtra:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	moveq	r1, #1
	lsrne	r1, r1, #31
	cmp	r1, #0
	bxne	lr
	push	{r4, lr}
	mov	r4, r0
	bl	AllocSurfaceExtra
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #28]
	cmp	r3, #0
	str	r2, [r0, #28]
	mvneq	r2, #0
	ldrne	r2, [r3]
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #12]
	ldr	ip, [r4, #16]
	str	r2, [r0]
	ldr	r2, [r4, #8]
	str	r3, [r0, #24]
	ldr	r3, [r4, #4]
	str	r4, [r0, #32]
	str	r1, [r0, #16]
	str	ip, [r0, #20]
	ldr	r1, [r0, #4]
	str	r2, [r0, #12]
	str	r3, [r0, #8]
	ldr	r0, [r4]
	pop	{r4, lr}
	b	VectorCopy
	.size	SetSurfaceExtra, .-SetSurfaceExtra
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
