	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_check_fbo_status       ## -- Begin function context_check_fbo_status
	.p2align	4, 0x90
_context_check_fbo_status:              ## @context_check_fbo_status
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	_d3d@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIXME_ON
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	*8(%r13)
	movq	%rax, %r12
	movq	_GL_FRAMEBUFFER_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_2
## %bb.7:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
LBB0_2:
	movq	%r12, %rdi
	callq	_debug_fbostatus
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_FIXME
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.3:
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_context_dump_fbo_attachment
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_context_dump_fbo_attachment
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_context_dump_fbo_attachment
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_d3d,4,2                        ## @d3d
	.comm	_GL_FRAMEBUFFER_COMPLETE,8,3    ## @GL_FRAMEBUFFER_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FBO complete.\n"

L_.str.1:                               ## @.str.1
	.asciz	"FBO status %s (%#x).\n"

L_.str.2:                               ## @.str.2
	.asciz	"FBO 0 is incomplete, driver bug?\n"

	.comm	_GL_DEPTH_ATTACHMENT,8,3        ## @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ## @GL_STENCIL_ATTACHMENT
	.comm	_GL_COLOR_ATTACHMENT0,8,3       ## @GL_COLOR_ATTACHMENT0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_check_fbo_status       ; -- Begin function context_check_fbo_status
	.p2align	2
_context_check_fbo_status:              ; @context_check_fbo_status
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _d3d@GOTPAGE
Lloh1:
	ldr	x8, [x8, _d3d@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIXME_ON
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x20, #8]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x8, _GL_FRAMEBUFFER_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_FRAMEBUFFER_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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	_TRACE
LBB0_3:
	mov	x22, x0
	bl	_debug_fbostatus
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_FIXME
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.4:
Lloh10:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_context_dump_fbo_attachment
Lloh13:
	adrp	x8, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_context_dump_fbo_attachment
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x21, #0
Lloh16:
	adrp	x22, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh17:
	ldr	x22, [x22, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x2, x21, x8
	mov	x0, x20
	mov	x1, x19
	bl	_context_dump_fbo_attachment
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_7:
	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_8:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	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	_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_d3d,4,2                        ; @d3d
	.comm	_GL_FRAMEBUFFER_COMPLETE,8,3    ; @GL_FRAMEBUFFER_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FBO complete.\n"

l_.str.1:                               ; @.str.1
	.asciz	"FBO status %s (%#x).\n"

l_.str.2:                               ; @.str.2
	.asciz	"FBO 0 is incomplete, driver bug?\n"

	.comm	_GL_DEPTH_ATTACHMENT,8,3        ; @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ; @GL_STENCIL_ATTACHMENT
	.comm	_GL_COLOR_ATTACHMENT0,8,3       ; @GL_COLOR_ATTACHMENT0
.subsections_via_symbols
