	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_fixpt_from_fraction         ## -- Begin function dc_fixpt_from_fraction
	.p2align	4, 0x90
_dc_fixpt_from_fraction:                ## @dc_fixpt_from_fraction
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	negq	%rdi
	cmovsq	%r14, %rdi
	movq	%rsi, %r15
	movq	%rsi, %r12
	negq	%r12
	cmovsq	%rsi, %r12
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	callq	_complete_integer_division_u64
	movq	%rax, %r13
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r13
	setbe	%dil
	callq	_ASSERT
	movq	_FIXED31_32_BITS_PER_FRACTIONAL_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	testb	$1, %dl
	jne	LBB0_2
## %bb.1:
                                        ## implicit-def: $rbx
	movl	%edx, %ecx
	cmpl	$1, %edx
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	addq	%rax, %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	cmpq	%r12, %rax
	cmovaeq	%r12, %rcx
	setae	%sil
	subq	%rcx, %rax
	leaq	(%rsi,%r13,2), %rbx
	leal	-1(%rdx), %ecx
	movq	%rbx, %r13
	cmpl	$1, %edx
	jne	LBB0_4
LBB0_9:
	movq	%rax, -48(%rbp)
	addq	%rax, %rax
	xorl	%r13d, %r13d
	cmpq	%r12, %rax
	setae	%r13b
	movq	_LLONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r13, %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setbe	%dil
	callq	_ASSERT
	addq	%r13, %rbx
	movq	%rbx, %rax
	negq	%rax
	xorq	%r14, %r15
	cmovnsq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rdx,%r13,4), %rdx
	subq	%rdi, %rax
	movb	%sil, %bl
	orq	%rdx, %rbx
	movq	%rbx, %r13
	addl	$-2, %ecx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rax, %rax
	xorl	%edx, %edx
	movl	$0, %esi
	cmpq	%r12, %rax
	setae	%bl
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	subq	%rsi, %rax
	addq	%rax, %rax
	movb	%bl, %dl
	addq	%rdx, %rdx
	xorl	%ebx, %ebx
	movl	$0, %edi
	cmpq	%r12, %rax
	setae	%sil
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.comm	_FIXED31_32_BITS_PER_FRACTIONAL_PART,4,2 ## @FIXED31_32_BITS_PER_FRACTIONAL_PART
	.comm	_LLONG_MAX,8,3                  ## @LLONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_fixpt_from_fraction         ; -- Begin function dc_fixpt_from_fraction
	.p2align	2
_dc_fixpt_from_fraction:                ; @dc_fixpt_from_fraction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cneg	x0, x0, mi
	cmp	x1, #0
	cneg	x21, x1, mi
	add	x2, sp, #8
	mov	x1, x21
	bl	_complete_integer_division_u64
	mov	x22, x0
Lloh0:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ls
	bl	_ASSERT
Lloh3:
	adrp	x8, _FIXED31_32_BITS_PER_FRACTIONAL_PART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIXED31_32_BITS_PER_FRACTIONAL_PART@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x10, [sp, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x10, #1
	cmp	x10, x21
	csel	x11, xzr, x21, lo
	cset	w9, hs
	sub	x10, x10, x11
	bfi	x9, x22, #1, #63
	mov	x22, x9
	subs	w8, w8, #1
	b.ne	LBB0_1
; %bb.2:
	str	x10, [sp, #8]
	cmp	x21, x10, lsl #1
	cset	w8, ls
Lloh6:
	adrp	x10, _LLONG_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LLONG_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cinc	x21, x9, ls
	sub	x8, x10, x8
	cmp	x9, x8
	cset	w0, ls
	bl	_ASSERT
	eor	x8, x19, x20
	cmp	x8, #0
	cneg	x0, x21, lt
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_FIXED31_32_BITS_PER_FRACTIONAL_PART,4,2 ; @FIXED31_32_BITS_PER_FRACTIONAL_PART
	.comm	_LLONG_MAX,8,3                  ; @LLONG_MAX
.subsections_via_symbols
