	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddBrushModelSurfaces        ## -- Begin function R_AddBrushModelSurfaces
	.p2align	4, 0x90
_R_AddBrushModelSurfaces:               ## @R_AddBrushModelSurfaces
	.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	%rdi, %r14
	movl	(%rdi), %edi
	callq	_R_GetModelByHandle
	movq	(%rax), %r12
	movl	16(%r12), %edi
	callq	_R_CullLocalBox
	movq	_CULL_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.1:
	movq	_tr@GOTPCREL(%rip), %r15
	leaq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_R_SetupEntityLighting
	movq	%r12, %rdi
	callq	_R_DlightBmodel
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_R_AddWorldSurface
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CULL_OUT,4,2                   ## @CULL_OUT
	.comm	_tr,16,3                        ## @tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddBrushModelSurfaces        ; -- Begin function R_AddBrushModelSurfaces
	.p2align	2
_R_AddBrushModelSurfaces:               ; @R_AddBrushModelSurfaces
	.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
	mov	x20, x0
	ldr	w0, [x0]
	bl	_R_GetModelByHandle
	ldr	x19, [x0]
	ldr	w0, [x19, #16]
	bl	_R_CullLocalBox
Lloh0:
	adrp	x8, _CULL_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CULL_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x21, _tr@GOTPAGE
Lloh4:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	add	x0, x21, #8
	mov	x1, x20
	bl	_R_SetupEntityLighting
	mov	x0, x19
	bl	_R_DlightBmodel
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x20, x8
	ldr	x8, [x21]
	ldr	w1, [x8]
	bl	_R_AddWorldSurface
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CULL_OUT,4,2                   ; @CULL_OUT
	.comm	_tr,16,3                        ; @tr
.subsections_via_symbols
