	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_rx_stats
_p54_rx_stats:                          ## @p54_rx_stats
	.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	%rdi, %r12
	movq	(%rsi), %rbx
	movq	8(%rbx), %r15
	movq	(%rdi), %rax
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	32(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	cmpq	%r14, 8(%r12)
	jle	LBB0_3
## %bb.2:
	incl	116(%r12)
LBB0_3:
	movq	%r14, 8(%r12)
	movl	28(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 104(%r12)
	movl	24(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 108(%r12)
	movl	20(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 112(%r12)
	movl	16(%r15), %edi
	callq	_le32_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_p54_rssi_to_dbm
	movl	%eax, 64(%r12)
	movl	24(%r12), %eax
	movl	%r14d, %ecx
	subl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_le32_to_cpu
	addl	%eax, %r13d
	incq	%r14
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r14
	jb	LBB0_6
	jmp	LBB0_7
LBB0_4:
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	movl	32(%r12), %r15d
	movl	36(%r12), %r9d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	subl	%r15d, %ecx
	movl	%r13d, %edi
	subl	%r9d, %edi
	movl	40(%r12), %r11d
	movl	%ebx, %esi
	subl	%r11d, %esi
	leal	(%rsi,%rcx), %r8d
	movl	%r8d, %r10d
	addl	%edi, %r10d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
## %bb.8:
	cmpl	$0, 16(%r12)
	sete	%al
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	setb	%dl
	testb	%dl, %al
	jne	LBB0_20
## %bb.9:
	cmpl	%r10d, %ebx
	jb	LBB0_20
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movl	$0, 16(%r12)
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r10d
	cmpl	%r15d, %r14d
	je	LBB0_12
## %bb.11:
	imull	%eax, %ecx
	addl	%ecx, 44(%r12)
	movl	%r14d, 32(%r12)
LBB0_12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r11d, %ecx
	jne	LBB0_13
## %bb.14:
	cmpl	%r9d, %r13d
	jne	LBB0_15
LBB0_16:
	cmpq	$0, 96(%r12)
	jne	LBB0_18
	jmp	LBB0_17
LBB0_13:
	imull	%eax, %esi
	addl	%esi, 48(%r12)
	movl	%ecx, 40(%r12)
	cmpl	%r9d, %r13d
	je	LBB0_16
LBB0_15:
	imull	%eax, %edi
	addl	%edi, 52(%r12)
	movl	%r13d, 36(%r12)
	cmpq	$0, 96(%r12)
	jne	LBB0_18
LBB0_17:
	cmpq	$0, 88(%r12)
	je	LBB0_19
LBB0_18:
	movl	%r8d, %r10d
LBB0_19:
	imull	%r10d, %eax
	addl	%eax, 56(%r12)
LBB0_20:
	movq	80(%r12), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	72(%r12), %r14
	movq	(%rax), %rbx
	movl	64(%r12), %edi
	movl	$-128, %esi
	movl	$127, %edx
	callq	_clamp
	shlq	$4, %rbx
	movl	%eax, 12(%r14,%rbx)
	movl	56(%r12), %edi
	movl	%edi, (%r14,%rbx)
	movl	48(%r12), %eax
	movl	%eax, 4(%r14,%rbx)
	addl	44(%r12), %eax
	movl	%eax, 8(%r14,%rbx)
	movl	$1024, %esi                     ## imm = 0x400
	callq	_do_div
	movl	4(%r14,%rbx), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_do_div
	movl	8(%r14,%rbx), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_do_div
LBB0_22:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_p54_find_and_unlink_skb
	movq	%rax, %rdi
	callq	_dev_kfree_skb_any
	addq	$20, %r12
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_USEC_PER_SEC,4,2               ## @USEC_PER_SEC
	.no_dead_strip	_p54_rx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_rx_stats
_p54_rx_stats:                          ; @p54_rx_stats
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x1]
	ldr	x24, [x22, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x24, #32]
	bl	_le32_to_cpu
	mov	w23, w0
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.le	LBB0_4
; %bb.3:
	ldr	w8, [x19, #116]
	add	w8, w8, #1
	str	w8, [x19, #116]
LBB0_4:
	str	x23, [x19, #8]
	ldr	w0, [x24, #28]
	bl	_le32_to_cpu
	str	w0, [x19, #104]
	ldr	w0, [x24, #24]
	bl	_le32_to_cpu
	str	w0, [x19, #108]
	ldr	w0, [x24, #20]
	bl	_le32_to_cpu
	str	w0, [x19, #112]
	ldr	w0, [x24, #16]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_p54_rssi_to_dbm
	str	w0, [x19, #64]
	ldr	w26, [x19, #24]
	ldr	w0, [x24, #12]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x24, #8]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.5:
	mov	x27, #0
	mov	w25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_le32_to_cpu
	add	w25, w0, w25
	add	x27, x27, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x27, w0, uxtw
	b.lo	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w25, #0
LBB0_8:
	ldp	w16, w12, [x19, #32]
	sub	w15, w21, w16
	ldr	w14, [x19, #40]
	sub	w13, w20, w14
	add	w8, w13, w15
	sub	w11, w25, w12
	adds	w9, w8, w11
	b.eq	LBB0_20
; %bb.9:
Lloh3:
	adrp	x10, _USEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USEC_PER_SEC@GOTPAGEOFF]
	ldr	w17, [x19, #16]
Lloh5:
	ldr	w0, [x10]
	sub	w10, w23, w26
	cmp	w10, w0
	ccmp	w17, #0, #0, lo
	ccmp	w10, w9, #0, ne
	b.lo	LBB0_20
; %bb.10:
	str	x23, [x19, #24]
	str	wzr, [x19, #16]
	udiv	w10, w10, w9
	cmp	w21, w16
	b.ne	LBB0_14
; %bb.11:
	cmp	w20, w14
	b.ne	LBB0_15
LBB0_12:
	cmp	w25, w12
	b.ne	LBB0_16
LBB0_13:
	ldr	x11, [x19, #96]
	cbnz	x11, LBB0_19
	b	LBB0_17
LBB0_14:
	ldr	w16, [x19, #44]
	madd	w15, w10, w15, w16
	str	w15, [x19, #44]
	str	w21, [x19, #32]
	cmp	w20, w14
	b.eq	LBB0_12
LBB0_15:
	ldr	w14, [x19, #48]
	madd	w13, w10, w13, w14
	str	w13, [x19, #48]
	str	w20, [x19, #40]
	cmp	w25, w12
	b.eq	LBB0_13
LBB0_16:
	ldr	w12, [x19, #52]
	madd	w11, w10, w11, w12
	str	w11, [x19, #52]
	str	w25, [x19, #36]
	ldr	x11, [x19, #96]
	cbnz	x11, LBB0_19
LBB0_17:
	ldr	x11, [x19, #88]
	cbnz	x11, LBB0_19
; %bb.18:
	mov	x8, x9
LBB0_19:
	ldr	w9, [x19, #56]
	madd	w8, w10, w8, w9
	str	w8, [x19, #56]
LBB0_20:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x20, [x19, #72]
	ldr	x21, [x8]
	ldr	w0, [x19, #64]
	mov	w1, #-128
	mov	w2, #127
	bl	_clamp
	add	x20, x20, x21, lsl #4
	ldr	w8, [x19, #56]
	ldp	w10, w9, [x19, #44]
	stp	w8, w9, [x20]
	add	w9, w10, w9
	stp	w9, w0, [x20, #8]
	mov	x0, x8
	mov	w1, #1024
	bl	_do_div
	ldr	w0, [x20, #4]
	mov	w1, #1024
	bl	_do_div
	ldr	w0, [x20, #8]
	mov	w1, #1024
	bl	_do_div
LBB0_22:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_p54_find_and_unlink_skb
	bl	_dev_kfree_skb_any
	add	x0, x19, #20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_USEC_PER_SEC,4,2               ; @USEC_PER_SEC
	.no_dead_strip	_p54_rx_stats
.subsections_via_symbols
