	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_mci_update_rssi          ## -- Begin function ath9k_mci_update_rssi
	.p2align	4, 0x90
_ath9k_mci_update_rssi:                 ## @ath9k_mci_update_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	callq	_ath9k_mci_stomp_audio
	movq	_ATH_MCI_CONFIG_CONCUR_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	$40, (%rbx)
	movl	8(%r14), %eax
	jl	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	incl	%ecx
	movl	%ecx, 8(%r14)
	movq	_ATH_MCI_CONCUR_TX_SWITCH@GOTPCREL(%rip), %rax
	movl	$1, %edx
	cmpl	(%rax), %ecx
	jl	LBB0_5
LBB0_3:
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath9k_mci_set_txpower          ## TAILCALL
LBB0_4:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	decl	%ecx
	movl	%ecx, 8(%r14)
	movq	_ATH_MCI_CONCUR_TX_SWITCH@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	subl	(%rax), %esi
	cmpl	%esi, %ecx
	jle	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_MCI_CONFIG_CONCUR_TX,4,2   ## @ATH_MCI_CONFIG_CONCUR_TX
	.comm	_ATH_MCI_CONCUR_TX_SWITCH,4,2   ## @ATH_MCI_CONCUR_TX_SWITCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_mci_update_rssi          ; -- Begin function ath9k_mci_update_rssi
	.p2align	2
_ath9k_mci_update_rssi:                 ; @ath9k_mci_update_rssi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	bl	_ath9k_mci_stomp_audio
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _ATH_MCI_CONFIG_CONCUR_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_MCI_CONFIG_CONCUR_TX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w9, [x20]
	ldr	w8, [x19, #8]
	cmp	w9, #40
	b.lt	LBB0_4
; %bb.2:
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh3:
	adrp	x9, _ATH_MCI_CONCUR_TX_SWITCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_MCI_CONCUR_TX_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.3:
	mov	w2, #1
	b	LBB0_6
LBB0_4:
	mov	w2, #0
	cmp	w8, #0
	csel	w8, w8, wzr, lt
	sub	w8, w8, #1
	str	w8, [x19, #8]
Lloh6:
	adrp	x9, _ATH_MCI_CONCUR_TX_SWITCH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH_MCI_CONCUR_TX_SWITCH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	neg	w9, w9
	cmp	w8, w9
	b.le	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	str	wzr, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath9k_mci_set_txpower
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_MCI_CONFIG_CONCUR_TX,4,2   ; @ATH_MCI_CONFIG_CONCUR_TX
	.comm	_ATH_MCI_CONCUR_TX_SWITCH,4,2   ; @ATH_MCI_CONCUR_TX_SWITCH
.subsections_via_symbols
