	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_qdisc_graft
_nfp_abm_qdisc_graft:                   ## @nfp_abm_qdisc_graft
	.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	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r14
	callq	_nfp_abm_qdisc_find
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%r12d, %ecx
	setbe	%dil
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	leal	1(%r12), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_nfp_abm_qdisc_unlink_children
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_nfp_abm_qdisc_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	16(%rax)
	jmp	LBB0_6
LBB0_5:
	movq	_NFP_QDISC_UNTRACKED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	8(%rbx), %rcx
	movl	%r12d, %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	%r14, %rdi
	callq	_nfp_abm_qdisc_offload_update
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"graft child out of bound %d >= %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_QDISC_UNTRACKED,8,3        ## @NFP_QDISC_UNTRACKED
	.no_dead_strip	_nfp_abm_qdisc_graft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_qdisc_graft
_nfp_abm_qdisc_graft:                   ; @nfp_abm_qdisc_graft
	.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, x3
	mov	x22, x2
	mov	x20, x0
	bl	_nfp_abm_qdisc_find
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w3, [x0]
	cmp	w3, w19
	cset	w0, ls
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WARN
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	add	w2, w19, #1
	mov	x0, x21
	mov	x1, x19
	bl	_nfp_abm_qdisc_unlink_children
	mov	x0, x20
	mov	x1, x22
	bl	_nfp_abm_qdisc_find
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x0, #16]
	add	w8, w8, #1
	str	w8, [x0, #16]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _NFP_QDISC_UNTRACKED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFP_QDISC_UNTRACKED@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_6:
	ldr	x8, [x21, #8]
	str	x0, [x8, w19, uxtw #3]
	mov	x0, x20
	bl	_nfp_abm_qdisc_offload_update
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"graft child out of bound %d >= %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_QDISC_UNTRACKED,8,3        ; @NFP_QDISC_UNTRACKED
	.no_dead_strip	_nfp_abm_qdisc_graft
.subsections_via_symbols
