	.file	"extr_swapchain.c_wined3d_swapchain_apply_sample_count_override.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Using sample count %u.\n"
	.text
	.p2align 4
	.type	wined3d_swapchain_apply_sample_count_override, @function
wined3d_swapchain_apply_sample_count_override:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR wined3d_settings[rip], -1
	je	.L16
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR WINED3DUSAGE_RENDERTARGET[rip]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	call	wined3d_get_format@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR wined3d_settings[rip]
	call	min@PLT
	mov	esi, eax
	mov	ebx, eax
	test	eax, eax
	je	.L5
	mov	edx, DWORD PTR 0[r13]
	lea	eax, -1[rax]
	bt	edx, eax
	jc	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, ebx
	add	ebx, 1
	bt	edx, eax
	jnc	.L6
	mov	esi, ebx
.L5:
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	DWORD PTR [r12], ebx
	mov	QWORD PTR 0[rbp], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	wined3d_swapchain_apply_sample_count_override, .-wined3d_swapchain_apply_sample_count_override
	.comm	wined3d_settings,4,4
	.comm	WINED3DUSAGE_RENDERTARGET,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_swapchain.c_wined3d_swapchain_apply_sample_count_override.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Using sample count %u.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wined3d_swapchain_apply_sample_count_override, %function
wined3d_swapchain_apply_sample_count_override:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L17
	ldr	ip, [r4]
	cmn	ip, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r6, r2
	ldr	r2, [r0]
	mov	r5, r3
	ldr	r8, [r2]
	ldr	r3, .L17+4
	mov	r0, r8
	ldr	r2, [r3]
	bl	wined3d_get_format
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	min
	cmp	r0, #0
	mov	r1, r0
	mov	r4, r0
	beq	.L5
	ldr	r3, [r7]
	sub	r2, r0, #1
	lsr	r2, r3, r2
	tst	r2, #1
	bne	.L5
.L6:
	lsr	r1, r3, r4
	tst	r1, #1
	add	r4, r4, #1
	beq	.L6
	mov	r1, r4
.L5:
	ldr	r0, .L17+8
	bl	TRACE
	mov	r3, #0
	str	r4, [r6]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	wined3d_settings
	.word	WINED3DUSAGE_RENDERTARGET
	.word	.LC0
	.size	wined3d_swapchain_apply_sample_count_override, .-wined3d_swapchain_apply_sample_count_override
	.comm	wined3d_settings,4,4
	.comm	WINED3DUSAGE_RENDERTARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
