	.file	"extr_device.c_wined3d_swapchain_desc_from_present_parameters.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid swap effect %u passed.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Invalid backbuffer count %u.\n"
.LC2:
	.string	"Unhandled flags %#x.\n"
	.text
	.p2align 4
	.type	wined3d_swapchain_desc_from_present_parameters, @function
wined3d_swapchain_desc_from_present_parameters:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR [rsi]
	test	rsi, rsi
	je	.L2
	mov	rax, QWORD PTR D3DSWAPEFFECT_COPY_VSYNC[rip]
	cmp	rsi, rax
	jg	.L2
	mov	r8d, DWORD PTR 8[rbx]
	cmp	r8d, 3
	jg	.L5
	cmp	QWORD PTR D3DSWAPEFFECT_COPY[rip], rsi
	mov	rbp, rdi
	je	.L9
	cmp	rsi, rax
	je	.L9
.L6:
	mov	eax, DWORD PTR 52[rbx]
	mov	edi, DWORD PTR 44[rbx]
	mov	DWORD PTR 76[rbp], eax
	mov	eax, DWORD PTR 48[rbx]
	mov	DWORD PTR 72[rbp], eax
	call	wined3dformat_from_d3dformat@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, 1
	mov	QWORD PTR 64[rbp], rax
	call	max@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR WINED3DUSAGE_RENDERTARGET[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR 40[rbx]
	mov	QWORD PTR 40[rbp], 0
	mov	DWORD PTR 48[rbp], eax
	call	wined3dswapeffect_from_d3dswapeffect@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR 36[rbx]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 24[rbp], eax
	call	wined3dformat_from_d3dformat@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR D3DPRESENTFLAGS_MASK[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, edx
	and	eax, esi
	or	eax, DWORD PTR WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH[rip]
	not	esi
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 4[rbp], eax
	and	esi, edx
	jne	.L21
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	cmp	r8d, 1
	jle	.L6
.L5:
	mov	esi, r8d
	lea	rdi, .LC1[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wined3d_swapchain_desc_from_present_parameters, .-wined3d_swapchain_desc_from_present_parameters
	.comm	WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH,4,4
	.comm	WINED3DUSAGE_RENDERTARGET,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	D3DSWAPEFFECT_COPY_VSYNC,8,8
	.comm	D3DSWAPEFFECT_COPY,8,8
	.comm	D3DPRESENTFLAGS_MASK,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_device.c_wined3d_swapchain_desc_from_present_parameters.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid swap effect %u passed.\012\000"
	.align	2
.LC1:
	.ascii	"Invalid backbuffer count %u.\012\000"
	.align	2
.LC2:
	.ascii	"Unhandled flags %#x.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wined3d_swapchain_desc_from_present_parameters, %function
wined3d_swapchain_desc_from_present_parameters:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r1]
	cmp	r1, #0
	beq	.L2
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r1, r3
	bgt	.L2
	ldr	r2, [r4, #4]
	cmp	r2, #3
	bgt	.L5
	mov	r5, r0
	ldr	r0, .L19+4
	ldr	r0, [r0]
	cmp	r1, r3
	cmpne	r0, r1
	bne	.L6
	cmp	r2, #1
	bgt	.L5
.L6:
	ldr	r2, [r4, #48]
	ldr	r3, [r4, #44]
	ldr	r0, [r4, #40]
	str	r2, [r5, #60]
	str	r3, [r5, #56]
	bl	wined3dformat_from_d3dformat
	ldr	r1, [r4, #4]
	str	r0, [r5, #52]
	mov	r0, #1
	bl	max
	mov	r2, #0
	ldr	r1, .L19+8
	ldr	r3, [r4, #36]
	ldr	r1, [r1]
	str	r0, [r5, #48]
	str	r1, [r5, #44]
	str	r2, [r5, #36]
	str	r3, [r5, #40]
	ldr	r0, [r4]
	bl	wined3dswapeffect_from_d3dswapeffect
	ldr	r1, [r4, #32]
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #24]
	str	r0, [r5, #32]
	str	r1, [r5, #28]
	str	r2, [r5, #24]
	str	r3, [r5, #20]
	ldr	r0, [r4, #20]
	bl	wined3dformat_from_d3dformat
	ldr	r2, .L19+12
	ldr	r3, .L19+16
	ldr	r1, [r4, #8]
	ldr	r2, [r2]
	ldr	ip, [r3]
	ldr	r6, .L19+20
	and	r3, r1, r2
	str	r0, [r5, #16]
	bics	r1, r1, r2
	ldr	r0, [r6]
	ldr	r2, [r4, #12]
	orr	r3, r3, ip
	ldr	ip, [r4, #16]
	str	r3, [r5]
	stmib	r5, {r0, r2, ip}
	popeq	{r4, r5, r6, pc}
	ldr	r0, .L19+24
	bl	FIXME
	ldr	r0, [r6]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r1, r2
	ldr	r0, .L19+28
	bl	WARN
	ldr	r3, .L19+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, .L19+36
	bl	WARN
	ldr	r3, .L19+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L20:
	.align	2
.L19:
	.word	D3DSWAPEFFECT_COPY_VSYNC
	.word	D3DSWAPEFFECT_COPY
	.word	WINED3DUSAGE_RENDERTARGET
	.word	D3DPRESENTFLAGS_MASK
	.word	WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH
	.word	TRUE
	.word	.LC2
	.word	.LC1
	.word	FALSE
	.word	.LC0
	.size	wined3d_swapchain_desc_from_present_parameters, .-wined3d_swapchain_desc_from_present_parameters
	.comm	WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH,4,4
	.comm	WINED3DUSAGE_RENDERTARGET,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	D3DSWAPEFFECT_COPY_VSYNC,4,4
	.comm	D3DSWAPEFFECT_COPY,4,4
	.comm	D3DPRESENTFLAGS_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
