	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadShaders               ## -- Begin function CMod_LoadShaders
	.p2align	4, 0x90
_CMod_LoadShaders:                      ## @CMod_LoadShaders
	.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), %r14
	addq	(%rax), %r14
	movl	(%rdi), %r15d
	testb	$15, %r15b
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	movl	(%rbx), %r15d
LBB0_2:
	movl	%r15d, %r12d
	sarl	$4, %r12d
	cmpl	$15, %r15d
	jg	LBB0_4
## %bb.3:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_4:
	movl	%r15d, %ebx
	andl	$-16, %ebx
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_Hunk_Alloc
	movq	_cm@GOTPCREL(%rip), %r13
	movq	%rax, 8(%r13)
	movl	%r12d, (%r13)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_Com_Memcpy
	cmpl	$16, %r15d
	jl	LBB0_7
## %bb.5:
	movq	8(%r13), %r15
	cmpl	$2, %r12d
	movl	$1, %r14d
	cmovgel	%r12d, %r14d
	shlq	$4, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15,%rbx), %rdi
	callq	_LittleLong
	movq	%rax, 8(%r15,%rbx)
	movq	(%r15,%rbx), %rdi
	callq	_LittleLong
	movq	%rax, (%r15,%rbx)
	addq	$16, %rbx
	cmpl	%ebx, %r14d
	jne	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	"CMod_LoadShaders: funny lump size"

L_.str.1:                               ## @.str.1
	.asciz	"Map with no shaders"

	.comm	_h_high,4,2                     ## @h_high
	.comm	_cm,16,3                        ## @cm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadShaders               ; -- Begin function CMod_LoadShaders
	.p2align	2
_CMod_LoadShaders:                      ; @CMod_LoadShaders
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _cmod_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmod_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	add	x19, x9, x8
	ldr	w21, [x0]
Lloh3:
	adrp	x23, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ERR_DROP@GOTPAGEOFF]
	tst	w21, #0xf
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	w21, [x20]
LBB0_2:
	asr	w22, w21, #4
	cmp	w21, #15
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [x23]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_4:
	and	w20, w21, #0xfffffff0
Lloh9:
	adrp	x8, _h_high@GOTPAGE
Lloh10:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Hunk_Alloc
Lloh12:
	adrp	x23, _cm@GOTPAGE
Lloh13:
	ldr	x23, [x23, _cm@GOTPAGEOFF]
	str	x0, [x23, #8]
	str	w22, [x23]
	mov	x1, x19
	mov	x2, x20
	bl	_Com_Memcpy
	cmp	w21, #16
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x23, #8]
	cmp	w22, #1
	csinc	w19, w22, wzr, gt
	add	x20, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_LittleLong
	str	x0, [x20]
	ldur	x0, [x20, #-8]
	bl	_LittleLong
	stur	x0, [x20, #-8]
	add	x20, x20, #16
	subs	w19, w19, #1
	b.ne	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	"CMod_LoadShaders: funny lump size"

l_.str.1:                               ; @.str.1
	.asciz	"Map with no shaders"

	.comm	_h_high,4,2                     ; @h_high
	.comm	_cm,16,3                        ; @cm
.subsections_via_symbols
