	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_LoadSegs                     ## -- Begin function P_LoadSegs
	.p2align	4, 0x90
_P_LoadSegs:                            ## @P_LoadSegs
	.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
	movl	%edi, %r14d
	callq	_W_LumpLength
	cltq
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	movq	_numsegs@GOTPCREL(%rip), %rbx
	movl	%edx, (%rbx)
	imull	$56, %edx, %edi
	movq	_PU_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	_segs@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	imull	$56, (%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_PU_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_W_CacheLumpNum
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.1:
	movq	(%r15), %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	addq	$20, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	$1, %eax
	cltq
	movq	(%rdx,%rax,8), %rax
	movq	(%rcx,%rax,8), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	incl	%r12d
	addq	$56, %rbx
	addq	$24, %r13
	movq	_numsegs@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_vertexes@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movl	(%r13), %edi
	callq	_SHORT
	cltq
	leaq	(%r15,%rax,4), %rax
	movq	%rax, 48(%rbx)
	movq	(%r14), %r15
	movl	-4(%r13), %edi
	callq	_SHORT
	cltq
	leaq	(%r15,%rax,4), %rax
	movq	%rax, 40(%rbx)
	movl	-8(%r13), %edi
	callq	_SHORT
	shll	$16, %eax
	movl	%eax, (%rbx)
	movl	-12(%r13), %edi
	callq	_SHORT
	shll	$16, %eax
	movl	%eax, 4(%rbx)
	movl	-16(%r13), %edi
	callq	_SHORT
	movq	_lines@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movslq	%eax, %r14
	shlq	$4, %r14
	leaq	(%r15,%r14), %rax
	movq	%rax, 32(%rbx)
	movl	-20(%r13), %edi
	callq	_SHORT
	movq	_sides@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%r14), %rdx
	movslq	%eax, %rsi
	movq	(%rdx,%rsi,8), %rsi
	leaq	(%rcx,%rsi,8), %rdi
	movq	%rdi, 24(%rbx)
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, 16(%rbx)
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 8(%r15,%r14)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Z_Free                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_numsegs,4,2                    ## @numsegs
	.comm	_PU_LEVEL,4,2                   ## @PU_LEVEL
	.comm	_segs,8,3                       ## @segs
	.comm	_PU_STATIC,4,2                  ## @PU_STATIC
	.comm	_vertexes,8,3                   ## @vertexes
	.comm	_lines,8,3                      ## @lines
	.comm	_sides,8,3                      ## @sides
	.comm	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_LoadSegs                     ; -- Begin function P_LoadSegs
	.p2align	2
_P_LoadSegs:                            ; @P_LoadSegs
	.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, x0
	bl	_W_LumpLength
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	lsr	x8, x8, #4
Lloh0:
	adrp	x20, _numsegs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _numsegs@GOTPAGEOFF]
	str	w8, [x20]
	mov	w21, #56
	mul	w0, w8, w21
Lloh2:
	adrp	x8, _PU_LEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PU_LEVEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_Z_Malloc
Lloh5:
	adrp	x22, _segs@GOTPAGE
Lloh6:
	ldr	x22, [x22, _segs@GOTPAGEOFF]
	str	x0, [x22]
	ldr	w8, [x20]
	mul	w2, w8, w21
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x8, _PU_STATIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PU_STATIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_W_CacheLumpNum
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w21, #0
	ldr	x8, [x22]
	add	x22, x8, #24
	add	x23, x19, #12
Lloh10:
	adrp	x24, _vertexes@GOTPAGE
Lloh11:
	ldr	x24, [x24, _vertexes@GOTPAGEOFF]
Lloh12:
	adrp	x25, _lines@GOTPAGE
Lloh13:
	ldr	x25, [x25, _lines@GOTPAGEOFF]
Lloh14:
	adrp	x26, _sides@GOTPAGE
Lloh15:
	ldr	x26, [x26, _sides@GOTPAGEOFF]
Lloh16:
	adrp	x27, _ML_TWOSIDED@GOTPAGE
Lloh17:
	ldr	x27, [x27, _ML_TWOSIDED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x10, w0
	eor	x10, x10, #0x1
	ldr	x9, [x9, x10, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	stur	x8, [x22, #-16]
	add	w21, w21, #1
	ldr	w8, [x20]
	add	x22, x22, #56
	add	x23, x23, #24
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x24]
	ldr	w0, [x23, #8]
	bl	_SHORT
	add	x8, x28, w0, sxtw #2
	str	x8, [x22, #24]
	ldr	x28, [x24]
	ldr	w0, [x23, #4]
	bl	_SHORT
	add	x8, x28, w0, sxtw #2
	str	x8, [x22, #16]
	ldr	w0, [x23]
	bl	_SHORT
	lsl	w8, w0, #16
	stur	w8, [x22, #-24]
	ldur	w0, [x23, #-4]
	bl	_SHORT
	lsl	w8, w0, #16
	stur	w8, [x22, #-20]
	ldur	w0, [x23, #-8]
	bl	_SHORT
	ldr	x8, [x25]
	add	x28, x8, w0, sxtw #4
	str	x28, [x22, #8]
	ldur	w0, [x23, #-12]
	bl	_SHORT
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x26]
	ldr	x9, [x28]
	ldr	x10, [x9, w0, sxtw #3]
	lsl	x10, x10, #3
	add	x11, x8, x10
	str	x11, [x22]
	ldr	x10, [x8, x10]
	stur	x10, [x22, #-8]
	ldr	w10, [x28, #8]
	ldr	w11, [x27]
	tst	w11, w10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	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	_Z_Free
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_numsegs,4,2                    ; @numsegs
	.comm	_PU_LEVEL,4,2                   ; @PU_LEVEL
	.comm	_segs,8,3                       ; @segs
	.comm	_PU_STATIC,4,2                  ; @PU_STATIC
	.comm	_vertexes,8,3                   ; @vertexes
	.comm	_lines,8,3                      ; @lines
	.comm	_sides,8,3                      ; @sides
	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
.subsections_via_symbols
