	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl301rf_get_rf_strength
_mxl301rf_get_rf_strength:              ## @mxl301rf_get_rf_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, 8(%rdi)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rdi), %rcx
	movl	%eax, 4(%rcx)
	movl	$0, (%rsi)
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$1, %edx
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_reg_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_reg_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$214, %esi
	callq	_reg_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$215, %esi
	callq	_reg_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	-36(%rbp), %eax
	andl	$7, %eax
	shll	$8, %eax
	orl	-40(%rbp), %eax
	movl	-28(%rbp), %ecx
	andl	$15, %ecx
	shll	$5, %ecx
	movl	-32(%rbp), %edx
	sarl	$3, %edx
	orl	%ecx, %edx
	subl	%edx, %eax
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	leal	-904000(%rcx), %edx
	addl	$-903993, %ecx                  ## imm = 0xFFF234C7
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movq	16(%r15), %rdx
	movl	%ecx, (%rdx)
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdx)
	imull	$100, %eax, %eax
	movl	%eax, %ecx
	addl	$51100, %ecx                    ## imm = 0xC79C
	movslq	%ecx, %rcx
	imulq	$-856307005, %rcx, %rcx         ## imm = 0xCCF5CAC3
	shrq	$32, %rcx
	addl	%ecx, %eax
	addl	$51100, %eax                    ## imm = 0xC79C
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$11, %eax
	addl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,4,2           ## @FE_SCALE_DECIBEL
	.no_dead_strip	_mxl301rf_get_rf_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl301rf_get_rf_strength
_mxl301rf_get_rf_strength:              ; @mxl301rf_get_rf_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	mov	w8, #1
Lloh0:
	adrp	x9, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	str	w8, [x0, #8]
Lloh2:
	ldr	w8, [x9]
	ldr	x9, [x0, #16]
	str	w8, [x9, #4]
	str	wzr, [x1]
	ldr	x21, [x0]
	mov	x0, x21
	mov	w1, #20
	mov	w2, #1
	bl	_reg_write
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #24
	bl	_reg_read
	cbnz	w0, LBB0_6
; %bb.2:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #25
	bl	_reg_read
	cbnz	w0, LBB0_6
; %bb.3:
	add	x2, sp, #4
	mov	x0, x21
	mov	w1, #214
	bl	_reg_read
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x2, sp
	mov	x0, x21
	mov	w1, #215
	bl	_reg_read
	cbnz	w0, LBB0_6
; %bb.5:
	ldp	w8, w9, [sp, #8]
	ubfiz	w8, w8, #8, #3
	orr	w8, w8, w9
	ldp	w9, w10, [sp]
	ubfiz	w9, w9, #5, #4
	orr	w9, w9, w10, asr #3
	sub	w8, w8, w9
	mov	w9, #1000
	mul	w9, w8, w9
	sub	w10, w9, #220, lsl #12          ; =901120
	sub	w10, w10, #2880
	sub	w9, w9, #220, lsl #12           ; =901120
	sub	w9, w9, #2873
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #3
	ldr	x10, [x20, #16]
	str	w9, [x10]
Lloh3:
	adrp	x9, _FE_SCALE_DECIBEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x10, #4]
	mov	w9, #100
	mov	w10, #51100
	madd	w8, w8, w9, w10
	mov	w9, #51907
	movk	w9, #52469, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #11
	add	w8, w9, w8, lsr #31
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,4,2           ; @FE_SCALE_DECIBEL
	.no_dead_strip	_mxl301rf_get_rf_strength
.subsections_via_symbols
