	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au8522_read_signal_strength
_au8522_read_signal_strength:           ## @au8522_read_signal_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	leaq	-12(%rbp), %rsi
	callq	_au8522_read_snr
	movl	$0, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	imull	$1677721, -12(%rbp), %edx       ## imm = 0x199999
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmpl	$587202559, %edx                ## imm = 0x22FFFFFF
	jg	LBB0_3
## %bb.2:
	movslq	%edx, %rcx
	imulq	$-368140053, %rcx, %rcx         ## imm = 0xEA0EA0EB
	shrq	$32, %rcx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$13, %ecx
	addl	%edx, %ecx
LBB0_3:
	movl	%ecx, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_au8522_read_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au8522_read_signal_strength
_au8522_read_signal_strength:           ; @au8522_read_signal_strength
	.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
	mov	x19, x1
	add	x1, sp, #12
	bl	_au8522_read_snr
	str	wzr, [x19]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #39321
	movk	w9, #25, lsl #16
	mul	w8, w8, w9
	mov	w9, #41195
	movk	w9, #59918, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #13
	add	w9, w10, w9, lsr #31
	mov	w10, #587202559
	mov	w11, #65535
	cmp	w8, w10
	csel	w8, w11, w9, gt
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_au8522_read_signal_strength
.subsections_via_symbols
