	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_W_CacheLumpNum                 ## -- Begin function W_CacheLumpNum
	.p2align	4, 0x90
_W_CacheLumpNum:                        ## @W_CacheLumpNum
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_numlumps@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_I_Error
LBB0_2:
	movq	_lumpcache@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%ebx, %r12
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movl	%r14d, %esi
	callq	_Z_ChangeTag
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %edi
	callq	_W_LumpLength
	leaq	(,%r12,8), %rdx
	addq	(%r15), %rdx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_Z_Malloc
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rsi
	movl	%ebx, %edi
	callq	_W_ReadLump
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numlumps,4,2                   ## @numlumps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"W_CacheLumpNum: %i >= numlumps"

	.comm	_lumpcache,8,3                  ## @lumpcache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_W_CacheLumpNum                 ; -- Begin function W_CacheLumpNum
	.p2align	2
_W_CacheLumpNum:                        ; @W_CacheLumpNum
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _numlumps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numlumps@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_I_Error
LBB0_2:
Lloh5:
	adrp	x21, _lumpcache@GOTPAGE
Lloh6:
	ldr	x21, [x21, _lumpcache@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x22, w19
	ldr	x0, [x8, w19, sxtw #3]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x20
	bl	_Z_ChangeTag
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_W_LumpLength
	ldr	x8, [x21]
	lsl	x23, x22, #3
	add	x2, x8, x23
	mov	x1, x20
	bl	_Z_Malloc
	ldr	x8, [x21]
	ldr	x1, [x8, x23]
	mov	x0, x19
	bl	_W_ReadLump
LBB0_5:
	ldr	x8, [x21]
	ldr	x0, [x8, x22, lsl #3]
	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	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_numlumps,4,2                   ; @numlumps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"W_CacheLumpNum: %i >= numlumps"

	.comm	_lumpcache,8,3                  ; @lumpcache
.subsections_via_symbols
