	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_attach_surface_fbo
_context_attach_surface_fbo:            ## @context_attach_surface_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
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	(%r12), %rcx
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.5:
	addq	(%rax), %rbx
	movq	_GL_RENDERBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_4:
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_2:
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
LBB0_3:
	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 GL object %u to %u.\n"

	.comm	_GL_COLOR_ATTACHMENT0,8,3       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_RENDERBUFFER,4,2            ## @GL_RENDERBUFFER
L_.str.1:                               ## @.str.1
	.asciz	"glFramebufferRenderbuffer()"

	.no_dead_strip	_context_attach_surface_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_surface_fbo
_context_attach_surface_fbo:            ; @context_attach_surface_fbo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x24, [x0]
	ldr	x1, [x3]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x3, [x21]
	cbz	x3, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
	cbz	x23, LBB0_4
; %bb.2:
	ldr	x9, [x24]
	ldr	x8, [x8]
	add	x1, x8, x20
Lloh4:
	adrp	x8, _GL_RENDERBUFFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_RENDERBUFFER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	blr	x9
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_3:
Lloh9:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x2, x8, x20
	mov	x0, x22
	mov	x1, x19
	b	LBB0_5
LBB0_4:
	ldr	x8, [x8]
	add	x2, x8, x20
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_context_attach_gl_texture_fbo
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attach GL object %u to %u.\n"

	.comm	_GL_COLOR_ATTACHMENT0,8,3       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_RENDERBUFFER,4,2            ; @GL_RENDERBUFFER
l_.str.1:                               ; @.str.1
	.asciz	"glFramebufferRenderbuffer()"

	.no_dead_strip	_context_attach_surface_fbo
.subsections_via_symbols
