	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_update_rx_stats         ## -- Begin function hostap_update_rx_stats
	.p2align	4, 0x90
_hostap_update_rx_stats:                ## @hostap_update_rx_stats
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_spin_lock
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ap_get_sta
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movl	8(%r12), %eax
	movl	%eax, 20(%r15)
	movl	4(%r12), %eax
	movl	%eax, 16(%r15)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movq	_IW_QUAL_ALL_UPDATED@GOTPCREL(%rip), %rcx
	movq	_IW_QUAL_DBM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, 4(%r15)
	cmpl	$54, %eax
	jg	LBB0_7
## %bb.4:
	cmpl	$10, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$20, %eax
	jne	LBB0_13
## %bb.6:
	movq	8(%r15), %rax
	addq	$4, %rax
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_7:
	cmpl	$55, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$110, %eax
	jne	LBB0_13
## %bb.9:
	movq	8(%r15), %rax
	addq	$12, %rax
	jmp	LBB0_12
LBB0_10:
	movq	8(%r15), %rax
	jmp	LBB0_12
LBB0_11:
	movq	8(%r15), %rax
	addq	$8, %rax
LBB0_12:
	incl	(%rax)
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	cmpq	$1, %r15
	sbbl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_QUAL_ALL_UPDATED,4,2        ## @IW_QUAL_ALL_UPDATED
	.comm	_IW_QUAL_DBM,4,2                ## @IW_QUAL_DBM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_update_rx_stats         ; -- Begin function hostap_update_rx_stats
	.p2align	2
_hostap_update_rx_stats:                ; @hostap_update_rx_stats
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	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
	.cfi_remember_state
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ap_get_sta
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.2:
	ldur	d0, [x21, #4]
	str	d0, [x20, #16]
	ldr	w8, [x21]
	str	w8, [x20]
Lloh0:
	adrp	x9, _IW_QUAL_ALL_UPDATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_QUAL_ALL_UPDATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IW_QUAL_DBM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IW_QUAL_DBM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x20, #4]
	cmp	w8, #54
	b.gt	LBB0_7
; %bb.3:
	cmp	w8, #10
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #20
	b.ne	LBB0_13
; %bb.5:
	ldr	x8, [x20, #8]
	add	x8, x8, #4
	b	LBB0_12
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #-1
	ret
LBB0_7:
	.cfi_restore_state
	cmp	w8, #55
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #110
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [x20, #8]
	add	x8, x8, #12
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20, #8]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x20, #8]
	add	x8, x8, #8
LBB0_12:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock
	cmp	x20, #0
	csetm	w0, eq
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_QUAL_ALL_UPDATED,4,2        ; @IW_QUAL_ALL_UPDATED
	.comm	_IW_QUAL_DBM,4,2                ; @IW_QUAL_DBM
.subsections_via_symbols
