	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadBrushSides            ## -- Begin function CMod_LoadBrushSides
	.p2align	4, 0x90
_CMod_LoadBrushSides:                   ## @CMod_LoadBrushSides
	.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	_cmod_base@GOTPCREL(%rip), %rax
	movq	8(%rdi), %r15
	addq	(%rax), %r15
	movl	(%rdi), %r13d
	testb	$7, %r13b
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	movl	(%rbx), %r13d
LBB0_2:
	movl	%r13d, %r14d
	sarl	$3, %r14d
	movq	_BOX_SIDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Hunk_Alloc
	movq	_cm@GOTPCREL(%rip), %r12
	movq	%rax, 32(%r12)
	movl	%r14d, (%r12)
	cmpl	$8, %r13d
	jl	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	cmpl	$2, %r14d
	movl	$1, %r13d
	cmovgel	%r14d, %r13d
	addq	$4, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%rbx)
	addq	$24, %rbx
	incq	%r14
	cmpl	%r14d, %r13d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %edi
	callq	_LittleLong
	cltq
	shlq	$2, %rax
	addq	24(%r12), %rax
	movq	%rax, 16(%rbx)
	movl	-4(%r15,%r14,8), %edi
	callq	_LittleLong
	movq	%rax, (%rbx)
	cmpq	%rax, 8(%r12)
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_Com_Error
	movq	(%rbx), %rax
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmod_base,8,3                  ## @cmod_base
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MOD_LoadBmodel: funny lump size"

	.comm	_BOX_SIDES,4,2                  ## @BOX_SIDES
	.comm	_h_high,4,2                     ## @h_high
	.comm	_cm,40,3                        ## @cm
L_.str.1:                               ## @.str.1
	.asciz	"CMod_LoadBrushSides: bad shaderNum: %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadBrushSides            ; -- Begin function CMod_LoadBrushSides
	.p2align	2
_CMod_LoadBrushSides:                   ; @CMod_LoadBrushSides
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _cmod_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmod_base@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x23, [x0, #8]
	ldr	w24, [x0]
Lloh3:
	adrp	x21, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ERR_DROP@GOTPAGEOFF]
	tst	w24, #0x7
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	w24, [x19]
LBB0_2:
	asr	w25, w24, #3
Lloh7:
	adrp	x8, _BOX_SIDES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BOX_SIDES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w8, w8, w25
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
Lloh10:
	adrp	x8, _h_high@GOTPAGE
Lloh11:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_Hunk_Alloc
Lloh13:
	adrp	x22, _cm@GOTPAGE
Lloh14:
	ldr	x22, [x22, _cm@GOTPAGEOFF]
	str	x0, [x22, #32]
	str	w25, [x22]
	cmp	w24, #8
	b.lt	LBB0_7
; %bb.3:
	mov	x19, x0
	add	x8, x23, x20
	cmp	w25, #1
	csinc	w23, w25, wzr, gt
	add	x24, x8, #4
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #16]
	ldr	w8, [x8, x0, lsl #2]
	str	w8, [x19, #8]
	add	x19, x19, #24
	add	x24, x24, #8
	subs	w23, w23, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_LittleLong
	ldr	x8, [x22, #24]
	lsl	x9, x0, #32
	add	x8, x8, x9, asr #30
	str	x8, [x19, #16]
	ldur	w0, [x24, #-4]
	bl	_LittleLong
	str	x0, [x19]
	ldr	x8, [x22, #8]
	cmp	x8, x0
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	str	x0, [sp]
	mov	x0, x8
	mov	x1, x20
	bl	_Com_Error
	ldr	x0, [x19]
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cmod_base,8,3                  ; @cmod_base
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MOD_LoadBmodel: funny lump size"

	.comm	_BOX_SIDES,4,2                  ; @BOX_SIDES
	.comm	_h_high,4,2                     ; @h_high
	.comm	_cm,40,3                        ; @cm
l_.str.1:                               ; @.str.1
	.asciz	"CMod_LoadBrushSides: bad shaderNum: %i"

.subsections_via_symbols
