	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_changeWindowScale           ## -- Begin function AM_changeWindowScale
	.p2align	4, 0x90
_AM_changeWindowScale:                  ## @AM_changeWindowScale
	.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	_scale_mtof@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_mtof_zoommul@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FixedMul
	movq	%rax, (%rbx)
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_FixedDiv
	movq	_scale_ftom@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movq	_min_scale_mtof@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AM_minOutWindowScale           ## TAILCALL
LBB0_1:
	movq	_max_scale_mtof@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AM_maxOutWindowScale           ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AM_activateNewScale            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scale_mtof,8,3                 ## @scale_mtof
	.comm	_mtof_zoommul,4,2               ## @mtof_zoommul
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_scale_ftom,4,2                 ## @scale_ftom
	.comm	_min_scale_mtof,8,3             ## @min_scale_mtof
	.comm	_max_scale_mtof,8,3             ## @max_scale_mtof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AM_changeWindowScale           ; -- Begin function AM_changeWindowScale
	.p2align	2
_AM_changeWindowScale:                  ; @AM_changeWindowScale
	.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	x19, _scale_mtof@GOTPAGE
Lloh1:
	ldr	x19, [x19, _scale_mtof@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _mtof_zoommul@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mtof_zoommul@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_FixedMul
	mov	x1, x0
	str	x0, [x19]
Lloh5:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_FixedDiv
Lloh8:
	adrp	x8, _scale_ftom@GOTPAGE
Lloh9:
	ldr	x8, [x8, _scale_ftom@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _min_scale_mtof@GOTPAGE
Lloh12:
	ldr	x9, [x9, _min_scale_mtof@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AM_minOutWindowScale
LBB0_2:
Lloh14:
	adrp	x9, _max_scale_mtof@GOTPAGE
Lloh15:
	ldr	x9, [x9, _max_scale_mtof@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AM_maxOutWindowScale
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AM_activateNewScale
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_scale_mtof,8,3                 ; @scale_mtof
	.comm	_mtof_zoommul,4,2               ; @mtof_zoommul
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_scale_ftom,4,2                 ; @scale_ftom
	.comm	_min_scale_mtof,8,3             ; @min_scale_mtof
	.comm	_max_scale_mtof,8,3             ; @max_scale_mtof
.subsections_via_symbols
