	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nfp_abm_ctrl_set_q_lvl       ## -- Begin function __nfp_abm_ctrl_set_q_lvl
	.p2align	4, 0x90
___nfp_abm_ctrl_set_q_lvl:              ## @__nfp_abm_ctrl_set_q_lvl
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	12(%rdi), %esi
	movl	%r12d, %edi
	callq	___clear_bit
	movq	(%rbx), %rax
	movl	%r12d, %r15d
	xorl	%r13d, %r13d
	cmpl	%r14d, (%rax,%r15,4)
	je	LBB0_4
## %bb.1:
	movq	_NFP_QLVL_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	imull	%r12d, %r8d
	movq	_NFP_QLVL_THRS@GOTPCREL(%rip), %rax
	addq	(%rax), %r8
	movl	8(%rbx), %esi
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r9d
	callq	___nfp_rtsym_writel
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%eax, %r13d
	callq	_nfp_err
	jmp	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movl	%r14d, (%rax,%r15,4)
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_QLVL_STRIDE,4,2            ## @NFP_QLVL_STRIDE
	.comm	_NFP_QLVL_THRS,8,3              ## @NFP_QLVL_THRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RED offload setting level failed on subqueue %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nfp_abm_ctrl_set_q_lvl       ; -- Begin function __nfp_abm_ctrl_set_q_lvl
	.p2align	2
___nfp_abm_ctrl_set_q_lvl:              ; @__nfp_abm_ctrl_set_q_lvl
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	w1, [x0, #12]
	mov	x0, x19
	bl	___clear_bit
	ldr	x8, [x21]
	ldr	w8, [x8, w19, uxtw #2]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _NFP_QLVL_STRIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_QLVL_STRIDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, w19
Lloh3:
	adrp	x9, _NFP_QLVL_THRS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_QLVL_THRS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x4, x9, x8
	ldr	w1, [x21, #8]
	mov	x0, x22
	mov	w2, #4
	mov	w3, #0
	mov	x5, x20
	bl	___nfp_rtsym_writel
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_nfp_err
	b	LBB0_5
LBB0_4:
	mov	w8, w19
	ldr	x9, [x21]
	str	w20, [x9, x8, lsl #2]
LBB0_5:
	mov	x0, x23
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_QLVL_STRIDE,4,2            ; @NFP_QLVL_STRIDE
	.comm	_NFP_QLVL_THRS,8,3              ; @NFP_QLVL_THRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RED offload setting level failed on subqueue %d\n"

.subsections_via_symbols
