	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AASOuputFile                   ## -- Begin function AASOuputFile
	.p2align	4, 0x90
_AASOuputFile:                          ## @AASOuputFile
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_AppendPathSeperator
	movl	8(%r14), %r14d
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	movl	%r14d, %edi
	callq	_ExtractFileBase
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcat                         ## TAILCALL
LBB0_3:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_ExtractFileExtension
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_stricmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$46, -1(%rax,%rbx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_15
LBB0_6:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$92, -1(%rax,%rbx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$47, -1(%rax,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_access
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_CreatePath
LBB0_13:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_AppendPathSeperator
	movl	8(%r14), %r14d
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	movl	%r14d, %edi
	callq	_ExtractFileBase
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
LBB0_19:
	movq	%rbx, %rdi
	callq	_strcat
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".aas"

L_.str.1:                               ## @.str.1
	.asciz	"pk3"

L_.str.2:                               ## @.str.2
	.asciz	"pak"

L_.str.3:                               ## @.str.3
	.asciz	"sin"

L_.str.4:                               ## @.str.4
	.asciz	"maps"

L_.str.5:                               ## @.str.5
	.asciz	"aas"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AASOuputFile                   ; -- Begin function AASOuputFile
	.p2align	2
_AASOuputFile:                          ; @AASOuputFile
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x1
	bl	_strlen
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_strcpy
	ldr	w1, [x23]
	mov	x0, x19
	bl	_AppendPathSeperator
	ldr	w20, [x20, #8]
	mov	x0, x19
	bl	_strlen
	add	x1, x19, w0, sxtw
	mov	x0, x20
	bl	_ExtractFileBase
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.2:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	sub	sp, x29, #48
	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
	b	_strcat
LBB0_3:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_ExtractFileExtension
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_stricmp
	cbz	w0, LBB0_10
; %bb.4:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_stricmp
	cbz	w0, LBB0_10
; %bb.5:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_stricmp
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_strcpy
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strlen
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #46
	b.eq	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	sturb	wzr, [x8, #-1]
	b	LBB0_7
LBB0_10:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_strcpy
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strlen
	cbz	w0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #92
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	sturb	wzr, [x8, #-1]
	b	LBB0_11
LBB0_15:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strcat
	mov	x0, x19
	mov	w1, #4
	bl	_access
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_CreatePath
LBB0_17:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_AppendPathSeperator
	ldr	w20, [x20, #8]
	mov	x0, x19
	bl	_strlen
	add	x1, x19, w0, sxtw
	mov	x0, x20
	bl	_ExtractFileBase
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_strcat
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #48
	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
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".aas"

l_.str.1:                               ; @.str.1
	.asciz	"pk3"

l_.str.2:                               ; @.str.2
	.asciz	"pak"

l_.str.3:                               ; @.str.3
	.asciz	"sin"

l_.str.4:                               ; @.str.4
	.asciz	"maps"

l_.str.5:                               ; @.str.5
	.asciz	"aas"

.subsections_via_symbols
