	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_Start                       ## -- Begin function AM_Start
	.p2align	4, 0x90
_AM_Start:                              ## @AM_Start
	.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	_stopped@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_AM_Stop
LBB0_2:
	movl	$0, (%rbx)
	movl	_AM_Start.lastlevel(%rip), %eax
	movq	_gamemap@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.3:
	movl	_AM_Start.lastepisode(%rip), %eax
	movq	_gameepisode@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_AM_LevelInit
	movl	(%rbx), %eax
	movl	%eax, _AM_Start.lastlevel(%rip)
	movq	_gameepisode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _AM_Start.lastepisode(%rip)
LBB0_5:
	xorl	%eax, %eax
	callq	_AM_initVariables
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AM_loadPics                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @AM_Start.lastlevel
_AM_Start.lastlevel:
	.long	4294967295                      ## 0xffffffff

	.p2align	2                               ## @AM_Start.lastepisode
_AM_Start.lastepisode:
	.long	4294967295                      ## 0xffffffff

	.comm	_stopped,4,2                    ## @stopped
	.comm	_gamemap,4,2                    ## @gamemap
	.comm	_gameepisode,4,2                ## @gameepisode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_Start                       ; -- Begin function AM_Start
	.p2align	2
_AM_Start:                              ; @AM_Start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _stopped@GOTPAGE
Lloh1:
	ldr	x19, [x19, _stopped@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_AM_Stop
LBB0_2:
	str	wzr, [x19]
Lloh2:
	adrp	x20, _gamemap@GOTPAGE
Lloh3:
	ldr	x20, [x20, _gamemap@GOTPAGEOFF]
	adrp	x19, _AM_Start.lastlevel@PAGE
	ldr	w8, [x19, _AM_Start.lastlevel@PAGEOFF]
	ldr	w9, [x20]
	adrp	x21, _AM_Start.lastepisode@PAGE
Lloh4:
	adrp	x22, _gameepisode@GOTPAGE
Lloh5:
	ldr	x22, [x22, _gameepisode@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, _AM_Start.lastepisode@PAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_5
LBB0_4:
	bl	_AM_LevelInit
	ldr	w8, [x20]
	str	w8, [x19, _AM_Start.lastlevel@PAGEOFF]
	ldr	w8, [x22]
	str	w8, [x21, _AM_Start.lastepisode@PAGEOFF]
LBB0_5:
	bl	_AM_initVariables
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AM_loadPics
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @AM_Start.lastlevel
_AM_Start.lastlevel:
	.long	4294967295                      ; 0xffffffff

	.p2align	2                               ; @AM_Start.lastepisode
_AM_Start.lastepisode:
	.long	4294967295                      ; 0xffffffff

	.comm	_stopped,4,2                    ; @stopped
	.comm	_gamemap,4,2                    ; @gamemap
	.comm	_gameepisode,4,2                ; @gameepisode
.subsections_via_symbols
