	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_abm_ctrl_find_addrs        ## -- Begin function nfp_abm_ctrl_find_addrs
	.p2align	4, 0x90
_nfp_abm_ctrl_find_addrs:               ## @nfp_abm_ctrl_find_addrs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %rax
	movq	(%rax), %r15
	movl	(%r15), %edi
	callq	_nfp_cppcore_pcie_unit
	movl	%eax, 48(%r14)
	movq	_NFP_RED_SUPPORT_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_nfp_pf_rtsym_read_optional
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movl	%ebx, (%r14)
	movq	_NFP_NUM_BANDS_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_nfp_pf_rtsym_read_optional
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	%ebx, 4(%r14)
	movq	_NFP_NUM_PRIOS_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_nfp_pf_rtsym_read_optional
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movl	%ebx, 8(%r14)
	movq	_NFP_ACT_MASK_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_NFP_ABM_ACT_MARK_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nfp_pf_rtsym_read_optional
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:
	movl	%ebx, 12(%r14)
	movq	%r14, %rdi
	callq	_nfp_abm_ctrl_prio_map_size
	movl	%eax, 44(%r14)
	movl	8(%r14), %edi
	callq	_order_base_2
	movl	$8, %esi
	subq	%rax, %rsi
	movl	$7, %edi
	callq	_GENMASK
	movl	%eax, 40(%r14)
	movl	4(%r14), %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	8(%r14), %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	4(%r14), %eax
	movq	_U16_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jg	LBB0_9
## %bb.7:
	movl	8(%r14), %ecx
	cmpl	%edx, %ecx
	jg	LBB0_9
## %bb.8:
	cmpl	$1, %eax
	setne	%al
	cmpl	$1, %ecx
	sete	%cl
	xorb	%al, %cl
	je	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.11:
	movq	_NFP_QLVL_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFP_QLVL_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nfp_abm_ctrl_find_q_rtsym
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	movq	%r15, 32(%r14)
	movq	_NFP_QMSTAT_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFP_QMSTAT_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nfp_abm_ctrl_find_q_rtsym
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
LBB0_17:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movl	(%r15), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_nfp_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, 24(%r14)
	movq	%r14, %rdi
	callq	_nfp_abm_has_prio
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_NFP_Q_STAT_SYM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFP_Q_STAT_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nfp_abm_ctrl_find_q_rtsym
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	%r15, 16(%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_RED_SUPPORT_SYM_NAME,4,2   ## @NFP_RED_SUPPORT_SYM_NAME
	.comm	_NFP_NUM_BANDS_SYM_NAME,4,2     ## @NFP_NUM_BANDS_SYM_NAME
	.comm	_NFP_NUM_PRIOS_SYM_NAME,4,2     ## @NFP_NUM_PRIOS_SYM_NAME
	.comm	_NFP_ACT_MASK_SYM_NAME,4,2      ## @NFP_ACT_MASK_SYM_NAME
	.comm	_NFP_ABM_ACT_MARK_DROP,4,2      ## @NFP_ABM_ACT_MARK_DROP
	.comm	_U16_MAX,4,2                    ## @U16_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid priomap description num bands: %u and num prios: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_QLVL_SYM_NAME,4,2          ## @NFP_QLVL_SYM_NAME
	.comm	_NFP_QLVL_STRIDE,4,2            ## @NFP_QLVL_STRIDE
	.comm	_NFP_QMSTAT_SYM_NAME,4,2        ## @NFP_QMSTAT_SYM_NAME
	.comm	_NFP_QMSTAT_STRIDE,4,2          ## @NFP_QMSTAT_STRIDE
	.comm	_NFP_Q_STAT_SYM_NAME,4,2        ## @NFP_Q_STAT_SYM_NAME
	.comm	_NFP_Q_STAT_STRIDE,4,2          ## @NFP_Q_STAT_STRIDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_abm_ctrl_find_addrs        ; -- Begin function nfp_abm_ctrl_find_addrs
	.p2align	2
_nfp_abm_ctrl_find_addrs:               ; @nfp_abm_ctrl_find_addrs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x20, [x8]
	ldr	w0, [x20]
	bl	_nfp_cppcore_pcie_unit
	str	w0, [x19, #48]
Lloh0:
	adrp	x8, _NFP_RED_SUPPORT_SYM_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_RED_SUPPORT_SYM_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_nfp_pf_rtsym_read_optional
	tbnz	w0, #31, LBB0_14
; %bb.1:
	str	w0, [x19]
Lloh3:
	adrp	x8, _NFP_NUM_BANDS_SYM_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_NUM_BANDS_SYM_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_nfp_pf_rtsym_read_optional
	tbnz	w0, #31, LBB0_14
; %bb.2:
	str	w0, [x19, #4]
Lloh6:
	adrp	x8, _NFP_NUM_PRIOS_SYM_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_NUM_PRIOS_SYM_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_nfp_pf_rtsym_read_optional
	tbnz	w0, #31, LBB0_14
; %bb.3:
	str	w0, [x19, #8]
Lloh9:
	adrp	x8, _NFP_ACT_MASK_SYM_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFP_ACT_MASK_SYM_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _NFP_ABM_ACT_MARK_DROP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFP_ABM_ACT_MARK_DROP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nfp_pf_rtsym_read_optional
	tbnz	w0, #31, LBB0_14
; %bb.4:
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_nfp_abm_ctrl_prio_map_size
	str	w0, [x19, #44]
	ldr	w0, [x19, #8]
	bl	_order_base_2
	mov	w8, #8
	sub	x1, x8, x0
	mov	w0, #7
	bl	_GENMASK
	str	w0, [x19, #40]
	ldr	w0, [x19, #4]
	bl	_is_power_of_2
	cbz	w0, LBB0_13
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_is_power_of_2
	cbz	w0, LBB0_13
; %bb.6:
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _U16_MAX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _U16_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x9]
	cmp	w8, w10
	b.gt	LBB0_13
; %bb.7:
	ldr	w9, [x19, #8]
	cmp	w9, w10
	b.gt	LBB0_13
; %bb.8:
	cmp	w8, #1
	cset	w8, ne
	cmp	w9, #1
	cset	w9, eq
	eor	w8, w8, w9
	tbz	w8, #0, LBB0_13
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.10:
Lloh18:
	adrp	x8, _NFP_QLVL_SYM_NAME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NFP_QLVL_SYM_NAME@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _NFP_QLVL_STRIDE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NFP_QLVL_STRIDE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nfp_abm_ctrl_find_q_rtsym
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.11:
	str	x20, [x19, #32]
Lloh24:
	adrp	x8, _NFP_QMSTAT_SYM_NAME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NFP_QMSTAT_SYM_NAME@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _NFP_QMSTAT_STRIDE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NFP_QMSTAT_STRIDE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nfp_abm_ctrl_find_q_rtsym
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_13:
	ldr	w0, [x20]
	ldp	w2, w3, [x19, #4]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w0, #0
	b	LBB0_14
LBB0_16:
	str	x20, [x19, #24]
	mov	x0, x19
	bl	_nfp_abm_has_prio
	cbz	x0, LBB0_14
; %bb.17:
Lloh35:
	adrp	x8, _NFP_Q_STAT_SYM_NAME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NFP_Q_STAT_SYM_NAME@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _NFP_Q_STAT_STRIDE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NFP_Q_STAT_STRIDE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nfp_abm_ctrl_find_q_rtsym
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.18:
	str	x20, [x19, #16]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_RED_SUPPORT_SYM_NAME,4,2   ; @NFP_RED_SUPPORT_SYM_NAME
	.comm	_NFP_NUM_BANDS_SYM_NAME,4,2     ; @NFP_NUM_BANDS_SYM_NAME
	.comm	_NFP_NUM_PRIOS_SYM_NAME,4,2     ; @NFP_NUM_PRIOS_SYM_NAME
	.comm	_NFP_ACT_MASK_SYM_NAME,4,2      ; @NFP_ACT_MASK_SYM_NAME
	.comm	_NFP_ABM_ACT_MARK_DROP,4,2      ; @NFP_ABM_ACT_MARK_DROP
	.comm	_U16_MAX,4,2                    ; @U16_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid priomap description num bands: %u and num prios: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_QLVL_SYM_NAME,4,2          ; @NFP_QLVL_SYM_NAME
	.comm	_NFP_QLVL_STRIDE,4,2            ; @NFP_QLVL_STRIDE
	.comm	_NFP_QMSTAT_SYM_NAME,4,2        ; @NFP_QMSTAT_SYM_NAME
	.comm	_NFP_QMSTAT_STRIDE,4,2          ; @NFP_QMSTAT_STRIDE
	.comm	_NFP_Q_STAT_SYM_NAME,4,2        ; @NFP_Q_STAT_SYM_NAME
	.comm	_NFP_Q_STAT_STRIDE,4,2          ; @NFP_Q_STAT_STRIDE
.subsections_via_symbols
