	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_DrawDebugSurface            ## -- Begin function CM_DrawDebugSurface
	.p2align	4, 0x90
_CM_DrawDebugSurface:                   ## @CM_DrawDebugSurface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_CM_DrawDebugSurface.cv2(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rcx, %rbx
	xorl	%edx, %edx
	callq	_Cvar_Get
	movq	%rbx, %rcx
	movq	%rax, _CM_DrawDebugSurface.cv2(%rip)
LBB0_2:
	movl	(%rax), %esi
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.5:
	movq	_debugPatchCollide@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.6:
	movq	%rcx, %r14
	cmpq	$0, _CM_DrawDebugSurface.cv(%rip)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_Cvar_Get
	movq	%rax, _CM_DrawDebugSurface.cv(%rip)
	movq	(%rbx), %rdx
LBB0_8:
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	movq	24(%rdx), %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	testl	%edi, %edi
	jns	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$32, %rsi
	decl	%eax
	jne	LBB0_10
LBB0_15:
	movq	_debugBlockPoints@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_VectorCopy
	movl	$2, %edi
	movl	$3, %esi
	callq	*%r14
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rcx
	movl	$2, %edi
	movl	$3, %esi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.4:
	movq	%rcx, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_BotDrawDebugPolygons           ## TAILCALL
LBB0_11:
	leaq	-48(%rbp), %rcx
	callq	_CM_DrawDebugSurface.cold.1
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CM_DrawDebugSurface.cold.1
_CM_DrawDebugSurface.cold.1:            ## @CM_DrawDebugSurface.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	testl	%edi, %edi
	je	LBB1_1
## %bb.2:
	movq	8(%rsi), %rsi
	jmp	LBB1_3
LBB1_1:
	addq	$24, %rsi
LBB1_3:
	movslq	(%rsi), %rax
	movq	16(%rdx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	%rbx, %rsi
	callq	_Vector4Copy
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_VectorSubtract
	ud2
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_CM_DrawDebugSurface.cv,8,3 ## @CM_DrawDebugSurface.cv
.zerofill __DATA,__bss,_CM_DrawDebugSurface.cv2,8,3 ## @CM_DrawDebugSurface.cv2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_debugSurface"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_debugPatchCollide,8,3          ## @debugPatchCollide
L_.str.2:                               ## @.str.2
	.asciz	"cm_debugSize"

L_.str.3:                               ## @.str.3
	.asciz	"2"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_vec3_origin,4,2                ## @vec3_origin
	.comm	_debugFacet,8,3                 ## @debugFacet
	.comm	_debugBlockPoints,8,3           ## @debugBlockPoints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_DrawDebugSurface            ; -- Begin function CM_DrawDebugSurface
	.p2align	2
_CM_DrawDebugSurface:                   ; @CM_DrawDebugSurface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x2, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	adrp	x19, _CM_DrawDebugSurface.cv2@PAGE
	ldr	x0, [x19, _CM_DrawDebugSurface.cv2@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	w2, #0
	bl	_Cvar_Get
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	str	x0, [x19, _CM_DrawDebugSurface.cv2@PAGEOFF]
LBB0_2:
	ldr	w1, [x0]
	cmp	w1, #1
	b.ne	LBB0_12
; %bb.3:
	str	x2, [sp]                        ; 8-byte Folded Spill
Lloh7:
	adrp	x19, _debugPatchCollide@GOTPAGE
Lloh8:
	ldr	x19, [x19, _debugPatchCollide@GOTPAGEOFF]
	ldr	x2, [x19]
	cbz	x2, LBB0_14
; %bb.4:
	adrp	x20, _CM_DrawDebugSurface.cv@PAGE
	ldr	x8, [x20, _CM_DrawDebugSurface.cv@PAGEOFF]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_Cvar_Get
	str	x0, [x20, _CM_DrawDebugSurface.cv@PAGEOFF]
	ldr	x2, [x19]
LBB0_6:
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	x1, [x2, #24]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x1]
	tbz	w0, #31, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x1, #32
	subs	w8, w8, #1
	b.ne	LBB0_8
LBB0_10:
Lloh13:
	adrp	x19, _debugBlockPoints@GOTPAGE
Lloh14:
	ldr	x19, [x19, _debugBlockPoints@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_VectorCopy
	mov	w0, #2
	mov	w1, #3
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	blr	x2
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_VectorCopy
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	mov	w0, #2
	mov	w1, #3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x2
LBB0_12:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.13:
	mov	x0, x2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_BotDrawDebugPolygons
LBB0_14:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	add	x3, sp, #8
	bl	_CM_DrawDebugSurface.cold.1
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CM_DrawDebugSurface.cold.1
_CM_DrawDebugSurface.cold.1:            ; @CM_DrawDebugSurface.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	cbz	w0, LBB1_2
; %bb.1:
	ldr	x8, [x1, #8]
	b	LBB1_3
LBB1_2:
	add	x8, x1, #24
LBB1_3:
	ldrsw	x8, [x8]
	ldr	x9, [x2, #16]
	ldr	w0, [x9, x8, lsl #2]
	mov	x1, x19
	bl	_Vector4Copy
Lloh24:
	adrp	x8, _vec3_origin@GOTPAGE
Lloh25:
	ldr	x8, [x8, _vec3_origin@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x19
	bl	_VectorSubtract
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_CM_DrawDebugSurface.cv,8,3 ; @CM_DrawDebugSurface.cv
.zerofill __DATA,__bss,_CM_DrawDebugSurface.cv2,8,3 ; @CM_DrawDebugSurface.cv2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_debugSurface"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_debugPatchCollide,8,3          ; @debugPatchCollide
l_.str.2:                               ; @.str.2
	.asciz	"cm_debugSize"

l_.str.3:                               ; @.str.3
	.asciz	"2"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_vec3_origin,4,2                ; @vec3_origin
	.comm	_debugFacet,8,3                 ; @debugFacet
	.comm	_debugBlockPoints,8,3           ; @debugBlockPoints
.subsections_via_symbols
