	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_W_Reload                       ## -- Begin function W_Reload
	.p2align	4, 0x90
_W_Reload:                              ## @W_Reload
	.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	_reloadname@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
LBB0_3:
	leaq	-80(%rbp), %rsi
	movl	%r14d, %edi
	movl	$32, %edx
	callq	_read
	movq	-56(%rbp), %rdi
	callq	_LONG
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_LONG
	movq	%rax, %r15
	movslq	%ebx, %r13
	movl	%r13d, %r12d
	shll	$5, %r12d
	movl	%r12d, %edi
	callq	_alloca
	movl	%r14d, %ebx
	movq	%rax, %r14
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_lseek
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_read
	movq	_reloadlump@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%eax, %ebx
	leaq	(%rax,%r13), %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_8
## %bb.4:
	movq	_lumpinfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r12
	addq	$8, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14,%r15,2), %rdi
	callq	_LONG
	movq	%rax, (%r12,%r15)
	movq	(%r14,%r15,2), %rdi
	callq	_LONG
	movq	%rax, -8(%r12,%r15)
	incl	%ebx
	movq	_reloadlump@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r13, %rax
	addq	$16, %r15
	cmpq	%rbx, %rax
	jbe	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_lumpcache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_Z_Free
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reloadname,4,2                 ## @reloadname
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"W_Reload: couldn't open %s"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_lumpinfo,8,3                   ## @lumpinfo
	.comm	_reloadlump,8,3                 ## @reloadlump
	.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_Reload                       ; -- Begin function W_Reload
	.p2align	2
_W_Reload:                              ; @W_Reload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x20, _reloadname@GOTPAGE
Lloh1:
	ldr	x20, [x20, _reloadname@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #32
	bl	_read
	ldr	x0, [sp, #24]
	bl	_LONG
	mov	x20, x0
	ldr	x0, [sp, #16]
	bl	_LONG
	mov	x21, x0
	sxtw	x23, w20
	lsl	w22, w20, #5
	mov	x0, x22
	bl	_alloca
	mov	x20, x0
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_lseek
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_read
Lloh13:
	adrp	x21, _reloadlump@GOTPAGE
Lloh14:
	ldr	x21, [x21, _reloadlump@GOTPAGEOFF]
	ldr	x8, [x21]
	and	x22, x8, #0xffffffff
	add	x9, x8, x23
	cmp	x9, x22
	b.ls	LBB0_8
; %bb.4:
Lloh15:
	adrp	x9, _lumpinfo@GOTPAGE
Lloh16:
	ldr	x9, [x9, _lumpinfo@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x20, x20, #8
	add	x8, x9, x8, lsl #4
	add	x24, x8, #8
Lloh18:
	adrp	x25, _lumpcache@GOTPAGE
Lloh19:
	ldr	x25, [x25, _lumpcache@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_LONG
	str	x0, [x24]
	ldur	x0, [x20, #-8]
	bl	_LONG
	stur	x0, [x24, #-8]
	add	w22, w22, #1
	ldr	x8, [x21]
	add	x20, x20, #32
	add	x24, x24, #16
	add	x8, x8, x23
	cmp	x8, x22
	b.ls	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_Z_Free
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_close
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_reloadname,4,2                 ; @reloadname
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"W_Reload: couldn't open %s"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_lumpinfo,8,3                   ; @lumpinfo
	.comm	_reloadlump,8,3                 ; @reloadlump
	.comm	_lumpcache,8,3                  ; @lumpcache
.subsections_via_symbols
