	.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	%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
	movq	%rdx, %r12
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	(%rdx), %ebx
	movq	_r_nobind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	movq	_tr@GOTPCREL(%rip), %rax
	je	LBB0_3
## %bb.1:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %r15d
	movl	%r15d, %ebx
LBB0_3:
	movq	_glState@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpl	%ebx, 4(%rax)
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	callq	_GL_SelectTexture
	movq	_tr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	(%r13), %rax
	movl	%ebx, 4(%rax)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_qglBindTexture
	movq	(%r13), %rax
LBB0_5:
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	callq	_GL_SelectTexture
	movq	_tr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	(%r13), %rax
	movl	%r15d, (%rax)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglBindTexture                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r_nobind,8,3                   ## @r_nobind
	.comm	_tr,16,3                        ## @tr
	.comm	_glState,8,3                    ## @glState
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _r_nobind@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_nobind@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh3:
	adrp	x23, _tr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _tr@GOTPAGEOFF]
	ldr	x8, [x23, #8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x19]
	ldr	w22, [x21]
	b	LBB0_3
LBB0_2:
	ldr	w20, [x8]
	mov	x22, x20
LBB0_3:
Lloh5:
	adrp	x24, _glState@GOTPAGE
Lloh6:
	ldr	x24, [x24, _glState@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w9, [x8, #4]
Lloh7:
	adrp	x25, _GL_TEXTURE_2D@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GL_TEXTURE_2D@GOTPAGEOFF]
	cmp	w9, w22
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_GL_SelectTexture
	ldr	w8, [x23]
	str	w8, [x21, #4]
	ldr	x8, [x24]
	str	w22, [x8, #4]
	ldr	w0, [x25]
	mov	x1, x22
	bl	_qglBindTexture
	ldr	x8, [x24]
LBB0_5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	bl	_GL_SelectTexture
	ldr	w8, [x23]
	str	w8, [x19, #4]
	ldr	x8, [x24]
	str	w20, [x8]
	ldr	w0, [x25]
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_qglBindTexture
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_r_nobind,8,3                   ; @r_nobind
	.comm	_tr,16,3                        ; @tr
	.comm	_glState,8,3                    ; @glState
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
.subsections_via_symbols
