	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function AM_LevelInit
LCPI0_0:
	.quad	0x3fe6666666666666              ## double 0.69999999999999996
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AM_LevelInit
	.p2align	4, 0x90
_AM_LevelInit:                          ## @AM_LevelInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_leveljuststarted@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_f_y@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_f_x@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_finit_width@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_f_w@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_finit_height@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_f_h@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_AM_clearMarks
	xorl	%eax, %eax
	callq	_AM_findMinMaxBoundaries
	movq	_min_scale_mtof@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movq	_FRACUNIT@GOTPCREL(%rip), %rbx
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_FixedDiv
	movq	_scale_mtof@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_max_scale_mtof@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	jge	LBB0_2
## %bb.1:
	cvttsd2si	(%r14), %eax
	movl	%eax, (%rcx)
LBB0_2:
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_FixedDiv
	movq	_scale_ftom@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_leveljuststarted,8,3           ## @leveljuststarted
	.comm	_f_y,8,3                        ## @f_y
	.comm	_f_x,8,3                        ## @f_x
	.comm	_finit_width,4,2                ## @finit_width
	.comm	_f_w,4,2                        ## @f_w
	.comm	_finit_height,4,2               ## @finit_height
	.comm	_f_h,4,2                        ## @f_h
	.comm	_min_scale_mtof,8,3             ## @min_scale_mtof
	.comm	_FRACUNIT,8,3                   ## @FRACUNIT
	.comm	_scale_mtof,4,2                 ## @scale_mtof
	.comm	_max_scale_mtof,4,2             ## @max_scale_mtof
	.comm	_scale_ftom,8,3                 ## @scale_ftom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_LevelInit                   ; -- Begin function AM_LevelInit
	.p2align	2
_AM_LevelInit:                          ; @AM_LevelInit
	.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
Lloh0:
	adrp	x8, _leveljuststarted@GOTPAGE
Lloh1:
	ldr	x8, [x8, _leveljuststarted@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _f_y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _f_y@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, _f_x@GOTPAGE
Lloh7:
	ldr	x8, [x8, _f_x@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _finit_width@GOTPAGE
Lloh10:
	ldr	x8, [x8, _finit_width@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _f_w@GOTPAGE
Lloh13:
	ldr	x9, [x9, _f_w@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
Lloh15:
	adrp	x8, _finit_height@GOTPAGE
Lloh16:
	ldr	x8, [x8, _finit_height@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _f_h@GOTPAGE
Lloh19:
	ldr	x9, [x9, _f_h@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	bl	_AM_clearMarks
	bl	_AM_findMinMaxBoundaries
Lloh21:
	adrp	x20, _min_scale_mtof@GOTPAGE
Lloh22:
	ldr	x20, [x20, _min_scale_mtof@GOTPAGEOFF]
	ldr	d0, [x20]
Lloh23:
	adrp	x19, _FRACUNIT@GOTPAGE
Lloh24:
	ldr	x19, [x19, _FRACUNIT@GOTPAGEOFF]
	ldr	d1, [x19]
	mov	x8, #7378697629483820646
	movk	x8, #16358, lsl #48
	fmov	d2, x8
	fmul	d1, d1, d2
	fcvtzs	w0, d1
	bl	_FixedDiv
Lloh25:
	adrp	x8, _scale_mtof@GOTPAGE
Lloh26:
	ldr	x8, [x8, _scale_mtof@GOTPAGEOFF]
	str	w0, [x8]
Lloh27:
	adrp	x9, _max_scale_mtof@GOTPAGE
Lloh28:
	ldr	x9, [x9, _max_scale_mtof@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ge	LBB0_2
; %bb.1:
	ldr	d0, [x20]
	fcvtzs	w0, d0
	str	w0, [x8]
LBB0_2:
	ldr	d0, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FixedDiv
Lloh30:
	adrp	x8, _scale_ftom@GOTPAGE
Lloh31:
	ldr	x8, [x8, _scale_ftom@GOTPAGEOFF]
Lloh32:
	str	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_leveljuststarted,8,3           ; @leveljuststarted
	.comm	_f_y,8,3                        ; @f_y
	.comm	_f_x,8,3                        ; @f_x
	.comm	_finit_width,4,2                ; @finit_width
	.comm	_f_w,4,2                        ; @f_w
	.comm	_finit_height,4,2               ; @finit_height
	.comm	_f_h,4,2                        ; @f_h
	.comm	_min_scale_mtof,8,3             ; @min_scale_mtof
	.comm	_FRACUNIT,8,3                   ; @FRACUNIT
	.comm	_scale_mtof,4,2                 ; @scale_mtof
	.comm	_max_scale_mtof,4,2             ; @max_scale_mtof
	.comm	_scale_ftom,8,3                 ; @scale_ftom
.subsections_via_symbols
