	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FBO_CreateBuffer               ## -- Begin function FBO_CreateBuffer
	.p2align	4, 0x90
_FBO_CreateBuffer:                      ## @FBO_CreateBuffer
	.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, %r15d
	leal	-128(%r15), %eax
	cmpl	$18, %eax
	ja	LBB0_5
## %bb.1:
	movl	%ecx, %r9d
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	%r15d, (%rbx)
	movslq	%edx, %rax
	leaq	(,%rax,8), %r14
	addq	8(%rbx), %r14
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r13
	addq	%rax, %r13
	jmp	LBB0_7
LBB0_3:
	movl	%r15d, 32(%rbx)
	leaq	40(%rbx), %r14
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_7
LBB0_2:
	movl	%r15d, 16(%rbx)
	leaq	24(%rbx), %r14
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_7
LBB0_4:
	movl	%r15d, 48(%rbx)
	leaq	56(%rbx), %r14
	xorl	%r13d, %r13d
LBB0_7:
	movq	(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_9
## %bb.8:
	movl	$1, %edi
	movq	%r14, %rsi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r9d, %r13d
	callq	_qglGenRenderbuffers
	movl	%r13d, %r9d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_9:
	movq	(%r14), %rdi
	movl	68(%rbx), %r8d
	movl	72(%rbx), %ecx
	testl	%r9d, %r9d
	je	LBB0_12
## %bb.10:
	movq	_glRefConfig@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movl	%r9d, %esi
	movl	%r15d, %edx
	callq	_qglNamedRenderbufferStorageMultisampleEXT
	testq	%r12, %r12
	je	LBB0_14
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r15d, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	callq	_qglNamedRenderbufferStorageEXT
	testq	%r12, %r12
	jne	LBB0_18
LBB0_14:
	movl	64(%rbx), %edi
	testq	%r13, %r13
	je	LBB0_15
## %bb.16:
	movq	_GL_RENDERBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	movq	%r13, %rsi
	jmp	LBB0_17
LBB0_15:
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_GL_RENDERBUFFER@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	(%r14), %rcx
	callq	_qglNamedFramebufferRenderbufferEXT
	movl	64(%rbx), %edi
	movq	_GL_STENCIL_ATTACHMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r15), %edx
	movq	(%r14), %rcx
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglNamedFramebufferRenderbufferEXT ## TAILCALL
LBB0_5:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_DEPTH_ATTACHMENT,8,3        ## @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ## @GL_STENCIL_ATTACHMENT
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FBO_CreateBuffer: invalid format %d\n"

	.comm	_glRefConfig,8,3                ## @glRefConfig
	.comm	_GL_RENDERBUFFER,4,2            ## @GL_RENDERBUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FBO_CreateBuffer               ; -- Begin function FBO_CreateBuffer
	.p2align	2
_FBO_CreateBuffer:                      ; @FBO_CreateBuffer
	.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	x21, x1
	sub	w8, w1, #128
	cmp	w8, #18
	b.hi	LBB0_17
; %bb.1:
	mov	x22, x3
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	w21, [x19]
	ldr	x8, [x19, #8]
	add	x20, x8, w2, sxtw #3
Lloh2:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	add	x23, x8, w2, sxtw
	ldr	x24, [x20]
	cbnz	x24, LBB0_7
	b	LBB0_6
LBB0_3:
	str	w21, [x19, #32]
	add	x20, x19, #40
Lloh5:
	adrp	x8, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	w21, [x19, #16]
	add	x20, x19, #24
Lloh7:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
LBB0_5:
	ldr	x23, [x8]
	ldr	x24, [x20]
	cbnz	x24, LBB0_7
LBB0_6:
	mov	w0, #1
	mov	x1, x20
	bl	_qglGenRenderbuffers
LBB0_7:
	ldr	x0, [x20]
	ldp	w4, w3, [x19, #68]
	cbz	w22, LBB0_11
; %bb.8:
Lloh9:
	adrp	x8, _glRefConfig@GOTPAGE
Lloh10:
	ldr	x8, [x8, _glRefConfig@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x1, x22
	mov	x2, x21
	bl	_qglNamedRenderbufferStorageMultisampleEXT
	cbz	x24, LBB0_12
LBB0_10:
	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
	ret
LBB0_11:
	mov	x1, x21
	mov	x2, x3
	mov	x3, x4
	bl	_qglNamedRenderbufferStorageEXT
	cbnz	x24, LBB0_10
LBB0_12:
	ldr	w0, [x19, #64]
	cbz	x23, LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _GL_RENDERBUFFER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_RENDERBUFFER@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x3, [x20]
	mov	x1, x23
	b	LBB0_15
LBB0_14:
Lloh15:
	adrp	x8, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x21, _GL_RENDERBUFFER@GOTPAGE
Lloh19:
	ldr	x21, [x21, _GL_RENDERBUFFER@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	x3, [x20]
	bl	_qglNamedFramebufferRenderbufferEXT
	ldr	w0, [x19, #64]
Lloh20:
	adrp	x8, _GL_STENCIL_ATTACHMENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_STENCIL_ATTACHMENT@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	ldr	w2, [x21]
	ldr	x3, [x20]
LBB0_15:
	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	_qglNamedFramebufferRenderbufferEXT
LBB0_16:
	mov	x23, #0
	str	w21, [x19, #48]
	add	x20, x19, #56
	ldr	x24, [x20]
	cbnz	x24, LBB0_7
	b	LBB0_6
LBB0_17:
Lloh23:
	adrp	x8, _ri@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh25:
	ldr	x3, [x8]
Lloh26:
	adrp	x8, _PRINT_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PRINT_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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
	br	x3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_DEPTH_ATTACHMENT,8,3        ; @GL_DEPTH_ATTACHMENT
	.comm	_GL_STENCIL_ATTACHMENT,8,3      ; @GL_STENCIL_ATTACHMENT
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FBO_CreateBuffer: invalid format %d\n"

	.comm	_glRefConfig,8,3                ; @glRefConfig
	.comm	_GL_RENDERBUFFER,4,2            ; @GL_RENDERBUFFER
.subsections_via_symbols
