	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsmark_graft
_dsmark_graft:                          ## @dsmark_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_qdisc_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_pr_debug
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_qdisc_dev
	movl	4(%r12), %ecx
	movl	8(%r12), %esi
	movq	_pfifo_qdisc_ops@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	callq	_qdisc_create_dflt
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_noop_qdisc@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	%r12, %rdi
	callq	_sch_tree_lock
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	%rbx, (%r15)
	movq	(%r14), %rdi
	movl	(%rdi), %esi
	callq	_qdisc_tree_decrease_qlen
	movq	(%r14), %rdi
	callq	_qdisc_reset
	movq	%r12, %rdi
	callq	_sch_tree_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n"

	.comm	_pfifo_qdisc_ops,4,2            ## @pfifo_qdisc_ops
	.comm	_noop_qdisc,12,2                ## @noop_qdisc
	.no_dead_strip	_dsmark_graft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsmark_graft
_dsmark_graft:                          ; @dsmark_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	x20, x3
	mov	x22, x2
	mov	x19, x0
	bl	_qdisc_priv
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	bl	_pr_debug
	cbnz	x22, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qdisc_dev
	ldp	w3, w1, [x19, #4]
Lloh2:
	adrp	x2, _pfifo_qdisc_ops@GOTPAGE
Lloh3:
	ldr	x2, [x2, _pfifo_qdisc_ops@GOTPAGEOFF]
	bl	_qdisc_create_dflt
Lloh4:
	adrp	x8, _noop_qdisc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _noop_qdisc@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x0, eq
LBB0_2:
	mov	x0, x19
	bl	_sch_tree_lock
	ldr	x8, [x21]
	str	x8, [x20]
	str	x22, [x21]
	ldr	x0, [x20]
	ldr	w1, [x0]
	bl	_qdisc_tree_decrease_qlen
	ldr	x0, [x20]
	bl	_qdisc_reset
	mov	x0, x19
	bl	_sch_tree_unlock
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n"

	.comm	_pfifo_qdisc_ops,4,2            ; @pfifo_qdisc_ops
	.comm	_noop_qdisc,12,2                ; @noop_qdisc
	.no_dead_strip	_dsmark_graft
.subsections_via_symbols
