	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_latency_watermark
_dce_v6_0_latency_watermark:            ## @dce_v6_0_latency_watermark
	.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, %rbx
	callq	_dce_v6_0_available_bandwidth
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	movl	$4096000, %eax                  ## imm = 0x3E8000
	xorl	%edx, %edx
	idivl	%r12d
	movl	%eax, %ecx
	movl	$512000, %eax                   ## imm = 0x7D000
	xorl	%edx, %edx
	idivl	%r12d
	movl	%eax, %esi
	movl	$40000000, %eax                 ## imm = 0x2625A00
	xorl	%edx, %edx
	idivl	(%rbx)
	movl	%eax, %r13d
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leal	1(%rax), %r14d
	imull	%ecx, %r14d
	imull	%eax, %esi
	addl	%esi, %r13d
	movl	$2, %edi
	callq	_dfixed_const
	movq	%rax, %r15
	movl	$1, %edi
	callq	_dfixed_const
	movq	%r15, %rsi
	movq	32(%rbx), %rcx
	movl	$4, %r15d
	cmpq	%rsi, %rcx
	jg	LBB0_8
## %bb.2:
	movl	8(%rbx), %edx
	cmpq	%rax, %rcx
	jle	LBB0_4
## %bb.3:
	cmpl	$2, %edx
	jle	LBB0_5
	jmp	LBB0_8
LBB0_4:
	cmpl	$4, %edx
	jg	LBB0_8
LBB0_5:
	cmpq	%rsi, %rcx
	jl	LBB0_7
## %bb.6:
	cmpq	$0, 24(%rbx)
	jne	LBB0_8
LBB0_7:
	movl	$2, %r15d
LBB0_8:
	addl	%r13d, %r14d
	addl	$2000, %r14d                    ## imm = 0x7D0
	movl	%r12d, %edi
	callq	_dfixed_const
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_dfixed_const
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %r12
	movl	(%rbx), %eax
	shll	$12, %eax
	leal	(%rax,%rax,2), %edi
	movl	$2512, %esi                     ## imm = 0x9D0
	callq	_div_u64
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_dfixed_trunc
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_min
	movl	12(%rbx), %ecx
	imull	(%rbx), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rsi
	addl	%ecx, %esi
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_min
	movl	%eax, %r12d
	imull	16(%rbx), %r15d
	imull	12(%rbx), %r15d
	movl	%r15d, %edi
	callq	_dfixed_const
	movq	%rax, %r15
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_dfixed_const
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_dfixed_const
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_dfixed_div
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %rdi
	callq	_dfixed_trunc
	movl	20(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_10
## %bb.9:
	addl	%r14d, %eax
	subl	%ecx, %eax
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dce_v6_0_latency_watermark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_latency_watermark
_dce_v6_0_latency_watermark:            ; @dce_v6_0_latency_watermark
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_dce_v6_0_available_bandwidth
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	w9, #53248
	movk	w9, #7, lsl #16
	add	w10, w9, #875, lsl #12          ; =3584000
	sdiv	w10, w10, w0
	sdiv	w9, w9, w0
	ldr	w11, [x19]
	mov	w12, #23040
	movk	w12, #610, lsl #16
	madd	w10, w10, w8, w10
	sdiv	w11, w12, w11
	madd	w8, w8, w9, w11
	add	w8, w8, w10
	add	w20, w8, #2000
	mov	w0, #2
	bl	_dfixed_const
	mov	x22, x0
	mov	w0, #1
	bl	_dfixed_const
	ldr	x8, [x19, #32]
	cmp	x8, x22
	b.le	LBB0_7
LBB0_2:
	mov	w23, #4
LBB0_3:
	mov	x0, x21
	bl	_dfixed_const
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x21
	bl	_dfixed_div
	mov	x21, x0
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #12
	mov	w1, #2512
	bl	_div_u64
	mov	x22, x0
	mov	x0, x21
	bl	_dfixed_trunc
	mov	x1, x22
	bl	_min
	ldr	w8, [x19]
	ldr	w9, [x19, #12]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	bl	_min
	mov	x21, x0
	ldp	w9, w8, [x19, #12]
	mul	w8, w8, w23
	mul	w0, w8, w9
	bl	_dfixed_const
	mov	x22, x0
	mov	w0, #1000
	bl	_dfixed_const
	mov	x23, x0
	mov	x0, x21
	bl	_dfixed_const
	mov	x1, x23
	bl	_dfixed_div
	mov	x1, x0
	mov	x0, x22
	bl	_dfixed_div
	bl	_dfixed_trunc
	ldr	w8, [x19, #20]
	cmp	w0, w8
	b.lt	LBB0_6
; %bb.4:
	add	w9, w0, w20
	sub	w20, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w9, [x19, #8]
	cmp	x8, x0
	b.le	LBB0_9
; %bb.8:
	cmp	w9, #2
	b.gt	LBB0_2
	b	LBB0_10
LBB0_9:
	cmp	w9, #4
	b.gt	LBB0_2
LBB0_10:
	cmp	x8, x22
	b.lt	LBB0_12
; %bb.11:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
LBB0_12:
	mov	w23, #2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dce_v6_0_latency_watermark
.subsections_via_symbols
