	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadLeafSurfaces          ## -- Begin function CMod_LoadLeafSurfaces
	.p2align	4, 0x90
_CMod_LoadLeafSurfaces:                 ## @CMod_LoadLeafSurfaces
	.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	$3, %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, %r13d
	sarl	$2, %r13d
	movl	%r15d, %edi
	andl	$-4, %edi
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Hunk_Alloc
	movq	%rax, %r12
	movq	_cm@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movl	%r13d, 8(%rax)
	cmpl	$4, %r15d
	jl	LBB0_5
## %bb.3:
	cmpl	$2, %r13d
	movl	$1, %r15d
	cmovgel	%r13d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	callq	_LittleLong
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_4
LBB0_5:
	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	_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_LoadLeafSurfaces          ; -- Begin function CMod_LoadLeafSurfaces
	.p2align	2
_CMod_LoadLeafSurfaces:                 ; @CMod_LoadLeafSurfaces
	.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	x20, [x8]
	ldr	x21, [x0, #8]
	ldr	w22, [x0]
	tst	w22, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	w22, [x19]
LBB0_2:
	asr	w23, w22, #2
	and	w0, w22, #0xfffffffc
Lloh8:
	adrp	x8, _h_high@GOTPAGE
Lloh9:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_Hunk_Alloc
Lloh11:
	adrp	x8, _cm@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
	str	x0, [x8]
	str	w23, [x8, #8]
	cmp	w22, #4
	b.lt	LBB0_5
; %bb.3:
	mov	x19, x0
	add	x20, x21, x20
	cmp	w23, #1
	csinc	w21, w23, wzr, gt
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #4
	bl	_LittleLong
	str	w0, [x19], #4
	subs	w21, w21, #1
	b.ne	LBB0_4
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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	_h_high,4,2                     ; @h_high
	.comm	_cm,16,3                        ; @cm
.subsections_via_symbols
