	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htb_graft
_htb_graft:                             ## @htb_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
	cmpq	$0, 16(%rsi)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_3:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_qdisc_dev
	movl	4(%r14), %esi
	movl	8(%rbx), %ecx
	movq	_pfifo_qdisc_ops@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	callq	_qdisc_create_dflt
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_sch_tree_lock
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	%r12, (%rbx)
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movl	(%rdi), %esi
	callq	_qdisc_tree_decrease_qlen
	movq	(%r15), %rdi
	callq	_qdisc_reset
LBB0_8:
	movq	%r14, %rdi
	callq	_sch_tree_unlock
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pfifo_qdisc_ops,4,2            ## @pfifo_qdisc_ops
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_htb_graft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htb_graft
_htb_graft:                             ; @htb_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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	cbnz	x2, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_qdisc_dev
	ldr	w1, [x19, #4]
	ldr	w3, [x21, #8]
Lloh2:
	adrp	x2, _pfifo_qdisc_ops@GOTPAGE
Lloh3:
	ldr	x2, [x2, _pfifo_qdisc_ops@GOTPAGEOFF]
	bl	_qdisc_create_dflt
	mov	x22, x0
	cbz	x0, LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_sch_tree_lock
	ldr	x8, [x21]
	str	x8, [x20]
	str	x22, [x21]
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x0]
	bl	_qdisc_tree_decrease_qlen
	ldr	x0, [x20]
	bl	_qdisc_reset
LBB0_7:
	mov	x0, x19
	bl	_sch_tree_unlock
	mov	w0, #0
LBB0_8:
	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_9:
Lloh4:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pfifo_qdisc_ops,4,2            ; @pfifo_qdisc_ops
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_htb_graft
.subsections_via_symbols
