	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_LoadDll                    ## -- Begin function Sys_LoadDll
	.p2align	4, 0x90
_Sys_LoadDll:                           ## @Sys_LoadDll
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_Sys_DllExtension
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	%r12, %rdi
	callq	_Sys_LoadLibrary
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_4:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%eax, %eax
	callq	_Sys_BinaryPath
	movq	%rax, %r14
	cmpb	$0, (%rax)
	leaq	L_.str.2(%rip), %r13
	cmoveq	%r13, %r14
	movq	_PATH_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	movq	%r12, %r9
	callq	_Com_sprintf
	cltq
	cmpq	%r15, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_5
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	%rbx, %rdi
	callq	_Sys_LoadLibrary
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_7:
	movq	%r13, %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	_Cvar_VariableString
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r13
	cmpb	$0, (%rax)
	jne	LBB0_10
LBB0_9:
	movq	%rbx, %r13
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_FS_FilenameCompare
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_PATH_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r13, %rcx
	movq	%r12, %r9
	callq	_Com_sprintf
	cltq
	cmpq	%r15, %rax
	jae	LBB0_12
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	%rbx, %rdi
	callq	_Sys_LoadLibrary
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_15:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Refusing to attempt to load library \"%s\": Extension not allowed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Trying to load \"%s\"...\n"

	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
L_.str.2:                               ## @.str.2
	.asciz	"."

L_.str.3:                               ## @.str.3
	.asciz	"%s%c%s"

	.comm	_PATH_SEP,4,2                   ## @PATH_SEP
L_.str.4:                               ## @.str.4
	.asciz	"Trying to load \"%s\" from \"%s\"...\n"

L_.str.5:                               ## @.str.5
	.asciz	"Skipping trying to load \"%s\" from \"%s\", file name is too long.\n"

L_.str.6:                               ## @.str.6
	.asciz	"fs_basepath"

L_.str.7:                               ## @.str.7
	.asciz	"Loading \"%s\" failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_LoadDll                    ; -- Begin function Sys_LoadDll
	.p2align	2
_Sys_LoadDll:                           ; @Sys_LoadDll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_Sys_DllExtension
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	mov	x0, x19
	bl	_Sys_LoadLibrary
	cbnz	x0, LBB0_16
LBB0_3:
	mov	x24, sp
Lloh5:
	adrp	x8, _MAX_OSPATH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_OSPATH@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x9, x21
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_Sys_BinaryPath
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	ldrb	w9, [x0]
	cmp	w9, #0
	csel	x22, x8, x0, eq
Lloh12:
	adrp	x25, _PATH_SEP@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PATH_SEP@GOTPAGEOFF]
	ldr	w4, [x25]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x5, x19
	bl	_Com_sprintf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	sp, sp, #16
	cmp	x8, x21
	b.hs	LBB0_6
; %bb.4:
	str	x22, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	add	sp, sp, #16
	mov	x0, x20
	bl	_Sys_LoadLibrary
	cbnz	x0, LBB0_15
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	mov	x0, #0
	b	LBB0_16
LBB0_6:
	str	x22, [sp]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	add	sp, sp, #16
LBB0_7:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Cvar_VariableString
	cbz	x0, LBB0_9
; %bb.8:
	mov	x23, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_10
LBB0_9:
Lloh24:
	adrp	x23, l_.str.2@PAGE
Lloh25:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x22
	mov	x1, x23
	bl	_FS_FilenameCompare
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w4, [x25]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x5, x19
	bl	_Com_sprintf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	sp, sp, #16
	cmp	x8, x21
	b.hs	LBB0_13
; %bb.12:
	str	x23, [sp]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	add	sp, sp, #16
	mov	x0, x20
	bl	_Sys_LoadLibrary
	cbnz	x0, LBB0_15
	b	LBB0_14
LBB0_13:
	str	x23, [sp]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	add	sp, sp, #16
LBB0_14:
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	mov	x0, #0
LBB0_15:
	mov	sp, x24
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Refusing to attempt to load library \"%s\": Extension not allowed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Trying to load \"%s\"...\n"

	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
l_.str.2:                               ; @.str.2
	.asciz	"."

l_.str.3:                               ; @.str.3
	.asciz	"%s%c%s"

	.comm	_PATH_SEP,4,2                   ; @PATH_SEP
l_.str.4:                               ; @.str.4
	.asciz	"Trying to load \"%s\" from \"%s\"...\n"

l_.str.5:                               ; @.str.5
	.asciz	"Skipping trying to load \"%s\" from \"%s\", file name is too long.\n"

l_.str.6:                               ; @.str.6
	.asciz	"fs_basepath"

l_.str.7:                               ; @.str.7
	.asciz	"Loading \"%s\" failed\n"

.subsections_via_symbols
