	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawMultitextured
_DrawMultitextured:                     ## @DrawMultitextured
	.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	%rdi, %rbx
	movq	_tess@GOTPCREL(%rip), %r15
	movq	8(%r15), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	movl	8(%r14), %edi
	callq	_GL_State
	movq	_backEnd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_GL_FRONT_AND_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qglPolygonMode
LBB0_2:
	xorl	%edi, %edi
	callq	_GL_SelectTexture
	movq	_GL_FLOAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_qglTexCoordPointer
	movq	(%r14), %rdi
	callq	_R_BindAnimatedImage
	movl	$1, %edi
	callq	_GL_SelectTexture
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_qglEnable
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_r_lightmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GL_REPLACE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_GL_TexEnv
	movl	(%r13), %esi
	movq	8(%rbx), %rax
	movl	4(%rax), %ecx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_qglTexCoordPointer
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_R_BindAnimatedImage
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_R_DrawElements
	movl	(%r12), %edi
	callq	_qglDisable
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GL_SelectTexture               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,16,3                      ## @tess
	.comm	_backEnd,8,3                    ## @backEnd
	.comm	_GL_FRONT_AND_BACK,4,2          ## @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ## @GL_FILL
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.comm	_r_lightmap,8,3                 ## @r_lightmap
	.comm	_GL_REPLACE,4,2                 ## @GL_REPLACE
	.no_dead_strip	_DrawMultitextured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawMultitextured
_DrawMultitextured:                     ; @DrawMultitextured
	.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	x19, x0
Lloh0:
	adrp	x21, _tess@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tess@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	ldr	x20, [x8, w1, sxtw #3]
	ldr	w0, [x20, #8]
	bl	_GL_State
Lloh2:
	adrp	x8, _backEnd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _GL_FRONT_AND_BACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_FRONT_AND_BACK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GL_FILL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_FILL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_qglPolygonMode
LBB0_2:
	mov	w0, #0
	bl	_GL_SelectTexture
Lloh11:
	adrp	x22, _GL_FLOAT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _GL_FLOAT@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	mov	w0, #2
	mov	w2, #0
	bl	_qglTexCoordPointer
	ldr	x0, [x20]
	bl	_R_BindAnimatedImage
	mov	w0, #1
	bl	_GL_SelectTexture
Lloh13:
	adrp	x23, _GL_TEXTURE_2D@GOTPAGE
Lloh14:
	ldr	x23, [x23, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_qglEnable
Lloh15:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh18:
	adrp	x8, _r_lightmap@GOTPAGE
Lloh19:
	ldr	x8, [x8, _r_lightmap@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x21]
Lloh21:
	adrp	x10, _GL_REPLACE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GL_REPLACE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_GL_TexEnv
	ldr	w1, [x22]
	ldr	x8, [x19, #8]
	ldr	w3, [x8, #4]
	mov	w0, #2
	mov	w2, #0
	bl	_qglTexCoordPointer
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_R_BindAnimatedImage
	ldp	w1, w0, [x19]
	bl	_R_DrawElements
	ldr	w0, [x23]
	bl	_qglDisable
	mov	w0, #0
	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	_GL_SelectTexture
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,16,3                      ; @tess
	.comm	_backEnd,8,3                    ; @backEnd
	.comm	_GL_FRONT_AND_BACK,4,2          ; @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ; @GL_FILL
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.comm	_r_lightmap,8,3                 ; @r_lightmap
	.comm	_GL_REPLACE,4,2                 ; @GL_REPLACE
	.no_dead_strip	_DrawMultitextured
.subsections_via_symbols
