	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_create_fbo_entry
_context_create_fbo_entry:              ## @context_create_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$16, %edi
	callq	_heap_alloc
	movq	%rax, %rbx
	leaq	12(%rax), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_context_generate_fbo_key
	movl	$0, 8(%rbx)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	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, 8(%rbx)
	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, 8(%rbx)
LBB0_6:
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_context_generate_rt_mask
	movl	%eax, 4(%rbx)
	movl	$1, %edi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rax
	addq	$24, %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
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glGenFramebuffers()"

L_.str.1:                               ## @.str.1
	.asciz	"Created FBO %u.\n"

	.no_dead_strip	_context_create_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_create_fbo_entry
_context_create_fbo_entry:              ; @context_create_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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x25, [x0]
	mov	w0, #16
	bl	_heap_alloc
	mov	x19, x0
	add	x1, x0, #12
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_context_generate_fbo_key
	str	wzr, [x19, #8]
	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, #8]
	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, #8]
LBB0_6:
Lloh12:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_context_generate_rt_mask
	str	w0, [x19, #4]
	ldr	x8, [x25]
	mov	w0, #1
	mov	x1, x19
	blr	x8
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	w1, [x19]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glGenFramebuffers()"

l_.str.1:                               ; @.str.1
	.asciz	"Created FBO %u.\n"

	.no_dead_strip	_context_create_fbo_entry
.subsections_via_symbols
