	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_clean_fbo_attachments
_context_clean_fbo_attachments:         ## @context_clean_fbo_attachments
	.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	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	(%r13), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%r12)
	movq	%r15, %rdi
	callq	_checkGLcall
	incq	%rbx
	movl	8(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%r12)
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	_checkGLcall
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%r12)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COLOR_ATTACHMENT0,8,3       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glFramebufferTexture2D()"

	.comm	_GL_DEPTH_ATTACHMENT,8,3        ## @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ## @GL_STENCIL_ATTACHMENT
	.no_dead_strip	_context_clean_fbo_attachments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_clean_fbo_attachments
_context_clean_fbo_attachments:         ; @context_clean_fbo_attachments
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x22, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GL_TEXTURE_2D@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x1, x23, x9
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	blr	x8
	mov	x0, x21
	bl	_checkGLcall
	add	x23, x23, #1
	ldr	w8, [x20, #8]
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x9]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	blr	x8
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_checkGLcall
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x9]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	blr	x8
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COLOR_ATTACHMENT0,8,3       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glFramebufferTexture2D()"

	.comm	_GL_DEPTH_ATTACHMENT,8,3        ; @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ; @GL_STENCIL_ATTACHMENT
	.no_dead_strip	_context_clean_fbo_attachments
.subsections_via_symbols
