	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prism2_update_comms_qual       ## -- Begin function prism2_update_comms_qual
	.p2align	4, 0x90
_prism2_update_comms_qual:              ## @prism2_update_comms_qual
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	(%r15), %rbx
	movl	$-1, %r14d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movl	$1, %edi
	movl	$3, %esi
	movl	$1, %edx
	callq	_PRISM2_FW_VER
	movq	48(%r15), %rcx
	movq	(%rcx), %r9
	movl	40(%r15), %edi
	cmpq	%rax, %rbx
	jge	LBB0_2
## %bb.4:
	movq	_HFA384X_RID_COMMSQUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	$12, %ecx
	movl	$1, %r8d
	callq	*%r9
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movl	-32(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_HFA384X_LEVEL_TO_dBm
	movq	%rax, 24(%r15)
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_HFA384X_LEVEL_TO_dBm
	jmp	LBB0_6
LBB0_2:
	movq	_HFA384X_RID_DBMCOMMSQUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	$12, %ecx
	movl	$1, %r8d
	callq	*%r9
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	movl	-32(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r15)
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
LBB0_6:
	movq	%rax, 16(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_RID_DBMCOMMSQUALITY,4,2 ## @HFA384X_RID_DBMCOMMSQUALITY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HFA384X_RID_COMMSQUALITY,4,2   ## @HFA384X_RID_COMMSQUALITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prism2_update_comms_qual       ; -- Begin function prism2_update_comms_qual
	.p2align	2
_prism2_update_comms_qual:              ; @prism2_update_comms_qual
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_netdev_priv
	ldr	x19, [x0]
	ldr	x20, [x19]
	cbz	x20, LBB0_7
; %bb.1:
	mov	w0, #1
	mov	w1, #3
	mov	w2, #1
	bl	_PRISM2_FW_VER
	mov	x8, x0
	ldr	x9, [x19, #48]
	ldr	x9, [x9]
	ldr	w0, [x19, #40]
	cmp	x20, x8
	b.ge	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _HFA384X_RID_COMMSQUALITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFA384X_RID_COMMSQUALITY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #12
	mov	w4, #1
	blr	x9
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	bl	_HFA384X_LEVEL_TO_dBm
	str	x0, [x19, #24]
	ldr	w0, [sp]
	bl	_le16_to_cpu
	bl	_HFA384X_LEVEL_TO_dBm
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _HFA384X_RID_DBMCOMMSQUALITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFA384X_RID_DBMCOMMSQUALITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #12
	mov	w4, #1
	blr	x9
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [sp]
	bl	_le16_to_cpu
LBB0_6:
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _jiffies@GOTPAGE
Lloh7:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #8]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_RID_DBMCOMMSQUALITY,4,2 ; @HFA384X_RID_DBMCOMMSQUALITY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HFA384X_RID_COMMSQUALITY,4,2   ; @HFA384X_RID_COMMSQUALITY
.subsections_via_symbols
