	.file	"extr_hlsl.c_setup_device9.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IDirect3DDevice9_CreateRenderTarget returned: %08x\n"
	.align 8
.LC1:
	.string	"IDirect3DDevice9_CreateOffscreenPlainSurface returned: %08x\n"
	.align 8
.LC2:
	.string	"IDirect3DDevice9_SetRenderTarget returned: %08x\n"
	.align 8
.LC3:
	.string	"IDirect3DDevice9_SetVertexShader returned: %08x\n"
	.align 8
.LC4:
	.string	"IDirect3DDevice9_SetPixelShader returned: %08x\n"
	.text
	.p2align 4
	.type	setup_device9, @function
setup_device9:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	xor	r9d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR FALSE[rip]
	mov	r8d, DWORD PTR D3DMULTISAMPLE_NONE[rip]
	mov	r13, QWORD PTR 88[rsp]
	mov	r12, QWORD PTR 96[rsp]
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, r15d
	push	0
	.cfi_def_cfa_offset 96
	push	rsi
	.cfi_def_cfa_offset 104
	mov	esi, r14d
	push	rax
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 36[rsp], ecx
	call	IDirect3DDevice9_CreateRenderTarget@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	xor	edi, edi
	cmp	QWORD PTR D3D_OK[rip], rax
	sete	dil
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, r15d
	mov	esi, r14d
	push	0
	.cfi_def_cfa_offset 96
	mov	r10, QWORD PTR 24[rsp]
	mov	rdi, rbp
	mov	ecx, DWORD PTR 20[rsp]
	mov	r8d, DWORD PTR D3DPOOL_SYSTEMMEM[rip]
	mov	r9, r10
	call	IDirect3DDevice9_CreateOffscreenPlainSurface@PLT
	xor	edi, edi
	cmp	QWORD PTR D3D_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdx, QWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, rbp
	call	IDirect3DDevice9_SetRenderTarget@PLT
	xor	edi, edi
	cmp	QWORD PTR D3D_OK[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	IDirect3DDevice9_SetVertexShader@PLT
	xor	edi, edi
	cmp	QWORD PTR D3D_OK[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	IDirect3DDevice9_SetPixelShader@PLT
	xor	edi, edi
	cmp	QWORD PTR D3D_OK[rip], rax
	lea	rsi, .LC4[rip]
	sete	dil
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdx, rax
	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
	jmp	ok@PLT
	.cfi_endproc
.LFE0:
	.size	setup_device9, .-setup_device9
	.comm	FALSE,4,4
	.comm	D3D_OK,8,8
	.comm	D3DPOOL_SYSTEMMEM,4,4
	.comm	D3DMULTISAMPLE_NONE,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_hlsl.c_setup_device9.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IDirect3DDevice9_CreateRenderTarget returned: %08x\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"IDirect3DDevice9_CreateOffscreenPlainSurface return"
	.ascii	"ed: %08x\012\000"
	.align	2
.LC2:
	.ascii	"IDirect3DDevice9_SetRenderTarget returned: %08x\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"IDirect3DDevice9_SetVertexShader returned: %08x\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"IDirect3DDevice9_SetPixelShader returned: %08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_device9, %function
setup_device9:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	mov	r7, r1
	mov	ip, r2
	ldr	r1, .L4
	ldr	r2, .L4+4
	sub	sp, sp, #36
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r8, [sp, #72]
	ldr	r9, [sp, #76]
	str	r1, [sp, #8]
	str	r2, [sp]
	mov	r1, r8
	mov	r2, r9
	str	r7, [sp, #12]
	str	r6, [sp, #16]
	str	r6, [sp, #4]
	mov	r4, r0
	str	ip, [sp, #24]
	str	r3, [sp, #28]
	ldr	fp, [sp, #80]
	ldr	r10, [sp, #84]
	bl	IDirect3DDevice9_CreateRenderTarget
	mov	r2, r0
	ldr	r5, .L4+8
	ldr	r1, .L4+12
	ldr	r0, [r5]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [sp, #24]
	ldr	r3, .L4+16
	str	r2, [sp, #4]
	ldr	ip, [r3]
	mov	r2, r9
	ldr	r3, [sp, #28]
	str	ip, [sp]
	mov	r1, r8
	mov	r0, r4
	str	r6, [sp, #8]
	bl	IDirect3DDevice9_CreateOffscreenPlainSurface
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L4+20
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r6
	ldr	r2, [r7]
	mov	r0, r4
	bl	IDirect3DDevice9_SetRenderTarget
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L4+24
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r1, fp
	mov	r0, r4
	bl	IDirect3DDevice9_SetVertexShader
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L4+28
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r1, r10
	mov	r0, r4
	bl	IDirect3DDevice9_SetPixelShader
	mov	r2, r0
	ldr	r0, [r5]
	ldr	r1, .L4+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ok
.L5:
	.align	2
.L4:
	.word	FALSE
	.word	D3DMULTISAMPLE_NONE
	.word	D3D_OK
	.word	.LC0
	.word	D3DPOOL_SYSTEMMEM
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	setup_device9, .-setup_device9
	.comm	FALSE,4,4
	.comm	D3D_OK,4,4
	.comm	D3DPOOL_SYSTEMMEM,4,4
	.comm	D3DMULTISAMPLE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
