	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_reuse_fbo_entry
_context_reuse_fbo_entry:               ## @context_reuse_fbo_entry
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rbp), %rax
	movq	(%rdi), %r15
	movl	8(%rax), %edx
	callq	_context_bind_fbo
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_context_clean_fbo_attachments
	movq	16(%rbp), %rbx
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_context_generate_fbo_key
	movl	$0, (%rbx)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rsi
	movl	(%rax), %eax
	movq	_WINED3DFMT_FLAG_DEPTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsi)
	jmp	LBB0_4
LBB0_2:
	xorl	%ecx, %ecx
LBB0_4:
	movq	_WINED3DFMT_FLAG_STENCIL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ## @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3D_FBO_ENTRY_FLAG_DEPTH,4,2 ## @WINED3D_FBO_ENTRY_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ## @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3D_FBO_ENTRY_FLAG_STENCIL,4,2 ## @WINED3D_FBO_ENTRY_FLAG_STENCIL
	.no_dead_strip	_context_reuse_fbo_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_reuse_fbo_entry
_context_reuse_fbo_entry:               ; @context_reuse_fbo_entry
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x26, [x0]
	ldr	w2, [x6, #8]
	bl	_context_bind_fbo
	mov	x0, x26
	mov	x1, x24
	bl	_context_clean_fbo_attachments
	add	x1, x19, #4
	mov	x0, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_context_generate_fbo_key
	str	wzr, [x19]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_FBO_ENTRY_FLAG_DEPTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19]
	b	LBB0_4
LBB0_3:
	mov	w9, #0
LBB0_4:
Lloh6:
	adrp	x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3D_FBO_ENTRY_FLAG_STENCIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ; @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3D_FBO_ENTRY_FLAG_DEPTH,4,2 ; @WINED3D_FBO_ENTRY_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ; @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3D_FBO_ENTRY_FLAG_STENCIL,4,2 ; @WINED3D_FBO_ENTRY_FLAG_STENCIL
	.no_dead_strip	_context_reuse_fbo_entry
.subsections_via_symbols
