	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_fb_divider_checking_tolerance
_calc_fb_divider_checking_tolerance:    ## @calc_fb_divider_checking_tolerance
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %rsi
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_calculate_fb_and_fractional_fb_divider
	movslq	(%r12), %rax
	movl	-56(%rbp), %ecx
	imull	%eax, %ecx
	addl	-48(%rbp), %ecx
	imull	4(%r12), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %edi
	movq	%r14, %rsi
	imulq	%r15, %rsi
	imulq	%rax, %rsi
	callq	_div_u64
	cltq
	movq	(%rbx), %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	negq	%rcx
	subq	%rax, %rdx
	cmovlq	%rcx, %rdx
	xorl	%ecx, %ecx
	cmpq	%r13, %rdx
	jg	LBB0_2
## %bb.1:
	movl	4(%r12), %ecx
	movl	%ecx, 8(%rbx)
	movq	%r15, 56(%rbx)
	movq	-56(%rbp), %rcx
	movq	%rcx, 48(%rbx)
	movq	-48(%rbp), %rcx
	movq	%rcx, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	%rax, 24(%rbx)
	imulq	%r14, %rax
	movabsq	$7378697629483820647, %rcx      ## imm = 0x6666666666666667
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$2, %rdx
	addq	%rax, %rdx
	movq	%rdx, 16(%rbx)
	movl	$1, %ecx
LBB0_2:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_fb_divider_checking_tolerance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_fb_divider_checking_tolerance
_calc_fb_divider_checking_tolerance:    ; @calc_fb_divider_checking_tolerance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x1, [x1]
	add	x4, sp, #8
	mov	x5, sp
	bl	_calculate_fb_and_fractional_fb_divider
	ldr	w8, [sp, #8]
	ldr	w9, [sp]
	ldp	w10, w11, [x22]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	w8, w10, w8, w9
	mul	w8, w11, w8
	add	w8, w8, w8, lsl #2
	lsl	w0, w8, #1
	mul	x8, x20, x21
	mul	x1, x8, x10
	bl	_div_u64
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19]
	sub	x10, x8, x9
	subs	x9, x9, x8
	csel	x9, x10, x9, lt
	cmp	x9, x23
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w9, [x22, #4]
	str	w9, [x19, #8]
	ldr	x9, [sp, #8]
	stp	x9, x21, [x19, #48]
	ldr	x9, [sp]
	stp	x20, x9, [x19, #32]
	mul	x9, x8, x20
	mov	x10, #7378697629483820646
	movk	x10, #26215
	smulh	x9, x9, x10
	asr	x10, x9, #2
	add	x9, x10, x9, lsr #63
	stp	x9, x8, [x19, #16]
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_fb_divider_checking_tolerance
.subsections_via_symbols
