	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_create_fbo_textures
_gl2_create_fbo_textures:               ## @gl2_create_fbo_textures
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movq	8(%rsi), %rsi
	callq	_glGenTextures
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_gl2_create_fbo_texture
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	leaq	4(%r14), %rsi
	movl	$1, %edi
	callq	_glGenTextures
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	movq	%r14, %rdi
	callq	_gl2_create_fbo_texture
LBB0_5:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glBindTexture                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.no_dead_strip	_gl2_create_fbo_textures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_create_fbo_textures
_gl2_create_fbo_textures:               ; @gl2_create_fbo_textures
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	ldr	w0, [x1]
	ldr	x1, [x1, #8]
	bl	_glGenTextures
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	w3, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x2, x21
	bl	_gl2_create_fbo_texture
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	add	x1, x19, #4
	mov	w0, #1
	bl	_glGenTextures
	ldr	x1, [x19, #8]
	ldp	w2, w3, [x19]
	mov	x0, x19
	bl	_gl2_create_fbo_texture
LBB0_5:
Lloh0:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_glBindTexture
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.no_dead_strip	_gl2_create_fbo_textures
.subsections_via_symbols
