	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_get_rssi_level           ## -- Begin function fm_rx_get_rssi_level
	.p2align	4, 0x90
_fm_rx_get_rssi_level:                  ## @fm_rx_get_rssi_level
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	_RSSI_LVL_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %r9
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-20(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RSSI_LVL_GET,4,2               ## @RSSI_LVL_GET
	.comm	_REG_RD,4,2                     ## @REG_RD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_get_rssi_level           ; -- Begin function fm_rx_get_rssi_level
	.p2align	2
_fm_rx_get_rssi_level:                  ; @fm_rx_get_rssi_level
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _RSSI_LVL_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSSI_LVL_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _REG_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_RD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x3, #0
	mov	w4, #2
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_be16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RSSI_LVL_GET,4,2               ; @RSSI_LVL_GET
	.comm	_REG_RD,4,2                     ; @REG_RD
.subsections_via_symbols
