	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_validate_onscreen_formats
_context_validate_onscreen_formats:     ## @context_validate_onscreen_formats
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movl	4(%r14), %edi
	movl	(%rsi), %esi
	callq	_match_depth_stencil_format
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	movq	_WINED3D_LOCATION_TEXTURE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_wined3d_texture_load_location
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_swapchain_update_draw_bindings
	movl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_set_render_offscreen   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Depth stencil format is not supported by WGL, rendering the backbuffer in an FBO\n"

	.comm	_WINED3D_LOCATION_TEXTURE_RGB,4,2 ## @WINED3D_LOCATION_TEXTURE_RGB
L_.str.1:                               ## @.str.1
	.asciz	"Failed to load location.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_context_validate_onscreen_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_validate_onscreen_formats
_context_validate_onscreen_formats:     ; @context_validate_onscreen_formats
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	ldr	w0, [x20, #4]
	ldr	w1, [x1]
	bl	_match_depth_stencil_format
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
Lloh2:
	adrp	x8, _WINED3D_LOCATION_TEXTURE_RGB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_LOCATION_TEXTURE_RGB@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_wined3d_texture_load_location
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_6:
Lloh7:
	adrp	x21, _TRUE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x20
	bl	_swapchain_update_draw_bindings
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_context_set_render_offscreen
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Depth stencil format is not supported by WGL, rendering the backbuffer in an FBO\n"

	.comm	_WINED3D_LOCATION_TEXTURE_RGB,4,2 ; @WINED3D_LOCATION_TEXTURE_RGB
l_.str.1:                               ; @.str.1
	.asciz	"Failed to load location.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_context_validate_onscreen_formats
.subsections_via_symbols
