	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_BindMultiTexture            ## -- Begin function GL_BindMultiTexture
	.p2align	4, 0x90
_GL_BindMultiTexture:                   ## @GL_BindMultiTexture
	.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	_GL_TEXTURE0@GOTPCREL(%rip), %rax
	movq	%rdi, %rbx
	subq	(%rax), %rbx
	movq	_glDsaState@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%eax, %eax
	cmpq	%rdx, (%rcx,%rbx,8)
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	_GL_TEXTURE_CUBE_MAP_POSITIVE_X@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z@GOTPCREL(%rip), %rdx
	movq	%rsi, %rax
	cmpq	%rsi, (%rdx)
	jl	LBB0_3
## %bb.2:
	movq	_GL_TEXTURE_CUBE_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	cmpq	%rsi, %rcx
	cmovgq	%rsi, %rax
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_qglBindMultiTextureEXT
	movq	(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE0,8,3                ## @GL_TEXTURE0
	.comm	_glDsaState,8,3                 ## @glDsaState
	.comm	_GL_TEXTURE_CUBE_MAP_POSITIVE_X,8,3 ## @GL_TEXTURE_CUBE_MAP_POSITIVE_X
	.comm	_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,8,3 ## @GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
	.comm	_GL_TEXTURE_CUBE_MAP,8,3        ## @GL_TEXTURE_CUBE_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_BindMultiTexture            ; -- Begin function GL_BindMultiTexture
	.p2align	2
_GL_BindMultiTexture:                   ; @GL_BindMultiTexture
	.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
Lloh0:
	adrp	x8, _GL_TEXTURE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x20, x0, x8
Lloh3:
	adrp	x21, _glDsaState@GOTPAGE
Lloh4:
	ldr	x21, [x21, _glDsaState@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x2
Lloh5:
	adrp	x8, _GL_TEXTURE_CUBE_MAP_POSITIVE_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_TEXTURE_CUBE_MAP_POSITIVE_X@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _GL_TEXTURE_CUBE_MAP_NEGATIVE_Z@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GL_TEXTURE_CUBE_MAP_NEGATIVE_Z@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x1
	ccmp	x8, x1, #0, ge
Lloh11:
	adrp	x8, _GL_TEXTURE_CUBE_MAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_TEXTURE_CUBE_MAP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	csel	x1, x1, x8, gt
	bl	_qglBindMultiTextureEXT
	ldr	x8, [x21]
	str	x19, [x8, x20, lsl #3]
	mov	w0, #1
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE0,8,3                ; @GL_TEXTURE0
	.comm	_glDsaState,8,3                 ; @glDsaState
	.comm	_GL_TEXTURE_CUBE_MAP_POSITIVE_X,8,3 ; @GL_TEXTURE_CUBE_MAP_POSITIVE_X
	.comm	_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,8,3 ; @GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
	.comm	_GL_TEXTURE_CUBE_MAP,8,3        ; @GL_TEXTURE_CUBE_MAP
.subsections_via_symbols
