	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_is_rf_field
_trf7970a_is_rf_field:                  ## @trf7970a_is_rf_field
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_TRF7970A_CHIP_STATUS_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TRF7970A_CHIP_STATUS_REC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rdi), %edx
	callq	_trf7970a_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_TRF7970A_CMD_TEST_EXT_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_trf7970a_cmd
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	$50, %edi
	movl	$60, %esi
	callq	_usleep_range
	movq	_TRF7970A_RSSI_OSC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_trf7970a_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_trf7970a_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_TRF7970A_RSSI_OSC_STATUS_RSSI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-28(%rbp), %eax
	setne	%cl
	movl	%ecx, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ## @TRF7970A_CHIP_STATUS_CTRL
	.comm	_TRF7970A_CHIP_STATUS_REC_ON,4,2 ## @TRF7970A_CHIP_STATUS_REC_ON
	.comm	_TRF7970A_CMD_TEST_EXT_RF,4,2   ## @TRF7970A_CMD_TEST_EXT_RF
	.comm	_TRF7970A_RSSI_OSC_STATUS,4,2   ## @TRF7970A_RSSI_OSC_STATUS
	.comm	_TRF7970A_RSSI_OSC_STATUS_RSSI_MASK,4,2 ## @TRF7970A_RSSI_OSC_STATUS_RSSI_MASK
	.no_dead_strip	_trf7970a_is_rf_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_is_rf_field
_trf7970a_is_rf_field:                  ; @trf7970a_is_rf_field
	.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
Lloh0:
	adrp	x21, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _TRF7970A_CHIP_STATUS_REC_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRF7970A_CHIP_STATUS_REC_ON@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_trf7970a_write
	cbnz	w0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _TRF7970A_CMD_TEST_EXT_RF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRF7970A_CMD_TEST_EXT_RF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_trf7970a_cmd
	cbnz	w0, LBB0_5
; %bb.2:
	mov	w0, #50
	mov	w1, #60
	bl	_usleep_range
Lloh8:
	adrp	x8, _TRF7970A_RSSI_OSC_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRF7970A_RSSI_OSC_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_trf7970a_read
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_trf7970a_write
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _TRF7970A_RSSI_OSC_STATUS_RSSI_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TRF7970A_RSSI_OSC_STATUS_RSSI_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19]
LBB0_5:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ; @TRF7970A_CHIP_STATUS_CTRL
	.comm	_TRF7970A_CHIP_STATUS_REC_ON,4,2 ; @TRF7970A_CHIP_STATUS_REC_ON
	.comm	_TRF7970A_CMD_TEST_EXT_RF,4,2   ; @TRF7970A_CMD_TEST_EXT_RF
	.comm	_TRF7970A_RSSI_OSC_STATUS,4,2   ; @TRF7970A_RSSI_OSC_STATUS
	.comm	_TRF7970A_RSSI_OSC_STATUS_RSSI_MASK,4,2 ; @TRF7970A_RSSI_OSC_STATUS_RSSI_MASK
	.no_dead_strip	_trf7970a_is_rf_field
.subsections_via_symbols
