	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_attach_depth_stencil_fbo
_context_attach_depth_stencil_fbo:      ## @context_attach_depth_stencil_fbo
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdx), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.1:
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_context_attach_depth_stencil_rb
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_context_attach_gl_texture_fbo
	jmp	LBB0_12
LBB0_3:
	movq	_WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_context_attach_gl_texture_fbo
LBB0_5:
	movq	_WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_context_attach_gl_texture_fbo
LBB0_7:
	movq	_WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_context_attach_gl_texture_fbo
LBB0_9:
	movq	_WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_attach_gl_texture_fbo  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attach depth stencil %u.\n"

	.comm	_WINED3D_FBO_ENTRY_FLAG_DEPTH,4,2 ## @WINED3D_FBO_ENTRY_FLAG_DEPTH
	.comm	_GL_DEPTH_ATTACHMENT,4,2        ## @GL_DEPTH_ATTACHMENT
	.comm	_WINED3D_FBO_ENTRY_FLAG_STENCIL,4,2 ## @WINED3D_FBO_ENTRY_FLAG_STENCIL
	.comm	_GL_STENCIL_ATTACHMENT,4,2      ## @GL_STENCIL_ATTACHMENT
L_.str.1:                               ## @.str.1
	.asciz	"Attach depth stencil 0.\n"

	.no_dead_strip	_context_attach_depth_stencil_fbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_attach_depth_stencil_fbo
_context_attach_depth_stencil_fbo:      ; @context_attach_depth_stencil_fbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	w8, [x2]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	ldr	x24, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x26, _WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPAGEOFF]
Lloh4:
	adrp	x25, _WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPAGEOFF]
	cbz	x23, LBB0_4
; %bb.2:
	ldr	w3, [x22]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	bl	_context_attach_depth_stencil_rb
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh8:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	bl	_context_attach_gl_texture_fbo
	b	LBB0_12
LBB0_4:
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_context_attach_gl_texture_fbo
LBB0_6:
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_context_attach_gl_texture_fbo
LBB0_8:
	ldr	w8, [x26]
	tst	w8, w21
	b.ne	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	bl	_context_attach_gl_texture_fbo
LBB0_10:
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh20:
	adrp	x8, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_context_attach_gl_texture_fbo
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attach depth stencil %u.\n"

	.comm	_WINED3D_FBO_ENTRY_FLAG_DEPTH,4,2 ; @WINED3D_FBO_ENTRY_FLAG_DEPTH
	.comm	_GL_DEPTH_ATTACHMENT,4,2        ; @GL_DEPTH_ATTACHMENT
	.comm	_WINED3D_FBO_ENTRY_FLAG_STENCIL,4,2 ; @WINED3D_FBO_ENTRY_FLAG_STENCIL
	.comm	_GL_STENCIL_ATTACHMENT,4,2      ; @GL_STENCIL_ATTACHMENT
l_.str.1:                               ; @.str.1
	.asciz	"Attach depth stencil 0.\n"

	.no_dead_strip	_context_attach_depth_stencil_fbo
.subsections_via_symbols
