	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htb_parent_to_leaf
_htb_parent_to_leaf:                    ## @htb_parent_to_leaf
	.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	%rdx, %r15
	movq	%rdi, %r14
	movq	80(%rsi), %rbx
	movl	$1, %edi
	cmpq	$0, 56(%rsi)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rsi)
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 72(%rsi)
	setne	%dil
LBB0_3:
	callq	_WARN_ON
	movq	(%rbx), %rax
	movq	_HTB_CAN_SEND@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.4:
	leaq	64(%rbx), %rdi
	movq	56(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_htb_safe_rb_erase
LBB0_5:
	movq	$0, 56(%rbx)
	leaq	48(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	testq	%r15, %r15
	jne	LBB0_7
## %bb.6:
	movq	_noop_qdisc@GOTPCREL(%rip), %r15
LBB0_7:
	movq	%r15, 32(%rbx)
	movl	12(%rbx), %eax
	movl	20(%rbx), %ecx
	movl	%ecx, 24(%rbx)
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_psched_get_time
	movl	%eax, 8(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTB_CAN_SEND,8,3               ## @HTB_CAN_SEND
	.comm	_noop_qdisc,4,2                 ## @noop_qdisc
	.no_dead_strip	_htb_parent_to_leaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htb_parent_to_leaf
_htb_parent_to_leaf:                    ; @htb_parent_to_leaf
	.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, x2
	mov	x20, x0
	ldr	x21, [x1, #80]
	ldr	x8, [x1, #56]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_4
LBB0_2:
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_1
; %bb.3:
	ldr	x8, [x1, #72]
	cmp	x8, #0
	cset	w0, ne
LBB0_4:
	bl	_WARN_ON
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _HTB_CAN_SEND@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HTB_CAN_SEND@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	add	x0, x21, #64
	ldr	x8, [x20]
	ldr	x9, [x21, #56]
	add	x1, x9, x8
	bl	_htb_safe_rb_erase
LBB0_6:
	str	xzr, [x21, #56]
	add	x0, x21, #48
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x21, #40
	bl	_INIT_LIST_HEAD
Lloh2:
	adrp	x8, _noop_qdisc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _noop_qdisc@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x8, x19, eq
	str	x8, [x21, #32]
	ldr	w8, [x21, #20]
	str	w8, [x21, #24]
	ldr	w8, [x21, #12]
	str	w8, [x21, #16]
	bl	_psched_get_time
	str	w0, [x21, #8]
	ldr	x8, [x22]
	str	x8, [x21]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HTB_CAN_SEND,8,3               ; @HTB_CAN_SEND
	.comm	_noop_qdisc,4,2                 ; @noop_qdisc
	.no_dead_strip	_htb_parent_to_leaf
.subsections_via_symbols
