	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_activateNewScale            ## -- Begin function AM_activateNewScale
	.p2align	4, 0x90
_AM_activateNewScale:                   ## @AM_activateNewScale
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_m_w@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movq	_m_x@GOTPCREL(%rip), %r15
	addq	%rax, (%r15)
	movq	_m_h@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movq	_m_y@GOTPCREL(%rip), %r14
	addq	%rax, (%r14)
	movq	_f_w@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FTOM
	movl	%eax, (%rbx)
	movq	_f_h@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FTOM
	movl	%eax, (%r12)
	movslq	(%rbx), %rcx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movq	(%r15), %rsi
	subq	%rdx, %rsi
	movq	%rsi, (%r15)
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movq	(%r14), %rdi
	subq	%rdx, %rdi
	movq	%rdi, (%r14)
	addq	%rcx, %rsi
	movq	_m_x2@GOTPCREL(%rip), %rcx
	movq	%rsi, (%rcx)
	cltq
	addq	%rdi, %rax
	movq	_m_y2@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m_w,4,2                        ## @m_w
	.comm	_m_x,8,3                        ## @m_x
	.comm	_m_h,4,2                        ## @m_h
	.comm	_m_y,8,3                        ## @m_y
	.comm	_f_w,4,2                        ## @f_w
	.comm	_f_h,4,2                        ## @f_h
	.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_activateNewScale            ; -- Begin function AM_activateNewScale
	.p2align	2
_AM_activateNewScale:                   ; @AM_activateNewScale
	.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, _m_w@GOTPAGE
Lloh1:
	ldr	x19, [x19, _m_w@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh2:
	adrp	x20, _m_x@GOTPAGE
Lloh3:
	ldr	x20, [x20, _m_x@GOTPAGEOFF]
	asr	w8, w8, #1
	ldr	x9, [x20]
	add	x8, x9, w8, sxtw
	str	x8, [x20]
Lloh4:
	adrp	x21, _m_h@GOTPAGE
Lloh5:
	ldr	x21, [x21, _m_h@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh6:
	adrp	x22, _m_y@GOTPAGE
Lloh7:
	ldr	x22, [x22, _m_y@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x9, w8, sxtw
	str	x8, [x22]
Lloh8:
	adrp	x8, _f_w@GOTPAGE
Lloh9:
	ldr	x8, [x8, _f_w@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_FTOM
	str	w0, [x19]
Lloh11:
	adrp	x8, _f_h@GOTPAGE
Lloh12:
	ldr	x8, [x8, _f_h@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_FTOM
	str	w0, [x21]
	ldrsw	x8, [x19]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	ldr	x10, [x20]
	sub	x9, x10, w9, sxtw
	str	x9, [x20]
	cmp	w0, #0
	cinc	w10, w0, lt
	asr	w10, w10, #1
	ldr	x11, [x22]
	sub	x10, x11, w10, sxtw
	str	x10, [x22]
Lloh14:
	adrp	x11, _m_x2@GOTPAGE
Lloh15:
	ldr	x11, [x11, _m_x2@GOTPAGEOFF]
	add	x8, x9, x8
Lloh16:
	str	x8, [x11]
	add	x8, x10, w0, sxtw
Lloh17:
	adrp	x9, _m_y2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _m_y2@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
	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
	ret
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_m_w,4,2                        ; @m_w
	.comm	_m_x,8,3                        ; @m_x
	.comm	_m_h,4,2                        ; @m_h
	.comm	_m_y,8,3                        ; @m_y
	.comm	_f_w,4,2                        ; @f_w
	.comm	_f_h,4,2                        ; @f_h
	.comm	_m_x2,8,3                       ; @m_x2
	.comm	_m_y2,8,3                       ; @m_y2
.subsections_via_symbols
