	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_vport_rl_rt_init
_qed_vport_rl_rt_init:                  ## @qed_vport_rl_rt_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	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rsi), %rax
	movq	_MAX_QM_GLOBAL_RLS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_8
## %bb.4:
	movq	%rsi, %r14
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edi
	testl	%edi, %edi
	cmovel	%r12d, %edi
	callq	_QM_RL_INC_VAL
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_QM_VP_RL_MAX_INC_VAL
	cmpl	%eax, %ebx
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_QM_REG_RLGLBLCRD_RT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	_QM_RL_CRD_REG_SIGN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_STORE_RT_REG
	movl	%r12d, %ebx
	movq	_QM_REG_RLGLBLUPPERBOUND_RT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	%r14, %r12
	movl	%ebx, %edi
	callq	_QM_VP_RL_UPPER_BOUND
	movq	_QM_RL_CRD_REG_SIGN_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %r12d
	movl	%eax, %edx
	callq	_STORE_RT_REG
	movq	_QM_REG_RLGLBLINCVAL_RT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_STORE_RT_REG
	incq	%r15
	incq	%r14
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_DP_NOTICE
	movl	$-1, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QM_GLOBAL_RLS,8,3          ## @MAX_QM_GLOBAL_RLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VPORT ID for rate limiter configuration\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid VPORT rate-limit configuration\n"

	.comm	_QM_REG_RLGLBLCRD_RT_OFFSET,8,3 ## @QM_REG_RLGLBLCRD_RT_OFFSET
	.comm	_QM_RL_CRD_REG_SIGN_BIT,8,3     ## @QM_RL_CRD_REG_SIGN_BIT
	.comm	_QM_REG_RLGLBLUPPERBOUND_RT_OFFSET,8,3 ## @QM_REG_RLGLBLUPPERBOUND_RT_OFFSET
	.comm	_QM_REG_RLGLBLINCVAL_RT_OFFSET,8,3 ## @QM_REG_RLGLBLINCVAL_RT_OFFSET
	.no_dead_strip	_qed_vport_rl_rt_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_vport_rl_rt_init
_qed_vport_rl_rt_init:                  ; @qed_vport_rl_rt_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, x0
Lloh0:
	adrp	x8, _MAX_QM_GLOBAL_RLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_QM_GLOBAL_RLS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x2, x1
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.1:
	mov	x22, x2
	cmp	x2, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	mov	x24, x1
Lloh3:
	adrp	x28, _QM_RL_CRD_REG_SIGN_BIT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _QM_RL_CRD_REG_SIGN_BIT@GOTPAGEOFF]
Lloh5:
	adrp	x23, _QM_REG_RLGLBLUPPERBOUND_RT_OFFSET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _QM_REG_RLGLBLUPPERBOUND_RT_OFFSET@GOTPAGEOFF]
Lloh7:
	adrp	x27, _QM_REG_RLGLBLINCVAL_RT_OFFSET@GOTPAGE
Lloh8:
	ldr	x27, [x27, _QM_REG_RLGLBLINCVAL_RT_OFFSET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #0
	csel	w0, w21, w8, eq
	bl	_QM_RL_INC_VAL
	mov	x25, x0
	mov	x0, x21
	bl	_QM_VP_RL_MAX_INC_VAL
	cmp	w25, w0
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _QM_REG_RLGLBLCRD_RT_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QM_REG_RLGLBLCRD_RT_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x24, x8
	ldr	w2, [x28]
	mov	x0, x19
	bl	_STORE_RT_REG
	ldr	x8, [x23]
	add	x26, x24, x8
	mov	x0, x21
	bl	_QM_VP_RL_UPPER_BOUND
	ldr	w8, [x28]
	orr	w2, w0, w8
	mov	x0, x19
	mov	x1, x26
	bl	_STORE_RT_REG
	ldr	x8, [x27]
	add	x1, x24, x8
	mov	x0, x19
	mov	x2, x25
	bl	_STORE_RT_REG
	add	x24, x24, #1
	add	x20, x20, #4
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #-1
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QM_GLOBAL_RLS,8,3          ; @MAX_QM_GLOBAL_RLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VPORT ID for rate limiter configuration\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid VPORT rate-limit configuration\n"

	.comm	_QM_REG_RLGLBLCRD_RT_OFFSET,8,3 ; @QM_REG_RLGLBLCRD_RT_OFFSET
	.comm	_QM_RL_CRD_REG_SIGN_BIT,8,3     ; @QM_RL_CRD_REG_SIGN_BIT
	.comm	_QM_REG_RLGLBLUPPERBOUND_RT_OFFSET,8,3 ; @QM_REG_RLGLBLUPPERBOUND_RT_OFFSET
	.comm	_QM_REG_RLGLBLINCVAL_RT_OFFSET,8,3 ; @QM_REG_RLGLBLINCVAL_RT_OFFSET
	.no_dead_strip	_qed_vport_rl_rt_init
.subsections_via_symbols
