	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_process_rssi         ## -- Begin function ath9k_cmn_process_rssi
	.p2align	4, 0x90
_ath9k_cmn_process_rssi:                ## @ath9k_cmn_process_rssi
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 24(%rdx)
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movl	(%rdx), %eax
	movq	_ATH9K_RSSI_BAD@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_3
LBB0_1:
	movq	_RX_FLAG_NO_SIGNAL_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rcx)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %r14d
	movq	_ATH9K_RSSI_BAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_BIT
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	addl	4(%r12), %r14d
	movq	8(%rcx), %rax
	movslq	%r15d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	jmp	LBB0_8
LBB0_10:
	cmpq	$0, 16(%r13)
	je	LBB0_16
## %bb.11:
	movq	8(%r12), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_13:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_ATH_RSSI_LPF
	movl	(%rbx), %ebx
	movq	_ATH_RSSI_DUMMY_MARKER@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_15
## %bb.14:
	movq	_ATH_RSSI_EP_MULTIPLIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ATH_EP_RND
LBB0_15:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, 16(%r12)
LBB0_16:
	movl	(%r13), %eax
	addl	4(%r12), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FLAG_NO_SIGNAL_VAL,4,2      ## @RX_FLAG_NO_SIGNAL_VAL
	.comm	_ATH9K_RSSI_BAD,4,2             ## @ATH9K_RSSI_BAD
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_ATH_RSSI_DUMMY_MARKER,4,2      ## @ATH_RSSI_DUMMY_MARKER
	.comm	_ATH_RSSI_EP_MULTIPLIER,4,2     ## @ATH_RSSI_EP_MULTIPLIER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_process_rssi         ; -- Begin function ath9k_cmn_process_rssi
	.p2align	2
_ath9k_cmn_process_rssi:                ; @ath9k_cmn_process_rssi
	.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, x3
	ldr	x8, [x2, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x2
	ldr	w21, [x2]
Lloh0:
	adrp	x26, _ATH9K_RSSI_BAD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ATH9K_RSSI_BAD@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w21, w8
	b.ne	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _RX_FLAG_NO_SIGNAL_VAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RX_FLAG_NO_SIGNAL_VAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_3:
	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_4:
	mov	x22, x0
	ldr	x25, [x0, #8]
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x23, #0
	mov	w24, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x25]
	mov	x0, x23
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	ldr	w27, [x8, x23, lsl #2]
	ldr	w8, [x26]
	cmp	w27, w8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	w8, [x25, #4]
	add	w8, w8, w27
	ldr	x9, [x19, #8]
	str	w8, [x9, w24, sxtw #2]
	b	LBB0_6
LBB0_11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	x8, [x25, #8]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.13:
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_ATH_RSSI_LPF
	ldr	w22, [x22]
Lloh11:
	adrp	x8, _ATH_RSSI_DUMMY_MARKER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH_RSSI_DUMMY_MARKER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_15
; %bb.14:
Lloh14:
	adrp	x8, _ATH_RSSI_EP_MULTIPLIER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATH_RSSI_EP_MULTIPLIER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ATH_EP_RND
	mov	x21, x0
LBB0_15:
	cmp	w21, #0
	csel	w8, w21, wzr, gt
	str	w8, [x25, #16]
LBB0_16:
	ldr	w8, [x25, #4]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FLAG_NO_SIGNAL_VAL,4,2      ; @RX_FLAG_NO_SIGNAL_VAL
	.comm	_ATH9K_RSSI_BAD,4,2             ; @ATH9K_RSSI_BAD
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_ATH_RSSI_DUMMY_MARKER,4,2      ; @ATH_RSSI_DUMMY_MARKER
	.comm	_ATH_RSSI_EP_MULTIPLIER,4,2     ; @ATH_RSSI_EP_MULTIPLIER
.subsections_via_symbols
