	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_abm_ctrl_prio_map_update   ## -- Begin function nfp_abm_ctrl_prio_map_update
	.p2align	4, 0x90
_nfp_abm_ctrl_prio_map_update:          ## @nfp_abm_ctrl_prio_map_update
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	_NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nfp_net_mbox_lock
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_NFP_NET_ABM_MBOX_DATALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nn_writeq
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_NFP_NET_ABM_MBOX_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movq	(%r14), %rsi
	addq	%rax, %rsi
	addq	(%r13), %rsi
	movl	(%r15,%rax), %edx
	movq	%r14, %rdi
	callq	_nn_writel
	addl	$4, %ebx
	movq	(%r12), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nfp_net_mbox_reconfig_and_unlock
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r13d
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_nfp_err
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	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_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET,4,2 ## @NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET
	.comm	_NFP_NET_ABM_MBOX_DATALEN,8,3   ## @NFP_NET_ABM_MBOX_DATALEN
	.comm	_NFP_NET_ABM_MBOX_DATA,8,3      ## @NFP_NET_ABM_MBOX_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting DSCP -> VQ map failed with error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_abm_ctrl_prio_map_update   ; -- Begin function nfp_abm_ctrl_prio_map_update
	.p2align	2
_nfp_abm_ctrl_prio_map_update:          ; @nfp_abm_ctrl_prio_map_update
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldp	x8, x22, [x0]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_nfp_net_mbox_lock
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _NFP_NET_ABM_MBOX_DATALEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_NET_ABM_MBOX_DATALEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_nn_writeq
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w23, #0
Lloh6:
	adrp	x24, _NFP_NET_ABM_MBOX_DATA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NFP_NET_ABM_MBOX_DATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	mov	w10, w23
	add	x8, x8, x10
	add	x1, x8, x9
	ldr	w2, [x21, x10]
	mov	x0, x22
	bl	_nn_writel
	add	w23, w23, #4
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w23, w8
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x22
	mov	x1, x20
	bl	_nfp_net_mbox_reconfig_and_unlock
	mov	x23, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_nfp_err
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET,4,2 ; @NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET
	.comm	_NFP_NET_ABM_MBOX_DATALEN,8,3   ; @NFP_NET_ABM_MBOX_DATALEN
	.comm	_NFP_NET_ABM_MBOX_DATA,8,3      ; @NFP_NET_ABM_MBOX_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting DSCP -> VQ map failed with error %d\n"

.subsections_via_symbols
