	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExpandGamePath                 ## -- Begin function ExpandGamePath
	.p2align	4, 0x90
_ExpandGamePath:                        ## @ExpandGamePath
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_qdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_2:
	movb	(%rbx), %al
	cmpb	$47, %al
	je	LBB0_5
## %bb.3:
	cmpb	$92, %al
	je	LBB0_5
## %bb.4:
	cmpb	$58, 1(%rbx)
	jne	LBB0_6
LBB0_5:
	leaq	_ExpandGamePath.full(%rip), %rdi
	movq	%rbx, %rsi
	callq	_strcpy
LBB0_7:
	leaq	_ExpandGamePath.full(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_gamedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	_ExpandGamePath.full(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	callq	_sprintf
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ExpandGamePath.full,1024,4 ## @ExpandGamePath.full
	.comm	_qdir,8,3                       ## @qdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ExpandGamePath called without qdir set"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

	.comm	_gamedir,8,3                    ## @gamedir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExpandGamePath                 ; -- Begin function ExpandGamePath
	.p2align	2
_ExpandGamePath:                        ; @ExpandGamePath
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _qdir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qdir@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
	ldrb	w8, [x19]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #92
	b.eq	LBB0_5
; %bb.4:
	ldrb	w8, [x19, #1]
	cmp	w8, #58
	b.ne	LBB0_7
LBB0_5:
Lloh5:
	adrp	x0, _ExpandGamePath.full@PAGE
Lloh6:
	add	x0, x0, _ExpandGamePath.full@PAGEOFF
	mov	x1, x19
	bl	_strcpy
LBB0_6:
Lloh7:
	adrp	x0, _ExpandGamePath.full@PAGE
Lloh8:
	add	x0, x0, _ExpandGamePath.full@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _gamedir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gamedir@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
Lloh12:
	adrp	x0, _ExpandGamePath.full@PAGE
Lloh13:
	add	x0, x0, _ExpandGamePath.full@PAGEOFF
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_sprintf
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ExpandGamePath.full,1024,0 ; @ExpandGamePath.full
	.comm	_qdir,8,3                       ; @qdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ExpandGamePath called without qdir set"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

	.comm	_gamedir,8,3                    ; @gamedir
.subsections_via_symbols
