	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_recreate_fbo
_gl2_recreate_fbo:                      ## @gl2_recreate_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_gl2_bind_fb
	movl	$1, %r14d
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_glDeleteTextures
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_glGenTextures
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_glBindTexture
	movl	(%r12), %edi
	movq	_RARCH_GL_INTERNAL_FORMAT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	_RARCH_GL_TEXTURE_TYPE32@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_RARCH_GL_FORMAT32@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_gl2_load_texture_image
	addq	$32, %rsp
	movq	_RARCH_GL_FRAMEBUFFER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_RARCH_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	xorl	%r8d, %r8d
	callq	_gl2_fb_texture_2d
	movl	(%r15), %edi
	callq	_gl2_check_fb_status
	movq	_RARCH_GL_FRAMEBUFFER_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_WARN
	xorl	%r14d, %r14d
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_RARCH_GL_INTERNAL_FORMAT32,4,2 ## @RARCH_GL_INTERNAL_FORMAT32
	.comm	_RARCH_GL_TEXTURE_TYPE32,4,2    ## @RARCH_GL_TEXTURE_TYPE32
	.comm	_RARCH_GL_FORMAT32,4,2          ## @RARCH_GL_FORMAT32
	.comm	_RARCH_GL_FRAMEBUFFER,4,2       ## @RARCH_GL_FRAMEBUFFER
	.comm	_RARCH_GL_COLOR_ATTACHMENT0,4,2 ## @RARCH_GL_COLOR_ATTACHMENT0
	.comm	_RARCH_GL_FRAMEBUFFER_COMPLETE,8,3 ## @RARCH_GL_FRAMEBUFFER_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reinitialize FBO texture.\n"

	.no_dead_strip	_gl2_recreate_fbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_recreate_fbo
_gl2_recreate_fbo:                      ; @gl2_recreate_fbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_gl2_bind_fb
	mov	w19, #1
	mov	w0, #1
	mov	x1, x20
	bl	_glDeleteTextures
	mov	w0, #1
	mov	x1, x20
	bl	_glGenTextures
Lloh0:
	adrp	x22, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_glBindTexture
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _RARCH_GL_INTERNAL_FORMAT32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RARCH_GL_INTERNAL_FORMAT32@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldp	w4, w3, [x21]
Lloh5:
	adrp	x8, _RARCH_GL_TEXTURE_TYPE32@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RARCH_GL_TEXTURE_TYPE32@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x8, _RARCH_GL_FORMAT32@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_GL_FORMAT32@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
	str	xzr, [sp]
	mov	w1, #0
	mov	w5, #0
	bl	_gl2_load_texture_image
Lloh11:
	adrp	x21, _RARCH_GL_FRAMEBUFFER@GOTPAGE
Lloh12:
	ldr	x21, [x21, _RARCH_GL_FRAMEBUFFER@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _RARCH_GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RARCH_GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x22]
	ldr	w3, [x20]
	mov	w4, #0
	bl	_gl2_fb_texture_2d
	ldr	w0, [x21]
	bl	_gl2_check_fb_status
Lloh16:
	adrp	x8, _RARCH_GL_FRAMEBUFFER_COMPLETE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RARCH_GL_FRAMEBUFFER_COMPLETE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_WARN
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_RARCH_GL_INTERNAL_FORMAT32,4,2 ; @RARCH_GL_INTERNAL_FORMAT32
	.comm	_RARCH_GL_TEXTURE_TYPE32,4,2    ; @RARCH_GL_TEXTURE_TYPE32
	.comm	_RARCH_GL_FORMAT32,4,2          ; @RARCH_GL_FORMAT32
	.comm	_RARCH_GL_FRAMEBUFFER,4,2       ; @RARCH_GL_FRAMEBUFFER
	.comm	_RARCH_GL_COLOR_ATTACHMENT0,4,2 ; @RARCH_GL_COLOR_ATTACHMENT0
	.comm	_RARCH_GL_FRAMEBUFFER_COMPLETE,8,3 ; @RARCH_GL_FRAMEBUFFER_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reinitialize FBO texture.\n"

	.no_dead_strip	_gl2_recreate_fbo
.subsections_via_symbols
