	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_LoadNodesAndLeafs
_R_LoadNodesAndLeafs:                   ## @R_LoadNodesAndLeafs
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_fileBase@GOTPCREL(%rip), %rax
	movq	8(%rdi), %r13
	addq	(%rax), %r13
	movl	(%rdi), %r14d
	testb	$31, %r14b
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	testb	$31, %al
	je	LBB0_3
LBB0_2:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_DROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_s_worldData@GOTPCREL(%rip), %rcx
	movl	32(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	callq	*8(%rax)
	movl	(%rbx), %r14d
	movl	(%r15), %eax
LBB0_3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ebx
	sarl	$5, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	sarl	$5, %ecx
	movq	_ri@GOTPCREL(%rip), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rbx), %r12d
	leal	(,%r12,8), %ecx
	leal	(%rcx,%rcx,8), %edi
	movq	_h_low@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	%rax, %r15
	movq	_s_worldData@GOTPCREL(%rip), %rax
	movq	%r15, 16(%rax)
	movl	%r12d, (%rax)
	movl	%ebx, 4(%rax)
	cmpl	$32, %r14d
	jl	LBB0_12
## %bb.4:
	movslq	%ebx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ebx
	movl	$1, %r12d
	cmovgel	%ebx, %r12d
	shlq	$5, %r12
	addq	$24, %r13
	xorl	%r14d, %r14d
	movq	_s_worldData@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cltq
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rax,8), %rax
	leaq	(%rcx,%rax,8), %rax
	movq	48(%r15), %rcx
	movq	%rax, 8(%rcx)
	addq	$72, %r15
	addq	$32, %r14
	cmpl	%r14d, %r12d
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	40(%r15), %rcx
	movq	%rax, (%rcx)
	movq	-8(%r13,%r14), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	32(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r13,%r14), %rax
	movl	4(%rax), %edi
	callq	_LittleLong
	movq	40(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	-8(%r13,%r14), %rax
	movl	4(%rax), %edi
	callq	_LittleLong
	movq	32(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r13,%r14), %rax
	movl	8(%rax), %edi
	callq	_LittleLong
	movq	40(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	-8(%r13,%r14), %rax
	movl	8(%rax), %edi
	callq	_LittleLong
	movq	32(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	-16(%r13,%r14), %edi
	callq	_LittleLong
	cltq
	addq	24(%rbx), %rax
	movq	%rax, 64(%r15)
	movq	_CONTENTS_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	-24(%r13,%r14), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	16(%rbx), %rcx
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cltq
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rdx,8), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	movl	%eax, %eax
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	xorq	%rdx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rax,8), %rax
	leaq	(%rcx,%rax,8), %rax
	movq	48(%r15), %rcx
	movq	%rax, (%rcx)
	movq	-24(%r13,%r14), %rax
	movl	4(%rax), %edi
	callq	_LittleLong
	movq	16(%rbx), %rcx
	testl	$-2147483648, %eax              ## imm = 0x80000000
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rdx,8), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	movl	%eax, %eax
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	xorq	%rdx, %rax
	jmp	LBB0_11
LBB0_12:
	cmpl	$32, -44(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_17
## %bb.13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_fileBase@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$2, %edx
	movl	$1, %r14d
	cmovgel	%edx, %r14d
	shlq	$5, %r14
	addq	$40, %r15
	leaq	(%rax,%rcx), %r12
	addq	$24, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-20(%r12,%rbx), %edi
	callq	_LittleLong
	movq	%rax, -24(%r15)
	movl	-24(%r12,%rbx), %edi
	callq	_LittleLong
	movq	%rax, -32(%r15)
	addq	$32, %rbx
	addq	$72, %r15
	cmpl	%ebx, %r14d
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	-8(%r12,%rbx), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	-8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r12,%rbx), %rax
	movl	4(%rax), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	-8(%r12,%rbx), %rax
	movl	4(%rax), %edi
	callq	_LittleLong
	movq	-8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r12,%rbx), %rax
	movl	8(%rax), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	-8(%r12,%rbx), %rax
	movl	8(%rax), %edi
	callq	_LittleLong
	movq	-8(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	-12(%r12,%rbx), %edi
	callq	_LittleLong
	movl	%eax, -40(%r15)
	movl	-16(%r12,%rbx), %edi
	callq	_LittleLong
	movq	%rax, -16(%r15)
	movl	-40(%r15), %eax
	movq	_s_worldData@GOTPCREL(%rip), %rcx
	cmpl	8(%rcx), %eax
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%eax
	movq	_s_worldData@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_16
LBB0_17:
	movq	_s_worldData@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_SetParent                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fileBase,8,3                   ## @fileBase
	.comm	_ri,16,3                        ## @ri
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LoadMap: funny lump size in %s"

	.comm	_s_worldData,40,3               ## @s_worldData
	.comm	_h_low,4,2                      ## @h_low
	.comm	_CONTENTS_NODE,4,2              ## @CONTENTS_NODE
	.no_dead_strip	_R_LoadNodesAndLeafs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_LoadNodesAndLeafs
_R_LoadNodesAndLeafs:                   ; @R_LoadNodesAndLeafs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x28, _fileBase@GOTPAGE
Lloh1:
	ldr	x28, [x28, _fileBase@GOTPAGEOFF]
	ldr	x22, [x28]
	ldr	x24, [x0, #8]
	ldr	w25, [x0]
Lloh2:
	adrp	x26, _ri@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ri@GOTPAGEOFF]
Lloh4:
	adrp	x21, _s_worldData@GOTPAGE
Lloh5:
	ldr	x21, [x21, _s_worldData@GOTPAGEOFF]
	tst	w25, #0x1f
	b.ne	LBB0_2
; %bb.1:
	ldr	w23, [x19]
	tst	w23, #0x1f
	b.eq	LBB0_3
LBB0_2:
	ldr	x8, [x26, #8]
Lloh6:
	adrp	x9, _ERR_DROP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERR_DROP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldr	w2, [x21, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	ldr	w25, [x20]
	ldr	w23, [x19]
LBB0_3:
	asr	w27, w25, #5
	asr	w20, w23, #5
	ldr	x8, [x26]
	add	w26, w20, w27
	add	w9, w26, w26, lsl #3
	lsl	w0, w9, #3
Lloh11:
	adrp	x9, _h_low@GOTPAGE
Lloh12:
	ldr	x9, [x9, _h_low@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	blr	x8
	str	x0, [x21, #16]
	stp	w26, w27, [x21]
	cmp	w25, #32
	b.lt	LBB0_7
; %bb.4:
	add	x8, x24, x22
	sxtw	x24, w27
	cmp	w27, #1
	csinc	w25, w27, wzr, gt
	add	x26, x8, #16
	add	x27, x0, #32
Lloh14:
	adrp	x28, _CONTENTS_NODE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _CONTENTS_NODE@GOTPAGEOFF]
	mov	w22, #72
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x27, #8]
	str	x0, [x8]
	ldr	x8, [x26]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x27]
	str	x0, [x8]
	ldr	x8, [x26, #8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x27, #8]
	str	x0, [x8, #8]
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x27]
	str	x0, [x8, #8]
	ldr	x8, [x26, #8]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldr	x8, [x27, #8]
	str	x0, [x8, #16]
	ldr	x8, [x26]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldr	x8, [x27]
	str	x0, [x8, #16]
	ldur	w0, [x26, #-8]
	bl	_LittleLong
	ldr	x8, [x21, #24]
	add	x8, x8, w0, sxtw
	str	x8, [x27, #32]
	ldr	w8, [x28]
	str	w8, [x27, #24]
	ldur	x8, [x26, #-16]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x21, #16]
	mvn	w9, w0
	madd	x10, x24, x22, x8
	umaddl	x9, w9, w22, x10
	smaddl	x8, w0, w22, x8
	tst	w0, #0x80000000
	csel	x8, x9, x8, ne
	ldr	x9, [x27, #16]
	str	x8, [x9]
	ldur	x8, [x26, #-16]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x21, #16]
	smaddl	x9, w0, w22, x8
	mvn	w10, w0
	madd	x8, x24, x22, x8
	umaddl	x8, w10, w22, x8
	tst	w0, #0x80000000
	csel	x8, x9, x8, eq
	ldr	x9, [x27, #16]
	str	x8, [x9, #8]
	add	x26, x26, #32
	add	x27, x27, #72
	subs	w25, w25, #1
	b.ne	LBB0_5
; %bb.6:
	sub	x0, x27, #32
Lloh16:
	adrp	x28, _fileBase@GOTPAGE
Lloh17:
	ldr	x28, [x28, _fileBase@GOTPAGEOFF]
LBB0_7:
	cmp	w23, #32
	b.lt	LBB0_12
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x9, [x28]
	add	x8, x8, x9
	cmp	w20, #1
	csinc	w19, w20, wzr, gt
	add	x20, x0, #40
	add	x22, x8, #24
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldur	w0, [x22, #-20]
	bl	_LittleLong
	stur	x0, [x20, #-24]
	ldur	w0, [x22, #-24]
	bl	_LittleLong
	stur	x0, [x20, #-32]
	add	x20, x20, #72
	add	x22, x22, #32
	subs	w19, w19, #1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x20]
	str	x0, [x8]
	ldur	x8, [x22, #-8]
	ldr	w0, [x8]
	bl	_LittleLong
	ldur	x8, [x20, #-8]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldur	x8, [x22, #-8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldur	x8, [x20, #-8]
	str	x0, [x8, #8]
	ldr	x8, [x22]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldr	x8, [x20]
	str	x0, [x8, #16]
	ldur	x8, [x22, #-8]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldur	x8, [x20, #-8]
	str	x0, [x8, #16]
	ldur	w0, [x22, #-12]
	bl	_LittleLong
	stur	w0, [x20, #-40]
	ldur	w0, [x22, #-16]
	bl	_LittleLong
	stur	x0, [x20, #-16]
	ldur	w8, [x20, #-40]
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_9
LBB0_12:
	ldr	x0, [x21, #16]
	mov	x1, #0
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_R_SetParent
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_fileBase,8,3                   ; @fileBase
	.comm	_ri,16,3                        ; @ri
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadMap: funny lump size in %s"

	.comm	_s_worldData,40,3               ; @s_worldData
	.comm	_h_low,4,2                      ; @h_low
	.comm	_CONTENTS_NODE,4,2              ; @CONTENTS_NODE
	.no_dead_strip	_R_LoadNodesAndLeafs
.subsections_via_symbols
