	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_switch_rf_off
_trf7970a_switch_rf_off:                ## @trf7970a_switch_rf_off
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_TRF7970A_ST_PWR_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TRF7970A_ST_RF_OFF@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_TRF7970A_CHIP_STATUS_RF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	16(%rbx), %edx
	movl	%edx, 16(%rbx)
	movq	_TRF7970A_CHIP_STATUS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_trf7970a_write
	movl	$0, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	12(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pm_runtime_put_autosuspend     ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRF7970A_ST_PWR_OFF,8,3        ## @TRF7970A_ST_PWR_OFF
	.comm	_TRF7970A_ST_RF_OFF,8,3         ## @TRF7970A_ST_RF_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switching rf off\n"

	.comm	_TRF7970A_CHIP_STATUS_RF_ON,4,2 ## @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ## @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_switch_rf_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_switch_rf_off
_trf7970a_switch_rf_off:                ; @trf7970a_switch_rf_off
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TRF7970A_ST_PWR_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRF7970A_ST_PWR_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x20, _TRF7970A_ST_RF_OFF@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TRF7970A_ST_RF_OFF@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh7:
	adrp	x8, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w2, w9, w8
	str	w2, [x19, #16]
Lloh10:
	adrp	x8, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_trf7970a_write
	str	wzr, [x19, #8]
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w0, [x19, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put_autosuspend
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TRF7970A_ST_PWR_OFF,8,3        ; @TRF7970A_ST_PWR_OFF
	.comm	_TRF7970A_ST_RF_OFF,8,3         ; @TRF7970A_ST_RF_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switching rf off\n"

	.comm	_TRF7970A_CHIP_STATUS_RF_ON,4,2 ; @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ; @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_switch_rf_off
.subsections_via_symbols
