	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_renderchain_deinit_fbo
_gl2_renderchain_deinit_fbo:            ## @gl2_renderchain_deinit_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rsi
	movl	$1, %edi
	callq	_gl2_delete_fb
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	16(%rbx), %rsi
	movl	$1, %edi
	callq	_glDeleteTextures
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, (%rbx)
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	movq	8(%r14), %rsi
	callq	_gl2_delete_fb
	movl	(%r14), %edi
	movq	16(%r14), %rsi
	callq	_glDeleteTextures
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$0, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gl2_renderchain_deinit_fbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_renderchain_deinit_fbo
_gl2_renderchain_deinit_fbo:            ; @gl2_renderchain_deinit_fbo
	.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
	mov	x19, x1
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x1, x0
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_gl2_delete_fb
LBB0_3:
	mov	x1, x20
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_glDeleteTextures
LBB0_5:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20]
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	ldr	x1, [x19, #8]
	bl	_gl2_delete_fb
	ldr	w0, [x19]
	ldr	x1, [x19, #16]
	bl	_glDeleteTextures
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	wzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gl2_renderchain_deinit_fbo
.subsections_via_symbols
