	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FBO_Bind                       ## -- Begin function FBO_Bind
	.p2align	4, 0x90
_FBO_Bind:                              ## @FBO_Bind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_glRefConfig@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	_glState@GOTPCREL(%rip), %r14
	cmpq	%rdi, (%r14)
	je	LBB0_11
## %bb.2:
	movq	_r_logFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rsi
	jmp	LBB0_6
LBB0_12:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	movl	%eax, %edi
	callq	_GLimp_LogComment
LBB0_7:
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	movl	8(%rbx), %esi
	jmp	LBB0_10
LBB0_8:
	xorl	%esi, %esi
LBB0_10:
	callq	_GL_BindFramebuffer
	movq	%rbx, (%r14)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_glRefConfig,4,2                ## @glRefConfig
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FBO_Bind() called without framebuffers enabled!\n"

	.comm	_glState,8,3                    ## @glState
	.comm	_r_logFile,8,3                  ## @r_logFile
L_.str.1:                               ## @.str.1
	.asciz	"--- FBO_Bind( %s ) ---\n"

L_.str.2:                               ## @.str.2
	.asciz	"NULL"

	.comm	_GL_FRAMEBUFFER,4,2             ## @GL_FRAMEBUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FBO_Bind                       ; -- Begin function FBO_Bind
	.p2align	2
_FBO_Bind:                              ; @FBO_Bind
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _glRefConfig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _glRefConfig@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _glState@GOTPAGE
Lloh4:
	ldr	x20, [x20, _glState@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x0
	b.eq	LBB0_12
; %bb.2:
Lloh5:
	adrp	x8, _r_logFile@GOTPAGE
Lloh6:
	ldr	x8, [x8, _r_logFile@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	cbz	x19, LBB0_6
; %bb.4:
	ldr	x1, [x19]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ri@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh10:
	adrp	x9, _PRINT_WARNING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRINT_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
Lloh13:
	ldr	w0, [x9]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_6:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	bl	_GLimp_LogComment
LBB0_8:
Lloh20:
	adrp	x8, _GL_FRAMEBUFFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w1, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	w1, #0
LBB0_11:
	bl	_GL_BindFramebuffer
	str	x19, [x20]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_glRefConfig,4,2                ; @glRefConfig
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FBO_Bind() called without framebuffers enabled!\n"

	.comm	_glState,8,3                    ; @glState
	.comm	_r_logFile,8,3                  ; @r_logFile
l_.str.1:                               ; @.str.1
	.asciz	"--- FBO_Bind( %s ) ---\n"

l_.str.2:                               ; @.str.2
	.asciz	"NULL"

	.comm	_GL_FRAMEBUFFER,4,2             ; @GL_FRAMEBUFFER
.subsections_via_symbols
