	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt73usb_agc_to_rssi
_rt73usb_agc_to_rssi:                   ## @rt73usb_agc_to_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movq	_RXD_W1_RSSI_LNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r15d
	leal	-1(%r15), %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	ja	LBB0_9
## %bb.1:
	movslq	%ecx, %rax
	leaq	l_switch.table.rt73usb_agc_to_rssi(%rip), %rcx
	addl	(%rcx,%rax,4), %r12d
	movq	8(%rbx), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_rt2x00_has_cap_external_lna_a
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	andl	$-2, %r15d
	leal	10(%r12), %eax
	cmpl	$2, %r15d
	cmovnel	%r12d, %eax
	movl	%eax, %r12d
LBB0_8:
	movq	_RXD_W1_RSSI_AGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	addl	%eax, %eax
	subl	%r12d, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$2, %r15d
	je	LBB0_7
## %bb.5:
	cmpl	$3, %r15d
	jne	LBB0_8
## %bb.6:
	addl	$6, %r12d
	jmp	LBB0_8
LBB0_7:
	addl	$8, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RXD_W1_RSSI_LNA,4,2            ## @RXD_W1_RSSI_LNA
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_RXD_W1_RSSI_AGC,4,2            ## @RXD_W1_RSSI_AGC
	.no_dead_strip	_rt73usb_agc_to_rssi
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.rt73usb_agc_to_rssi
l_switch.table.rt73usb_agc_to_rssi:
	.long	64                              ## 0x40
	.long	74                              ## 0x4a
	.long	90                              ## 0x5a

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt73usb_agc_to_rssi
_rt73usb_agc_to_rssi:                   ; @rt73usb_agc_to_rssi
	.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	x19, x1
	mov	x21, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _RXD_W1_RSSI_LNA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXD_W1_RSSI_LNA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field32
	sub	w8, w0, #1
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.rt73usb_agc_to_rssi@PAGE
Lloh4:
	add	x9, x9, l_switch.table.rt73usb_agc_to_rssi@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	add	w22, w22, w8
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_rt2x00_has_cap_external_lna_a
	add	w8, w22, #8
	add	w9, w22, #6
	cmp	w20, #3
	csel	w9, w22, w9, ne
	cmp	w20, #2
	csel	w8, w8, w9, eq
	and	w9, w20, #0xfffffffe
	add	w10, w22, #10
	cmp	w9, #2
	csel	w9, w10, w22, eq
	cmp	x0, #0
	csel	w22, w8, w9, eq
LBB0_3:
Lloh8:
	adrp	x8, _RXD_W1_RSSI_AGC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXD_W1_RSSI_AGC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field32
	lsl	w8, w0, #1
	sub	w0, w8, w22
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RXD_W1_RSSI_LNA,4,2            ; @RXD_W1_RSSI_LNA
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_RXD_W1_RSSI_AGC,4,2            ; @RXD_W1_RSSI_AGC
	.no_dead_strip	_rt73usb_agc_to_rssi
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.rt73usb_agc_to_rssi
l_switch.table.rt73usb_agc_to_rssi:
	.long	64                              ; 0x40
	.long	74                              ; 0x4a
	.long	90                              ; 0x5a

.subsections_via_symbols
