	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_interval_ratnum            ## -- Begin function snd_interval_ratnum
	.p2align	4, 0x90
_snd_interval_ratnum:                   ## @snd_interval_ratnum
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	je	LBB0_19
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %eax
	shlq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r12
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12), %r15d
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	movl	$1, %eax
	cmovel	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_div_up
	movq	%rax, %rcx
	movl	4(%r14,%r12), %edx
	cmpl	%ecx, %edx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14,%r12), %eax
	cmpl	%ecx, %eax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	12(%r14,%r12)
	subl	%edx, %ecx
	movl	%ecx, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	imull	%eax, %ebx
	movl	%r15d, %edx
	subl	%ebx, %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %edx
	imull	-56(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%eax, %esi
	imull	-64(%rbp), %esi                 ## 4-byte Folded Reload
	cmpl	%esi, %edx
	jb	LBB0_2
	jmp	LBB0_3
LBB0_9:
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_19
## %bb.10:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%esi, %r15d
	callq	_div_down
	movl	%eax, -120(%rbp)
	xorl	%r12d, %r12d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r15d
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movl	%eax, -112(%rbp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$16, %r12
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14,%r12), %r15d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_div_down
	movq	%rax, %rcx
	cmpl	%ecx, 8(%r14,%r12)
	jb	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r14,%r12), %esi
	cmpl	%ecx, %esi
	ja	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, %eax
	subl	%esi, %eax
	movl	12(%r14,%r12), %esi
	xorl	%edx, %edx
	divl	%esi
	subl	%edx, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	addl	%ecx, %esi
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	imull	%esi, %ebx
	subl	%r15d, %ebx
	movl	%ebx, %eax
	negl	%eax
	cmovsl	%ebx, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, %ecx
	imull	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%esi, %edx
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	%edx, %ecx
	jb	LBB0_11
	jmp	LBB0_12
LBB0_19:
	movl	$1, 4(%rdi)
	jmp	LBB0_29
LBB0_20:
	movq	%r13, %rax
	jmp	LBB0_28
LBB0_21:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.22:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_div_up
	movl	%eax, -108(%rbp)
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r15d
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	movl	%eax, -104(%rbp)
	movq	$0, -96(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%r13, %rdi
	callq	_snd_interval_refine
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_30
## %bb.23:
	movq	%r13, %rdi
	callq	_snd_interval_single
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	imull	%ecx, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	imull	%r15d, %edx
	cmpl	%edx, %esi
	cmovbl	%r15d, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	cmpl	%edx, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmovbl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, (%rax)
LBB0_26:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:
	movl	%ecx, (%rax)
	jmp	LBB0_30
LBB0_28:
	movl	$1, 4(%r13)
LBB0_29:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_30:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_interval_ratnum            ; -- Begin function snd_interval_ratnum
	.p2align	2
_snd_interval_ratnum:                   ; @snd_interval_ratnum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x3, x4, [sp, #8]                ; 16-byte Folded Spill
	mov	x21, x0
	cbz	w1, LBB0_26
; %bb.1:
	mov	x26, x2
	mov	w22, #0
	mov	w23, #0
	mov	w28, #0
	mov	w19, w1
	add	x20, x2, #8
	mov	x27, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x9
	mov	x23, x8
	mov	x22, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #16
	subs	x27, x27, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w24, [x20, #-8]
	ldr	w8, [x21]
	cmp	w8, #0
	csinc	w25, w8, wzr, ne
	mov	x0, x24
	mov	x1, x25
	bl	_div_up
	ldur	w9, [x20, #-4]
	cmp	w9, w0
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w8, w0
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	sub	w9, w0, w9
	neg	w10, w9
	udiv	w9, w9, w8
	madd	w8, w9, w8, w10
	add	w8, w0, w8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	msub	w9, w8, w25, w24
	cmp	w9, #0
	cneg	w9, w9, mi
	cbz	w22, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	w10, w9, w23
	mul	w11, w8, w28
	cmp	w10, w11
	b.lo	LBB0_2
	b	LBB0_3
LBB0_9:
	cbz	w23, LBB0_26
; %bb.10:
	mov	x0, x22
	mov	x1, x23
	bl	_div_down
	mov	w24, #0
	mov	w25, #0
	stp	wzr, w0, [sp, #28]              ; 4-byte Folded Spill
	udiv	w8, w22, w23
	msub	w8, w8, w23, w22
	cmp	w8, #0
	cset	w8, ne
	str	w8, [sp, #40]
	add	x20, x26, #8
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	mov	x25, x8
	mov	x24, x26
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #16
	subs	x19, x19, #1
	b.eq	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x21, #12]
	cbz	w27, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	w26, [x20, #-8]
	mov	x0, x26
	mov	x1, x27
	bl	_div_down
	ldr	w8, [x20]
	cmp	w8, w0
	b.lo	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	w8, [x20, #-4]
	cmp	w8, w0
	b.hi	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w0, w8
	ldr	w9, [x20, #4]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	sub	w9, w9, w8
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	add	w8, w8, w0
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	neg	w9, w26
	madd	w9, w8, w27, w9
	cmp	w9, #0
	cneg	w9, w9, mi
	cbz	w24, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mul	w10, w9, w25
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	mul	w11, w8, w11
	cmp	w10, w11
	b.lo	LBB0_11
	b	LBB0_12
LBB0_19:
	cbz	w25, LBB0_26
; %bb.20:
	mov	x0, x24
	mov	x1, x25
	bl	_div_up
	udiv	w8, w24, w25
	msub	w8, w8, w25, w24
	cmp	w8, #0
	cset	w8, ne
	stp	w0, w8, [sp, #44]
	str	xzr, [sp, #56]
	add	x1, sp, #32
	mov	x0, x21
	bl	_snd_interval_refine
	mov	x26, x0
	tbnz	w0, #31, LBB0_27
; %bb.21:
	mov	x0, x21
	bl	_snd_interval_single
	cbz	x0, LBB0_27
; %bb.22:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w8, w23
	mul	w9, w25, w28
	cmp	w8, w9
	csel	w8, w25, w23, lo
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x10, LBB0_24
; %bb.23:
	csel	w9, w24, w22, lo
	str	w9, [x10]
LBB0_24:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_27
; %bb.25:
	str	w8, [x9]
	b	LBB0_27
LBB0_26:
	mov	w8, #1
	str	w8, [x21, #4]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_27:
	mov	x0, x26
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
