	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_swapchain_apply_sample_count_override
_wined3d_swapchain_apply_sample_count_override: ## @wined3d_swapchain_apply_sample_count_override
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_wined3d_settings@GOTPCREL(%rip), %r13
	cmpl	$-1, (%r13)
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_WINED3DUSAGE_RENDERTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wined3d_get_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r12), %ecx
	decl	%eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rax), %ebx
	btl	%eax, %ecx
	movl	%ebx, %eax
	jae	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	movl	%ebx, (%r15)
	movq	$0, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wined3d_settings,4,2           ## @wined3d_settings
	.comm	_WINED3DUSAGE_RENDERTARGET,4,2  ## @WINED3DUSAGE_RENDERTARGET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using sample count %u.\n"

	.no_dead_strip	_wined3d_swapchain_apply_sample_count_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_swapchain_apply_sample_count_override
_wined3d_swapchain_apply_sample_count_override: ; @wined3d_swapchain_apply_sample_count_override
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _wined3d_settings@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wined3d_settings@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh2:
	adrp	x8, _WINED3DUSAGE_RENDERTARGET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3DUSAGE_RENDERTARGET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_wined3d_get_format
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	w0, [x23]
	ldr	w1, [x22]
	bl	_min
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	sub	w9, w0, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w9, #1
	lsr	w10, w8, w9
	mov	x9, x21
	tbz	w10, #0, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	str	w21, [x20]
	str	xzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_wined3d_settings,4,2           ; @wined3d_settings
	.comm	_WINED3DUSAGE_RENDERTARGET,4,2  ; @WINED3DUSAGE_RENDERTARGET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using sample count %u.\n"

	.no_dead_strip	_wined3d_swapchain_apply_sample_count_override
.subsections_via_symbols
