	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qdisc_calculate_pkt_len        ## -- Begin function qdisc_calculate_pkt_len
	.p2align	4, 0x90
_qdisc_calculate_pkt_len:               ## @qdisc_calculate_pkt_len
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %r13d
	addl	(%rdi), %r13d
	xorl	%edi, %edi
	cmpl	$0, 12(%rsi)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	addl	16(%r15), %r13d
	movl	%r13d, %edi
	shrl	$31, %edi
	callq	_unlikely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	movb	20(%r15), %cl
	sarl	%cl, %r12d
	xorl	%edi, %edi
	cmpl	12(%r15), %r12d
	setl	%dil
	callq	_likely
	movq	(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movslq	%r12d, %rax
	movl	(%rcx,%rax,4), %r13d
	jmp	LBB0_4
LBB0_3:
	movslq	12(%r15), %rsi
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r13d
	imull	-4(%rcx,%rsi,4), %r13d
	movslq	%edx, %rax
	addl	(%rcx,%rax,4), %r13d
LBB0_4:
	movb	24(%r15), %cl
	shll	%cl, %r13d
LBB0_5:
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	$1, %ebx
	cmovel	%r13d, %ebx
	movq	%r14, %rdi
	callq	_qdisc_skb_cb
	movl	%ebx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qdisc_calculate_pkt_len        ; -- Begin function qdisc_calculate_pkt_len
	.p2align	2
_qdisc_calculate_pkt_len:               ; @qdisc_calculate_pkt_len
	.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, x1
	mov	x19, x0
	ldr	w8, [x0]
	ldp	w9, w10, [x1, #8]
	add	w21, w9, w8
	cmp	w10, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20, #16]
	add	w21, w8, w21
	lsr	w0, w21, #31
	bl	_unlikely
	cmp	x0, #0
	csel	w8, w21, wzr, eq
	ldr	w9, [x20, #20]
	asr	w21, w8, w9
	ldr	w8, [x20, #12]
	cmp	w21, w8
	cset	w0, lt
	bl	_likely
	ldr	x8, [x20]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x8, w21, sxtw #2]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20, #12]
	sub	w10, w9, #1
	ldr	w10, [x8, w10, sxtw #2]
	sdiv	w11, w21, w9
	msub	w9, w11, w9, w21
	ldr	w8, [x8, w9, sxtw #2]
	madd	w8, w11, w10, w8
LBB0_4:
	ldr	w9, [x20, #24]
	lsl	w21, w8, w9
LBB0_5:
	cmp	w21, #1
	cset	w0, lt
	bl	_unlikely
	cmp	x0, #0
	csinc	w20, w21, wzr, eq
	mov	x0, x19
	bl	_qdisc_skb_cb
	str	w20, [x0]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
