	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_rtt_force_restore    ## -- Begin function ar9003_hw_rtt_force_restore
	.p2align	4, 0x90
_ar9003_hw_rtt_force_restore:           ## @ar9003_hw_rtt_force_restore
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AR_PHY_RTT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_RTT_RESTORE_TIMEOUT@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_RTT_CTRL,4,2            ## @AR_PHY_RTT_CTRL
	.comm	_AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE,4,2 ## @AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE
	.comm	_RTT_RESTORE_TIMEOUT,4,2        ## @RTT_RESTORE_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_rtt_force_restore    ; -- Begin function ar9003_hw_rtt_force_restore
	.p2align	2
_ar9003_hw_rtt_force_restore:           ; @ar9003_hw_rtt_force_restore
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _AR_PHY_RTT_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_PHY_RTT_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x22, _RTT_RESTORE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _RTT_RESTORE_TIMEOUT@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_ath9k_hw_wait
	cmp	w0, #0
	cset	w0, ne
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_RTT_CTRL,4,2            ; @AR_PHY_RTT_CTRL
	.comm	_AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE,4,2 ; @AR_PHY_RTT_CTRL_FORCE_RADIO_RESTORE
	.comm	_RTT_RESTORE_TIMEOUT,4,2        ; @RTT_RESTORE_TIMEOUT
.subsections_via_symbols
