	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_control_pid_rate_init
_rate_control_pid_rate_init:            ## @rate_control_pid_rate_init
	.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
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.1:
	movq	8(%rdi), %rdx
	movq	_RC_PID_FAST_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addq	$8, %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rdx)
	incq	%rsi
	addq	$12, %rdx
	cmpq	%rsi, %r8
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -8(%rdx)
	movl	%esi, -4(%rdx)
	movl	$0, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %eax
	imull	%esi, %eax
	jmp	LBB0_4
LBB0_5:
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.6:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	%r13d, %eax
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	(%rbx), %eax
	movl	%eax, %ecx
	subl	%r13d, %ecx
	movslq	%ecx, %rcx
	addq	$12, %r12
	movq	%r14, %r15
	cmpq	%rcx, %r14
	jge	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movslq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	1(%r15), %r14
	movslq	12(%r12), %rdx
	xorl	%edi, %edi
	cmpq	(%rax,%rdx,8), %rcx
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movslq	(%r12), %rax
	movslq	12(%r12), %rcx
	movl	%ecx, (%r12)
	movl	%eax, 12(%r12)
	leaq	(%rcx,%rcx,2), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, 4(%rdx,%rcx,4)
	leaq	(%rax,%rax,2), %rax
	incl	%r15d
	movl	%r15d, 4(%rdx,%rax,4)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	cmpl	%eax, %r13d
	jl	LBB0_7
LBB0_14:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rate_lowest_index
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_PID_FAST_START,8,3          ## @RC_PID_FAST_START
	.no_dead_strip	_rate_control_pid_rate_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_control_pid_rate_init
_rate_control_pid_rate_init:            ; @rate_control_pid_rate_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x9, #0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x10, _RC_PID_FAST_START@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RC_PID_FAST_START@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x11, x22, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x0]
	mul	w12, w12, w9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w12, [x11], #12
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	w9, w9, [x11, #-8]
	cbz	x10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	b	LBB0_3
LBB0_6:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.7:
	mov	w23, #1
	mov	w24, #12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w8, w23
	b.le	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, #0
	mov	w27, #0
	mov	x26, x22
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x25, x25, #1
	ldr	w8, [x21]
	sub	w9, w8, w23
	add	x26, x26, #12
	cmp	x25, w9, sxtw
	b.ge	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	ldrsw	x9, [x26]
	ldr	x9, [x8, x9, lsl #3]
	ldrsw	x10, [x26, #12]
	ldr	x8, [x8, x10, lsl #3]
	cmp	x9, x8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrsw	x8, [x26]
	ldrsw	x9, [x26, #12]
	str	w9, [x26]
	str	w8, [x26, #12]
	madd	x9, x9, x24, x22
	str	w25, [x9, #4]
	madd	x8, x8, x24, x22
	add	w9, w25, #1
	str	w9, [x8, #4]
	mov	w27, #1
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w27, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, #1
	cmp	w23, w8
	b.lt	LBB0_8
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_rate_lowest_index
	str	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_PID_FAST_START,8,3          ; @RC_PID_FAST_START
	.no_dead_strip	_rate_control_pid_rate_init
.subsections_via_symbols
