	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddDrawSurf                  ## -- Begin function R_AddDrawSurf
	.p2align	4, 0x90
_R_AddDrawSurf:                         ## @R_AddDrawSurf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	movq	_tr@GOTPCREL(%rip), %r8
	movl	8(%r8), %r9d
	movq	_DRAWSURF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	(%rsi), %esi
	movq	_QSORT_SHADERNUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_QSORT_FOGNUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	andl	%r9d, %r10d
	movslq	%r10d, %rcx
	orl	(%r8), %eax
	orl	%esi, %eax
	orl	%edx, %eax
	movq	16(%r8), %rdx
	shlq	$4, %rcx
	movl	%eax, (%rdx,%rcx)
	movq	%rdi, 8(%rdx,%rcx)
	incl	%r9d
	movl	%r9d, 8(%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,24,3                        ## @tr
	.comm	_DRAWSURF_MASK,4,2              ## @DRAWSURF_MASK
	.comm	_QSORT_SHADERNUM_SHIFT,4,2      ## @QSORT_SHADERNUM_SHIFT
	.comm	_QSORT_FOGNUM_SHIFT,4,2         ## @QSORT_FOGNUM_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddDrawSurf                  ; -- Begin function R_AddDrawSurf
	.p2align	2
_R_AddDrawSurf:                         ; @R_AddDrawSurf
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
	ldr	w9, [x8, #8]
Lloh2:
	adrp	x10, _DRAWSURF_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DRAWSURF_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w10, w10, w9
	ldr	w11, [x1]
Lloh5:
	adrp	x12, _QSORT_SHADERNUM_SHIFT@GOTPAGE
Lloh6:
	ldr	x12, [x12, _QSORT_SHADERNUM_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	lsl	w11, w11, w12
Lloh8:
	adrp	x12, _QSORT_FOGNUM_SHIFT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _QSORT_FOGNUM_SHIFT@GOTPAGEOFF]
	ldr	w13, [x8]
Lloh10:
	ldr	w12, [x12]
	lsl	w12, w2, w12
	orr	w13, w13, w3
	orr	w11, w13, w11
	orr	w11, w11, w12
	ldr	x12, [x8, #16]
	add	x10, x12, w10, sxtw #4
	str	w11, [x10]
	str	x0, [x10, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,24,3                        ; @tr
	.comm	_DRAWSURF_MASK,4,2              ; @DRAWSURF_MASK
	.comm	_QSORT_SHADERNUM_SHIFT,4,2      ; @QSORT_SHADERNUM_SHIFT
	.comm	_QSORT_FOGNUM_SHIFT,4,2         ; @QSORT_FOGNUM_SHIFT
.subsections_via_symbols
