	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetScaledFraction
_GetScaledFraction:                     ## @GetScaledFraction
	.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
	movl	%edi, %ebx
	negl	%ebx
	cmovsl	%edi, %ebx
	movl	%esi, %r14d
	negl	%r14d
	cmovsl	%esi, %r14d
	movq	_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jg	LBB0_5
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	%ecx, %r14d
	jg	LBB0_5
## %bb.2:
	xorl	%r15d, %r15d
LBB0_3:
	cmpl	$1, %r14d
	jne	LBB0_12
## %bb.4:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ConvertToFraction              ## TAILCALL
LBB0_5:
	xorl	%r8d, %r8d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r14d
	cmpl	%ecx, %eax
	jg	LBB0_13
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	cmpl	%ecx, %ebx
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	shrl	%ebx
	incl	%r12d
	cmpl	%ecx, %ebx
	jg	LBB0_11
LBB0_8:
	cmpl	%ecx, %r14d
	jle	LBB0_3
## %bb.9:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shrl	%r14d
	incl	%r15d
	cmpl	%ecx, %r14d
	jg	LBB0_10
	jmp	LBB0_3
LBB0_12:
	xorl	%edi, %esi
	shrl	$31, %esi
	movl	$-1, %edi
	callq	_uPow
	imull	%eax, %ebx
	movl	%ebx, %edi
	callq	_ConvertToFraction
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ConvertToFraction
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fDivide
	movl	%eax, %r8d
	movl	%r12d, %ecx
	shll	%cl, %r8d
	movl	%r15d, %ecx
	sarl	%cl, %r8d
LBB0_13:
	movl	%r8d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX,4,2                        ## @MAX
	.no_dead_strip	_GetScaledFraction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetScaledFraction
_GetScaledFraction:                     ; @GetScaledFraction
	.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
	cmp	w0, #0
	cneg	w20, w0, mi
	cmp	w1, #0
	cneg	w19, w1, mi
Lloh0:
	adrp	x8, _MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	ccmp	w19, w8, #0, le
	b.le	LBB0_3
; %bb.1:
	udiv	w9, w20, w19
	cmp	w9, w8
	b.le	LBB0_7
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	w22, #0
	cmp	w19, #1
	b.eq	LBB0_15
LBB0_5:
	eor	w8, w1, w0
	lsr	w1, w8, #31
	mov	w0, #-1
	bl	_uPow
	mul	w0, w0, w20
	bl	_ConvertToFraction
	mov	x20, x0
	mov	x0, x19
	bl	_ConvertToFraction
	mov	w8, w20
	mov	w1, w0
	mov	x0, x8
	bl	_fDivide
	lsl	w8, w0, w21
	asr	w0, w8, w22
LBB0_6:
	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
LBB0_7:
	cmp	w20, w8
	b.le	LBB0_11
; %bb.8:
	mov	w21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w20, w20, #1
	add	w21, w21, #1
	cmp	w20, w8
	b.gt	LBB0_9
; %bb.10:
	cmp	w19, w8
	b.le	LBB0_4
	b	LBB0_12
LBB0_11:
	mov	w21, #0
	cmp	w19, w8
	b.le	LBB0_4
LBB0_12:
	mov	w22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsr	w19, w19, #1
	add	w22, w22, #1
	cmp	w19, w8
	b.gt	LBB0_13
; %bb.14:
	cmp	w19, #1
	b.ne	LBB0_5
LBB0_15:
	mov	x0, x20
	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	_ConvertToFraction
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX,4,2                        ; @MAX
	.no_dead_strip	_GetScaledFraction
.subsections_via_symbols
