	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_vport_rl              ## -- Begin function qed_init_vport_rl
	.p2align	4, 0x90
_qed_init_vport_rl:                     ## @qed_init_vport_rl
	.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, %r14
	movq	_MAX_QM_GLOBAL_RLS@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jle	LBB0_1
## %bb.3:
	movq	%r8, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	testq	%rcx, %rcx
	cmoveq	%r8, %rcx
	movq	%rcx, %rdi
	callq	_QM_RL_INC_VAL
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_QM_VP_RL_MAX_INC_VAL
	cmpq	%rax, %r12
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_QM_REG_RLGLBLCRD@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	_QM_RL_CRD_REG_SIGN_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_wr
	movq	_QM_REG_RLGLBLINCVAL@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_qed_wr
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %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,8,3           ## @QM_REG_RLGLBLCRD
	.comm	_QM_RL_CRD_REG_SIGN_BIT,8,3     ## @QM_RL_CRD_REG_SIGN_BIT
	.comm	_QM_REG_RLGLBLINCVAL,8,3        ## @QM_REG_RLGLBLINCVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_vport_rl              ; -- Begin function qed_init_vport_rl
	.p2align	2
_qed_init_vport_rl:                     ; @qed_init_vport_rl
	.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
Lloh0:
	adrp	x8, _MAX_QM_GLOBAL_RLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_QM_GLOBAL_RLS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.le	LBB0_3
; %bb.1:
	mov	x23, x4
	mov	x22, x2
	mov	x20, x1
	cmp	x3, #0
	csel	x0, x4, x3, eq
	bl	_QM_RL_INC_VAL
	mov	x21, x0
	mov	x0, x23
	bl	_QM_VP_RL_MAX_INC_VAL
	cmp	x21, x0
	b.le	LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _QM_REG_RLGLBLCRD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QM_REG_RLGLBLCRD@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	lsl	x22, x22, #2
	add	x2, x8, x22
Lloh10:
	adrp	x8, _QM_RL_CRD_REG_SIGN_BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QM_RL_CRD_REG_SIGN_BIT@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_wr
Lloh13:
	adrp	x8, _QM_REG_RLGLBLINCVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QM_REG_RLGLBLINCVAL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x2, x8, x22
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_qed_wr
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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,8,3           ; @QM_REG_RLGLBLCRD
	.comm	_QM_RL_CRD_REG_SIGN_BIT,8,3     ; @QM_RL_CRD_REG_SIGN_BIT
	.comm	_QM_REG_RLGLBLINCVAL,8,3        ; @QM_REG_RLGLBLINCVAL
.subsections_via_symbols
