	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_SelectTexture               ## -- Begin function GL_SelectTexture
	.p2align	4, 0x90
_GL_SelectTexture:                      ## @GL_SelectTexture
	.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	_glState@GOTPCREL(%rip), %r14
	cmpl	%edi, (%r14)
	je	LBB0_7
## %bb.1:
	movl	%edi, %ebx
	cmpl	$1, %edi
	je	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	movq	_GL_TEXTURE0_ARB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_qglActiveTextureARB
	leaq	L_.str(%rip), %rdi
	callq	_GLimp_LogComment
	movl	(%r15), %edi
	callq	_qglClientActiveTextureARB
	leaq	L_.str.1(%rip), %rdi
	callq	_GLimp_LogComment
	jmp	LBB0_6
LBB0_4:
	movq	_GL_TEXTURE1_ARB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_qglActiveTextureARB
	leaq	L_.str.2(%rip), %rdi
	callq	_GLimp_LogComment
	movl	(%r15), %edi
	callq	_qglClientActiveTextureARB
	leaq	L_.str.3(%rip), %rdi
	callq	_GLimp_LogComment
	jmp	LBB0_6
LBB0_5:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	*(%rax)
LBB0_6:
	movl	%ebx, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_glState,4,2                    ## @glState
	.comm	_GL_TEXTURE0_ARB,4,2            ## @GL_TEXTURE0_ARB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glActiveTextureARB( GL_TEXTURE0_ARB )\n"

L_.str.1:                               ## @.str.1
	.asciz	"glClientActiveTextureARB( GL_TEXTURE0_ARB )\n"

	.comm	_GL_TEXTURE1_ARB,4,2            ## @GL_TEXTURE1_ARB
L_.str.2:                               ## @.str.2
	.asciz	"glActiveTextureARB( GL_TEXTURE1_ARB )\n"

L_.str.3:                               ## @.str.3
	.asciz	"glClientActiveTextureARB( GL_TEXTURE1_ARB )\n"

	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
L_.str.4:                               ## @.str.4
	.asciz	"GL_SelectTexture: unit = %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_SelectTexture               ; -- Begin function GL_SelectTexture
	.p2align	2
_GL_SelectTexture:                      ; @GL_SelectTexture
	.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	x20, _glState@GOTPAGE
Lloh1:
	ldr	x20, [x20, _glState@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.2:
	cbnz	w19, LBB0_5
; %bb.3:
Lloh2:
	adrp	x21, _GL_TEXTURE0_ARB@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GL_TEXTURE0_ARB@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_qglActiveTextureARB
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GLimp_LogComment
	ldr	w0, [x21]
	bl	_qglClientActiveTextureARB
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GLimp_LogComment
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x21, _GL_TEXTURE1_ARB@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GL_TEXTURE1_ARB@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_qglActiveTextureARB
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_GLimp_LogComment
	ldr	w0, [x21]
	bl	_qglClientActiveTextureARB
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_GLimp_LogComment
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ri@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ERR_DROP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ERR_DROP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	blr	x8
LBB0_6:
	str	w19, [x20]
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_glState,4,2                    ; @glState
	.comm	_GL_TEXTURE0_ARB,4,2            ; @GL_TEXTURE0_ARB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glActiveTextureARB( GL_TEXTURE0_ARB )\n"

l_.str.1:                               ; @.str.1
	.asciz	"glClientActiveTextureARB( GL_TEXTURE0_ARB )\n"

	.comm	_GL_TEXTURE1_ARB,4,2            ; @GL_TEXTURE1_ARB
l_.str.2:                               ; @.str.2
	.asciz	"glActiveTextureARB( GL_TEXTURE1_ARB )\n"

l_.str.3:                               ; @.str.3
	.asciz	"glClientActiveTextureARB( GL_TEXTURE1_ARB )\n"

	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
l_.str.4:                               ; @.str.4
	.asciz	"GL_SelectTexture: unit = %i"

.subsections_via_symbols
