	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsi_get_num_pkts_dequeue
_rsi_get_num_pkts_dequeue:              ## @rsi_get_num_pkts_dequeue
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rsi,4), %r15d
	movq	_RSI_RATE_MCS0@GOTPCREL(%rip), %rax
	imull	$50, (%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_VI_Q@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.2:
	shll	$10, %r15d
	movslq	%r15d, %rax
	imulq	$1717986919, %rax, %r15         ## imm = 0x66666667
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$37, %r15
	addl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	shll	$5, %r15d
LBB0_3:
	shlq	$2, %rbx
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rdi
	callq	_skb_peek
	movq	%rax, %r12
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_rsi_get_vif
	movl	(%rbx), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edx
	movl	8(%r12), %ecx
	movq	%rax, %rsi
	leaq	-48(%rbp), %r8
	callq	_ieee80211_generic_frame_duration
	movl	%eax, %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movq	(%rbx), %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_skb_queue_len
	cmpq	%rax, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %r15d
	movq	(%r12), %r12
	leaq	1(%r13), %rax
	testl	%r15d, %r15d
	jg	LBB0_6
	jmp	LBB0_8
LBB0_4:
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSI_RATE_MCS0,4,2              ## @RSI_RATE_MCS0
	.comm	_VI_Q,8,3                       ## @VI_Q
	.no_dead_strip	_rsi_get_num_pkts_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsi_get_num_pkts_dequeue
_rsi_get_num_pkts_dequeue:              ; @rsi_get_num_pkts_dequeue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x21, [x0, #16]
	ldr	w8, [x8, x1, lsl #2]
Lloh0:
	adrp	x9, _RSI_RATE_MCS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RSI_RATE_MCS0@GOTPAGEOFF]
	lsl	w10, w8, #5
Lloh2:
	ldr	w9, [x9]
	mov	w11, #50
	mul	w9, w9, w11
Lloh3:
	adrp	x11, _VI_Q@GOTPAGE
Lloh4:
	ldr	x11, [x11, _VI_Q@GOTPAGEOFF]
	str	w9, [sp, #8]
Lloh5:
	ldr	x9, [x11]
	cmp	x9, x1
	lsl	w8, w8, #10
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	csel	w25, w10, w8, ne
	ldr	x8, [x0]
	add	x0, x8, x1, lsl #2
	bl	_skb_queue_len
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	bl	_skb_peek
	mov	x22, x0
	mov	w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldr	x8, [x22, #16]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rsi_get_vif
	mov	x1, x0
	ldr	w0, [x21]
	ldr	w2, [x20, #8]
	ldr	w3, [x22, #8]
	add	x4, sp, #8
	bl	_ieee80211_generic_frame_duration
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	bl	_skb_queue_len
	cmp	x23, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w25, w25, w24
	ldr	x22, [x22]
	add	x8, x23, #1
	cmp	w25, #0
	b.gt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSI_RATE_MCS0,4,2              ; @RSI_RATE_MCS0
	.comm	_VI_Q,8,3                       ; @VI_Q
	.no_dead_strip	_rsi_get_num_pkts_dequeue
.subsections_via_symbols
