	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalculateWriteBackDelay
LCPI0_0:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalculateWriteBackDelay:               ## @CalculateWriteBackDelay
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%edi, %r12d
	movl	%esi, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r14
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dml_ceil
	movl	%ebx, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	movl	%eax, %ebx
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
	imull	%r13d, %eax
	imull	%eax, %ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dml_ceil
	movl	%r13d, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	movl	%eax, %r14d
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %edi
	imull	%r14d, %edi
	addl	%ebx, %edi
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_dml_max
	movl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movq	_dm_444_32@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
	cvtsi2sd	%eax, %xmm1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r14
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dml_ceil
	movl	%eax, %ebx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	imull	%r15d, %ebx
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
	imull	%eax, %ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dml_ceil
	movl	%eax, %r14d
	movl	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_dml_ceil
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %edi
	imull	%r14d, %edi
	addl	%ebx, %edi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_dml_max
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_dml_max
	movl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_444_32,4,2                  ## @dm_444_32
	.no_dead_strip	_CalculateWriteBackDelay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalculateWriteBackDelay
_CalculateWriteBackDelay:               ; @CalculateWriteBackDelay
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-144]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 144
	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	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	.cfi_offset b14, -136
	.cfi_offset b15, -144
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	fmov	d8, d1
	fmov	d9, d0
	mov	x21, x0
	ucvtf	d0, w1
	fmov	d11, #0.25000000
	fmul	d0, d0, d11
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	scvtf	d0, w0
	fdiv	d10, d0, d9
	fmov	d12, #1.00000000
	fdiv	d0, d12, d8
	fcvtzu	w24, d0
	mov	x0, x24
	mov	w1, #1
	bl	_dml_ceil
	mul	w25, w0, w23
	ucvtf	d13, w22
	fmul	d0, d13, d11
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	mul	w25, w25, w0
	mov	x0, x24
	mov	w1, #1
	bl	_dml_ceil
	mov	x22, x0
	ucvtf	d0, w23
	fmul	d0, d0, d11
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	add	w8, w0, #4
	madd	w0, w8, w22, w25
	fmov	d0, d10
	bl	_dml_max
	ucvtf	d10, w0
Lloh0:
	adrp	x8, _dm_444_32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm_444_32@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ucvtf	d0, w20
	fmov	d14, #0.50000000
	fmul	d0, d0, d14
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	scvtf	d0, w0
	fadd	d1, d9, d9
	fdiv	d9, d0, d1
	fadd	d0, d8, d8
	fdiv	d0, d12, d0
	fcvtzu	w20, d0
	mov	x0, x20
	mov	w1, #1
	bl	_dml_ceil
	mul	w21, w0, w19
	fmul	d0, d13, d14
	fmul	d0, d0, d14
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	mul	w21, w21, w0
	mov	x0, x20
	mov	w1, #1
	bl	_dml_ceil
	mov	x20, x0
	ucvtf	d0, w19
	fmul	d0, d0, d11
	fcvtzu	w0, d0
	mov	w1, #1
	bl	_dml_ceil
	add	w8, w0, #4
	madd	w0, w8, w20, w21
	fmov	d0, d9
	bl	_dml_max
	fmov	d0, d10
	bl	_dml_max
	ucvtf	d10, w0
LBB0_2:
	fmov	d0, d10
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [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], #144            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_444_32,4,2                  ; @dm_444_32
	.no_dead_strip	_CalculateWriteBackDelay
.subsections_via_symbols
