	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_update_band_map
_nfp_abm_update_band_map:               ## @nfp_abm_update_band_map
	.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	%rdi, %rbx
	movq	24(%rdi), %r14
	addq	$16, %rdi
	callq	_list_empty
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, (%rbx)
	movl	(%r14), %edi
	callq	_order_base_2
	movl	%eax, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %ecx
	movl	$-1, %r15d
	shll	%cl, %r15d
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movl	%ecx, %r12d
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%r12
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %r13d
LBB0_3:
	movl	4(%r14), %edi
	callq	_order_base_2
	cmpl	$0, 4(%r14)
	movq	%rbx, %r8
	je	LBB0_6
## %bb.4:
	movl	%r15d, %r9d
	notl	%r9d
	movl	$8, %ecx
	subl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	imull	%edx, %r14d
	movq	%r12, %r15
	movl	%r9d, %r12d
	movl	%ebx, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	%r8, %r13
	movq	%r8, %rdi
	callq	_nfp_abm_find_band_for_prio
	movq	%r13, %r8
	movl	%r12d, %r9d
	movq	%r15, %r12
	movl	%r9d, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	notl	%edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	andl	(%rdi,%rsi,4), %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, (%rdi,%rsi,4)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	incl	%ebx
	cmpl	4(%r14), %ebx
	jb	LBB0_5
LBB0_6:
	movq	%r8, %rbx
	movq	%r8, %rdi
	callq	_nfp_abm_qdisc_offload_update
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_abm_ctrl_prio_map_update   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.no_dead_strip	_nfp_abm_update_band_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_update_band_map
_nfp_abm_update_band_map:               ; @nfp_abm_update_band_map
	.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
	ldr	x21, [x0, #24]
	add	x0, x0, #16
	bl	_list_empty
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x19]
	ldr	w0, [x21]
	bl	_order_base_2
	bl	_roundup_pow_of_two
	mov	x20, x0
Lloh0:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh2:
	ldrsw	x24, [x8]
	ldr	w0, [x21, #4]
	bl	_order_base_2
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w22, #0
	mov	w8, #-1
	lsl	w8, w8, w20
	mov	w9, w20
	mvn	w23, w8
	lsl	x8, x24, #2
	mov	w10, #8
	sub	w24, w10, w0
	udiv	x25, x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #8]
	udiv	w8, w22, w25
	lsl	x27, x8, #2
	msub	w8, w8, w25, w22
	mul	w28, w8, w20
	lsl	w1, w22, w24
	mov	x0, x19
	bl	_nfp_abm_find_band_for_prio
	lsl	w8, w23, w28
	ldr	w9, [x26, x27]
	bic	w8, w9, w8
	lsl	w9, w0, w28
	orr	w8, w8, w9
	str	w8, [x26, x27]
	add	w22, w22, #1
	ldr	w8, [x21, #4]
	cmp	w22, w8
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_nfp_abm_qdisc_offload_update
	ldr	x1, [x19, #8]
	mov	x0, x19
	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
	b	_nfp_abm_ctrl_prio_map_update
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.no_dead_strip	_nfp_abm_update_band_map
.subsections_via_symbols
