	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddPolygonSurfaces           ## -- Begin function R_AddPolygonSurfaces
	.p2align	4, 0x90
_R_AddPolygonSurfaces:                  ## @R_AddPolygonSurfaces
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_REFENTITYNUM_WORLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_tr@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_QSORT_REFENTITYNUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, 4(%r14)
	cmpl	$0, 8(%r14)
	jle	LBB0_3
## %bb.1:
	movq	16(%r14), %rbx
	xorl	%r15d, %r15d
	movq	_qfalse@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_R_GetShaderByHandle
	movl	(%rbx), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_R_AddDrawSurf
	incl	%r15d
	addq	$8, %rbx
	cmpl	8(%r14), %r15d
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REFENTITYNUM_WORLD,4,2         ## @REFENTITYNUM_WORLD
	.comm	_tr,24,3                        ## @tr
	.comm	_QSORT_REFENTITYNUM_SHIFT,4,2   ## @QSORT_REFENTITYNUM_SHIFT
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddPolygonSurfaces           ; -- Begin function R_AddPolygonSurfaces
	.p2align	2
_R_AddPolygonSurfaces:                  ; @R_AddPolygonSurfaces
	.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, _REFENTITYNUM_WORLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REFENTITYNUM_WORLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _tr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
Lloh5:
	adrp	x9, _QSORT_REFENTITYNUM_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QSORT_REFENTITYNUM_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w8, w9
	stp	w8, w9, [x20]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
	ldr	x19, [x20, #16]
Lloh8:
	adrp	x22, _qfalse@GOTPAGE
Lloh9:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_R_GetShaderByHandle
	mov	x1, x0
	ldr	w2, [x19]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_R_AddDrawSurf
	add	w21, w21, #1
	add	x19, x19, #8
	ldr	w8, [x20, #8]
	cmp	w21, w8
	b.lt	LBB0_2
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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REFENTITYNUM_WORLD,4,2         ; @REFENTITYNUM_WORLD
	.comm	_tr,24,3                        ; @tr
	.comm	_QSORT_REFENTITYNUM_SHIFT,4,2   ; @QSORT_REFENTITYNUM_SHIFT
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
