	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_swapchain_cs_init
_wined3d_swapchain_cs_init:             ## @wined3d_swapchain_cs_init
	.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	%rdi, %r13
	movq	48(%rdi), %rax
	movq	(%rax), %r14
	leaq	_wined3d_swapchain_cs_init.formats(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	xorl	%r12d, %r12d
	leaq	_wined3d_swapchain_cs_init.formats(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	movq	_WINED3DUSAGE_DEPTHSTENCIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wined3d_get_format
	movq	%rax, 16(%r13)
	movl	40(%r13), %esi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_context_create
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_debug_d3dformat
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	incq	%r12
	leaq	_wined3d_swapchain_cs_init.formats(%rip), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r15
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_4:
	movq	8(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.5:
	movl	$1, (%r13)
	movq	_wined3d_settings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ORM_FBO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.6:
	cmpl	$0, 32(%r13)
	je	LBB0_8
## %bb.7:
	movq	16(%r13), %rcx
	movq	24(%r13), %rdx
	cmpq	(%rcx), %rdx
	je	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	movq	8(%r13), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_context_release
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wined3d_swapchain_update_swap_interval_cs ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @wined3d_swapchain_cs_init.formats
_wined3d_swapchain_cs_init.formats:
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	132                             ## 0x84
	.long	128                             ## 0x80

	.comm	_WINED3DUSAGE_DEPTHSTENCIL,4,2  ## @WINED3DUSAGE_DEPTHSTENCIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Depth stencil format %s is not supported, trying next format.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create context.\n"

	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
L_.str.2:                               ## @.str.2
	.asciz	"Add OpenGL context recreation support.\n"

	.no_dead_strip	_wined3d_swapchain_cs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_swapchain_cs_init
_wined3d_swapchain_cs_init:             ; @wined3d_swapchain_cs_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _wined3d_swapchain_cs_init.formats@PAGE
Lloh1:
	add	x21, x21, _wined3d_swapchain_cs_init.formats@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x25, _WINED3DUSAGE_DEPTHSTENCIL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WINED3DUSAGE_DEPTHSTENCIL@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21, x24, lsl #2]
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x23
	bl	_wined3d_get_format
	mov	x2, x0
	str	x0, [x19, #16]
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_context_create
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_debug_d3dformat
	mov	x1, x0
	mov	x0, x22
	bl	_TRACE
	add	x24, x24, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x24, w0, uxtw
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.5:
	mov	w9, #1
Lloh6:
	adrp	x10, _wined3d_settings@GOTPAGE
Lloh7:
	ldr	x10, [x10, _wined3d_settings@GOTPAGEOFF]
	str	w9, [x19]
Lloh8:
	ldr	x9, [x10]
Lloh9:
	adrp	x10, _ORM_FBO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ORM_FBO@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.6:
	ldr	w9, [x19, #32]
	cbz	w9, LBB0_8
; %bb.7:
	ldp	x10, x9, [x19, #16]
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_9
LBB0_8:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	ldr	x8, [x19, #8]
LBB0_9:
	ldr	w0, [x8]
	bl	_context_release
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wined3d_swapchain_update_swap_interval_cs
LBB0_10:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_WARN
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @wined3d_swapchain_cs_init.formats
_wined3d_swapchain_cs_init.formats:
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	132                             ; 0x84
	.long	128                             ; 0x80

	.comm	_WINED3DUSAGE_DEPTHSTENCIL,4,2  ; @WINED3DUSAGE_DEPTHSTENCIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Depth stencil format %s is not supported, trying next format.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create context.\n"

	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
l_.str.2:                               ; @.str.2
	.asciz	"Add OpenGL context recreation support.\n"

	.no_dead_strip	_wined3d_swapchain_cs_init
.subsections_via_symbols
