	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadPlanes                ## -- Begin function CMod_LoadPlanes
	.p2align	4, 0x90
_CMod_LoadPlanes:                       ## @CMod_LoadPlanes
	.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), %r14d
	testb	$15, %r14b
	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), %r14d
LBB0_2:
	movl	%r14d, %r13d
	sarl	$4, %r13d
	cmpl	$15, %r14d
	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:
	movq	_BOX_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Hunk_Alloc
	movq	%rax, %rbx
	movq	_cm@GOTPCREL(%rip), %rax
	movq	%rbx, 8(%rax)
	movl	%r13d, (%rax)
	cmpl	$16, %r14d
	jl	LBB0_7
## %bb.5:
	cmpl	$2, %r13d
	movl	$1, %r12d
	cmovgel	%r13d, %r12d
	shlq	$4, %r12
	addq	$8, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%r14, (%rax)
	shrq	$63, %r14
	movq	(%r15,%r13), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	shrq	$63, %rax
	leal	(%r14,%rax,2), %r14d
	movq	(%r15,%r13), %rax
	movl	8(%rax), %edi
	callq	_LittleFloat
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	shrq	$63, %rax
	leal	(%r14,%rax,4), %r14d
	movl	-8(%r15,%r13), %edi
	callq	_LittleFloat
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdi
	callq	_PlaneTypeForNormal
	movl	%eax, 12(%rbx)
	movl	%r14d, 8(%rbx)
	addq	$16, %r13
	addq	$24, %rbx
	cmpl	%r13d, %r12d
	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	"MOD_LoadBmodel: funny lump size"

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

	.comm	_BOX_PLANES,4,2                 ## @BOX_PLANES
	.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_LoadPlanes                ; -- Begin function CMod_LoadPlanes
	.p2align	2
_CMod_LoadPlanes:                       ; @CMod_LoadPlanes
	.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]
Lloh3:
	adrp	x24, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ERR_DROP@GOTPAGEOFF]
	tst	w22, #0xf
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	w22, [x19]
LBB0_2:
	asr	w23, w22, #4
	cmp	w22, #15
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_4:
Lloh9:
	adrp	x8, _BOX_PLANES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BOX_PLANES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w8, w8, w23
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
Lloh12:
	adrp	x8, _h_high@GOTPAGE
Lloh13:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_Hunk_Alloc
Lloh15:
	adrp	x8, _cm@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
	str	x0, [x8, #8]
	str	w23, [x8]
	cmp	w22, #16
	b.lt	LBB0_7
; %bb.5:
	mov	x19, x0
	add	x8, x21, x20
	cmp	w23, #1
	csinc	w20, w23, wzr, gt
	add	x21, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_LittleFloat
	ldr	x8, [x19]
	str	x0, [x8]
	lsr	x22, x0, #63
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x19]
	str	x0, [x8, #8]
	lsr	x8, x0, #62
	and	w8, w8, #0x2
	orr	w22, w8, w22
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x19]
	str	x0, [x8, #16]
	lsr	x8, x0, #61
	and	w8, w8, #0x4
	orr	w22, w8, w22
	ldur	w0, [x21, #-8]
	bl	_LittleFloat
	str	x0, [x19, #16]
	ldr	x0, [x19]
	bl	_PlaneTypeForNormal
	stp	w22, w0, [x19, #8]
	add	x21, x21, #16
	add	x19, x19, #24
	subs	w20, w20, #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	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	"MOD_LoadBmodel: funny lump size"

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

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