	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalculateDelayAfterScaler
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalculateDelayAfterScaler:             ## @CalculateDelayAfterScaler
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movsd	%xmm7, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm6, -112(%rbp)               ## 8-byte Spill
	movsd	%xmm5, -88(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -104(%rbp)               ## 8-byte Spill
	movsd	%xmm3, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -80(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movl	88(%rbp), %r15d
	movsd	96(%rbp), %xmm0                 ## xmm0 = mem[0],zero
	movl	112(%rbp), %r12d
	imull	%r15d, %r12d
	movl	$1, %edi
	callq	_dml_ceil
                                        ## kill: def $eax killed $eax def $rax
	imull	%r12d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	(%r14), %xmm1
	divsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	divsd	%xmm1, %xmm0
	movq	8(%r14), %rdi
	subsd	-104(%rbp), %xmm0               ## 8-byte Folded Reload
	callq	_dml_max
	movsd	104(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	%rax, 8(%r14)
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_1
	jnp	LBB0_2
LBB0_1:
	shrl	%r15d
	imull	120(%rbp), %r15d
	movl	$2, %edi
	callq	_dml_ceil
                                        ## kill: def $eax killed $eax def $rax
	imull	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	(%r14), %xmm1
	divsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	divsd	%xmm1, %xmm0
	movq	8(%r14), %rdi
	subsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_dml_max
	xorpd	%xmm1, %xmm1
	movq	%rax, 8(%r14)
LBB0_2:
	movsd	-112(%rbp), %xmm7               ## 8-byte Reload
                                        ## xmm7 = mem[0],zero
	ucomisd	%xmm1, %xmm7
	movsd	-56(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
	jne	LBB0_3
	jnp	LBB0_17
LBB0_3:
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm6
	jne	LBB0_4
	jnp	LBB0_17
LBB0_4:
	movsd	64(%rbp), %xmm3                 ## xmm3 = mem[0],zero
	movsd	56(%rbp), %xmm2                 ## xmm2 = mem[0],zero
	movsd	48(%rbp), %xmm1                 ## xmm1 = mem[0],zero
	movsd	24(%rbp), %xmm5                 ## xmm5 = mem[0],zero
	movsd	16(%rbp), %xmm0                 ## xmm0 = mem[0],zero
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movsd	32(%rbp), %xmm4                 ## xmm4 = mem[0],zero
	jmp	LBB0_7
LBB0_5:
	movsd	40(%rbp), %xmm4                 ## xmm4 = mem[0],zero
LBB0_7:
	addsd	%xmm5, %xmm4
	movq	144(%rbp), %r14
	movl	72(%rbp), %eax
	cvttsd2si	%xmm3, %rcx
	movl	%r13d, %edx
	xorps	%xmm3, %xmm3
	cvtsi2sd	%rdx, %xmm3
	cvttsd2si	%xmm4, %rdx
	mulsd	%xmm2, %xmm3
	movl	%edx, %edx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rdx, %xmm2
	addsd	%xmm1, %xmm2
	addsd	%xmm3, %xmm2
	cvttsd2si	%xmm2, %rdx
	movl	%edx, %edx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rdx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	%xmm7, %xmm1
	movl	%ecx, %ecx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rcx, %xmm2
	mulsd	%xmm0, %xmm2
	divsd	%xmm6, %xmm2
	addsd	%xmm1, %xmm2
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	addsd	%xmm2, %xmm0
	cmpl	$2, -68(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_8
## %bb.9:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_10
LBB0_8:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rcx, %xmm1
LBB0_10:
	addsd	%xmm0, %xmm1
	movl	136(%rbp), %ecx
	movsd	%xmm1, (%r14)
	movq	_dm_420@GOTPCREL(%rip), %rdx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm0
	cmpl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	xorpd	%xmm0, %xmm0
LBB0_12:
	movl	128(%rbp), %eax
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.13:
	movapd	%xmm0, %xmm1
LBB0_14:
	movq	152(%rbp), %rbx
	movl	80(%rbp), %ecx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movapd	%xmm0, %xmm1
LBB0_16:
	movsd	%xmm1, (%rbx)
	movl	%ecx, %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rax, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	mulsd	%xmm2, %xmm1
	addsd	(%r14), %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	movl	$1, %edi
	callq	_dml_floor
	movsd	%xmm0, (%rbx)
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%r14)
LBB0_17:
	movl	$1, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_420,4,2                     ## @dm_420
	.no_dead_strip	_CalculateDelayAfterScaler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalculateDelayAfterScaler
_CalculateDelayAfterScaler:             ; @CalculateDelayAfterScaler
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	fmov	d8, d7
	fmov	d9, d6
	fmov	d10, d5
	fmov	d14, d4
	fmov	d11, d3
	fmov	d12, d2
	fmov	d15, d1
	mov	x26, x0
	ldr	w27, [x29, #72]
	ldp	d0, d13, [x29, #80]
	ldr	w8, [x29, #96]
	mul	w28, w8, w27
	mov	w0, #1
	bl	_dml_ceil
	mul	w8, w28, w0
	ucvtf	d0, w8
	ldr	d1, [x26]
	fmul	d1, d1, d15
	fdiv	d1, d1, d11
	fdiv	d0, d0, d1
	ldr	x0, [x26, #8]
	fsub	d0, d0, d14
	bl	_dml_max
	str	x0, [x26, #8]
	fcmp	d13, #0.0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x29, #100]
	lsr	w9, w27, #1
	mul	w27, w9, w8
	fmov	d0, d13
	mov	w0, #2
	bl	_dml_ceil
	mul	w8, w27, w0
	ucvtf	d0, w8
	ldr	d1, [x26]
	fmul	d1, d1, d12
	fdiv	d1, d1, d11
	fdiv	d0, d0, d1
	ldr	x0, [x26, #8]
	fsub	d0, d0, d10
	bl	_dml_max
	str	x0, [x26, #8]
LBB0_2:
	fcmp	d9, #0.0
	b.eq	LBB0_5
; %bb.3:
	fcmp	d8, #0.0
	b.eq	LBB0_5
; %bb.4:
	ldp	x26, x27, [x29, #112]
	ldr	d0, [x29, #64]
	ldp	d2, d1, [x29, #32]
	ldp	d4, d3, [x29, #16]
	cmp	w25, #0
	fcsel	d1, d1, d2, eq
	fcvtzu	w8, d0
	ucvtf	d0, w24
	fadd	d1, d1, d3
	fcvtzu	w9, d1
	ucvtf	d1, w9
	ldp	d3, d2, [x29, #48]
	fadd	d1, d1, d3
	fmadd	d0, d0, d2, d1
	fcvtzu	w9, d0
	ldp	w11, w10, [x29, #104]
	ucvtf	d0, w9
	fmul	d0, d0, d4
	ucvtf	d1, w8
	fdiv	d0, d0, d9
	fmul	d1, d1, d4
	fdiv	d1, d1, d8
	fadd	d0, d1, d0
	ucvtf	d1, w23
	fadd	d0, d0, d1
	ucvtf	d1, w21
	cmp	w22, #1
	mov	x8, #-9223372036854775808
	fmov	d2, x8
	fcsel	d1, d1, d2, hi
	fadd	d0, d1, d0
	str	d0, [x26]
Lloh0:
	adrp	x8, _dm_420@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm_420@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w10, #0
	ccmp	w11, #0, #4, ne
	ccmp	w8, w20, #4, eq
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	fcsel	d0, d1, d0, eq
	str	d0, [x27]
	ucvtf	d8, w19
	ldr	d1, [x26]
	fmadd	d9, d0, d8, d1
	fdiv	d0, d9, d8
	mov	w0, #1
	bl	_dml_floor
	str	d0, [x27]
	fmsub	d0, d0, d8, d9
	str	d0, [x26]
LBB0_5:
	mov	w0, #1
	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
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_420,4,2                     ; @dm_420
	.no_dead_strip	_CalculateDelayAfterScaler
.subsections_via_symbols
