	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_control_pid_adjust_rate
_rate_control_pid_adjust_rate:          ## @rate_control_pid_adjust_rate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movslq	(%rdx), %rax
	movslq	4(%rdi), %rsi
	leaq	(%rax,%rax,2), %rax
	movl	(%r8,%rax,8), %r14d
	movl	%r14d, %r12d
	addl	%ecx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_1
## %bb.2:
	cmpl	%esi, %r12d
	jl	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	leaq	(%rax,%rax,2), %rax
	movl	(%r8,%rax,8), %r12d
LBB0_5:
	movl	(%rdi), %r15d
	testl	%ecx, %ecx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	js	LBB0_8
## %bb.6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leal	1(%r12), %r13d
	movl	$1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r13d
	jge	LBB0_7
## %bb.13:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r8,%rax,8), %r14
	addq	$8, %r14
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	(%r8,%rax,8), %rbx
	addq	$16, %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$24, %rbx
	incl	%r13d
	cmpl	%r13d, %ecx
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx), %rax
	cmpq	(%r14), %rax
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rbx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_rate_supported
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	cmovnel	%r13d, %r12d
	jmp	LBB0_16
LBB0_8:
	movq	$-1, -72(%rbp)                  ## 8-byte Folded Spill
	cmpl	%r12d, %r14d
	jl	LBB0_18
## %bb.9:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r8,%rax,8), %rcx
	addq	$8, %rcx
	movslq	%r12d, %rdx
	incq	%rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	(%r8,%rax,8), %r13
	addq	$16, %r13
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	decq	%rbx
	addq	$-24, %r13
	decl	%r14d
	cmpq	%rdx, %rbx
	jle	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r13), %rax
	cmpq	(%rcx), %rax
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	movq	%rcx, %r15
	callq	_rate_supported
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%r12d, %r15d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	testq	%rax, %rax
	cmovnel	%r14d, %r12d
	jmp	LBB0_12
LBB0_17:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_18
LBB0_7:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_18:
	movslq	%r12d, %r14
	leaq	(%r14,%r14,2), %rax
	leaq	(%r8,%rax,8), %rbx
	addq	$16, %rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,8), %rax
	leaq	(%rax,%rax,2), %r12
	addq	%rcx, %r14
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rate_supported
	testq	%rax, %rax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	%r12, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	testq	%r14, %r14
	movq	%rax, %r14
	jns	LBB0_19
	jmp	LBB0_23
LBB0_20:
	movl	(%rbx), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rate_control_pid_adjust_rate
.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_adjust_rate
_rate_control_pid_adjust_rate:          ; @rate_control_pid_adjust_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x28, x2
	mov	x20, x1
	ldrsw	x8, [x2]
	ldp	w21, w23, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	mov	w9, #24
	mul	x8, x8, x9
	ldr	w25, [x4, x8]
	adds	w24, w25, w3
	b.mi	LBB0_3
; %bb.1:
	cmp	w24, w23
	b.lt	LBB0_5
; %bb.2:
	sub	x8, x23, #1
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	mov	w9, #24
	mul	x8, x8, x9
	ldr	w24, [x22, x8]
LBB0_5:
	tbnz	w3, #31, LBB0_11
; %bb.6:
	add	w26, w24, #1
	cmp	w26, w23
	b.ge	LBB0_13
; %bb.7:
	mov	w8, #24
	smaddl	x9, w24, w8, x22
	add	x27, x9, #8
	smaddl	x8, w26, w8, x22
	add	x19, x8, #16
	mov	w25, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #24
	add	w26, w26, #1
	cmp	w23, w26
	b.eq	LBB0_19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x19, #-8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.gt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_rate_supported
	cmp	x0, #0
	csel	w24, w24, w26, eq
	b	LBB0_8
LBB0_11:
	cmp	w25, w24
	b.ge	LBB0_14
; %bb.12:
	mov	x25, #-1
	b	LBB0_19
LBB0_13:
	mov	w25, #1
	b	LBB0_19
LBB0_14:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	sxtw	x8, w25
	mov	w9, #24
	madd	x9, x8, x9, x22
	add	x26, x9, #8
	sxtw	x27, w24
	add	x28, x8, #1
	add	x19, x9, #16
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	x28, x28, #1
	sub	x19, x19, #24
	sub	w25, w25, #1
	cmp	x28, x27
	b.le	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x19, #-8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_rate_supported
	cmp	x0, #0
	csel	w24, w24, w25, eq
	b	LBB0_15
LBB0_18:
	mov	x25, #-1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
LBB0_19:
	mov	w8, #24
	smaddl	x8, w24, w8, x22
	add	x19, x8, #16
	add	x8, x25, x25, lsl #1
	lsl	x22, x8, #3
	add	x8, x25, w24, sxtw
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_rate_supported
	cbnz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	x24, x23
	b.ge	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x19, x19, x22
	add	x8, x24, x25
	tbz	x24, #63, LBB0_20
	b	LBB0_24
LBB0_23:
	ldr	w8, [x19]
	str	w8, [x28]
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rate_control_pid_adjust_rate
.subsections_via_symbols
