	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_changeWindowLoc             ## -- Begin function AM_changeWindowLoc
	.p2align	4, 0x90
_AM_changeWindowLoc:                    ## @AM_changeWindowLoc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_m_paninc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	%rdx, %rcx
	orq	%rax, %rcx
	je	LBB0_2
## %bb.1:
	movq	_followplayer@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_MAXINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_f_oldloc@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
LBB0_2:
	movq	_m_x@GOTPCREL(%rip), %r10
	addq	(%r10), %rdx
	movq	_m_y@GOTPCREL(%rip), %r8
	addq	(%r8), %rax
	movq	%rdx, (%r10)
	movq	%rax, (%r8)
	movq	_m_w@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r9
	movl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%r9d, %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	leaq	(%rdx,%rsi), %rdi
	movq	_max_x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	jg	LBB0_4
## %bb.3:
	movq	_min_x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_5
LBB0_4:
	subq	%rsi, %rcx
	movq	%rcx, (%r10)
	movq	%rcx, %rdx
LBB0_5:
	movq	_m_h@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %r10
	leaq	(%rax,%r10), %rsi
	movq	_max_y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rsi
	jg	LBB0_7
## %bb.6:
	movq	_min_y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_8
LBB0_7:
	subq	%r10, %rcx
	movq	%rcx, (%r8)
	movq	%rcx, %rax
LBB0_8:
	addq	%r9, %rdx
	movq	_m_x2@GOTPCREL(%rip), %rcx
	movq	%rdx, (%rcx)
	addq	%rdi, %rax
	movq	_m_y2@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m_paninc,16,3                  ## @m_paninc
	.comm	_followplayer,8,3               ## @followplayer
	.comm	_MAXINT,4,2                     ## @MAXINT
	.comm	_f_oldloc,4,2                   ## @f_oldloc
	.comm	_m_x,8,3                        ## @m_x
	.comm	_m_y,8,3                        ## @m_y
	.comm	_m_w,4,2                        ## @m_w
	.comm	_max_x,8,3                      ## @max_x
	.comm	_min_x,8,3                      ## @min_x
	.comm	_m_h,4,2                        ## @m_h
	.comm	_max_y,8,3                      ## @max_y
	.comm	_min_y,8,3                      ## @min_y
	.comm	_m_x2,8,3                       ## @m_x2
	.comm	_m_y2,8,3                       ## @m_y2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_changeWindowLoc             ; -- Begin function AM_changeWindowLoc
	.p2align	2
_AM_changeWindowLoc:                    ; @AM_changeWindowLoc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _m_paninc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_paninc@GOTPAGEOFF]
	ldp	x9, x10, [x8]
	orr	x8, x9, x10
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _followplayer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _followplayer@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _MAXINT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAXINT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x11, _f_oldloc@GOTPAGE
Lloh9:
	ldr	x11, [x11, _f_oldloc@GOTPAGEOFF]
Lloh10:
	str	w8, [x11]
LBB0_2:
Lloh11:
	adrp	x12, _m_x@GOTPAGE
Lloh12:
	ldr	x12, [x12, _m_x@GOTPAGEOFF]
	ldr	x11, [x12]
Lloh13:
	adrp	x8, _m_w@GOTPAGE
Lloh14:
	ldr	x8, [x8, _m_w@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	cmp	w8, #0
	cinc	w13, w8, lt
	sbfx	x13, x13, #1, #31
	add	x9, x11, x9
	add	x15, x9, x13
	str	x9, [x12]
Lloh16:
	adrp	x11, _m_y@GOTPAGE
Lloh17:
	ldr	x11, [x11, _m_y@GOTPAGEOFF]
	ldr	x14, [x11]
	add	x10, x14, x10
	str	x10, [x11]
Lloh18:
	adrp	x14, _max_x@GOTPAGE
Lloh19:
	ldr	x14, [x14, _max_x@GOTPAGEOFF]
Lloh20:
	ldr	x14, [x14]
	cmp	x15, x14
	b.gt	LBB0_4
; %bb.3:
Lloh21:
	adrp	x14, _min_x@GOTPAGE
Lloh22:
	ldr	x14, [x14, _min_x@GOTPAGEOFF]
Lloh23:
	ldr	x14, [x14]
	cmp	x15, x14
	b.ge	LBB0_5
LBB0_4:
	sub	x9, x14, x13
	str	x9, [x12]
LBB0_5:
Lloh24:
	adrp	x12, _m_h@GOTPAGE
Lloh25:
	ldr	x12, [x12, _m_h@GOTPAGEOFF]
Lloh26:
	ldrsw	x12, [x12]
	cmp	w12, #0
	cinc	w13, w12, lt
	sbfx	x13, x13, #1, #31
Lloh27:
	adrp	x14, _max_y@GOTPAGE
Lloh28:
	ldr	x14, [x14, _max_y@GOTPAGEOFF]
Lloh29:
	ldr	x14, [x14]
	add	x15, x10, x13
	cmp	x15, x14
	b.gt	LBB0_7
; %bb.6:
Lloh30:
	adrp	x14, _min_y@GOTPAGE
Lloh31:
	ldr	x14, [x14, _min_y@GOTPAGEOFF]
Lloh32:
	ldr	x14, [x14]
	cmp	x15, x14
	b.ge	LBB0_8
LBB0_7:
	sub	x10, x14, x13
	str	x10, [x11]
LBB0_8:
Lloh33:
	adrp	x11, _m_x2@GOTPAGE
Lloh34:
	ldr	x11, [x11, _m_x2@GOTPAGEOFF]
	add	x8, x9, x8
Lloh35:
	str	x8, [x11]
	add	x8, x10, x12
Lloh36:
	adrp	x9, _m_y2@GOTPAGE
Lloh37:
	ldr	x9, [x9, _m_y2@GOTPAGEOFF]
Lloh38:
	str	x8, [x9]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_m_paninc,16,3                  ; @m_paninc
	.comm	_followplayer,8,3               ; @followplayer
	.comm	_MAXINT,4,2                     ; @MAXINT
	.comm	_f_oldloc,4,2                   ; @f_oldloc
	.comm	_m_x,8,3                        ; @m_x
	.comm	_m_y,8,3                        ; @m_y
	.comm	_m_w,4,2                        ; @m_w
	.comm	_max_x,8,3                      ; @max_x
	.comm	_min_x,8,3                      ; @min_x
	.comm	_m_h,4,2                        ; @m_h
	.comm	_max_y,8,3                      ; @max_y
	.comm	_min_y,8,3                      ; @min_y
	.comm	_m_x2,8,3                       ; @m_x2
	.comm	_m_y2,8,3                       ; @m_y2
.subsections_via_symbols
