	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_reset
_ath9k_hw_set_reset:                    ## @ath9k_hw_set_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_AR_SREV_9100
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AR_RTC_DERIVED_CLK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR_RTC_DERIVED_CLK_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
LBB0_2:
	movq	%rbx, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AR_WA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movl	$10, %edi
	callq	_udelay
LBB0_4:
	movq	_AR_RTC_FORCE_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RTC_FORCE_WAKE_EN@GOTPCREL(%rip), %rax
	movq	_AR_RTC_FORCE_WAKE_ON_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_AR_RTC_RC_MAC_WARM@GOTPCREL(%rip), %rax
	movq	_AR_RTC_RC_MAC_COLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_AR_RTC_RC_COLD_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_AR_RTC_RC_WARM_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	movq	_AR_INTR_SYNC_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_AR_SREV_9340
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_AR9340_INTR_SYNC_LOCAL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_13
LBB0_10:
	movq	_AR_INTR_SYNC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movq	_AR_RC_HOSTIF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_AR_RC_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	orl	%r12d, %r15d
LBB0_15:
	movq	_AR_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WRITE
	jmp	LBB0_16
LBB0_7:
	movq	_AR_INTR_SYNC_LOCAL_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	_AR_INTR_SYNC_RADM_CPL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%r15d, %eax
	jne	LBB0_10
LBB0_13:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	movq	_AR_RTC_RC_MAC_WARM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ATH9K_RESET_COLD@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_19
## %bb.17:
	movq	_AR_RTC_RC_MAC_COLD@GOTPCREL(%rip), %rax
LBB0_18:
	orl	(%rax), %r15d
LBB0_19:
	movq	%rbx, %rdi
	callq	_AR_SREV_9330
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ath9k_hw_ar9330_reset_war
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:
	movq	%rbx, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_ar9003_mci_check_gpm_offset
LBB0_24:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_AR_SREV_9580
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	movq	_AR_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_CFG_HALT_REQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_REG_SET_BIT
	movl	(%r14), %esi
	movq	_AR_CFG_HALT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AH_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	leal	(%rax,%rax,4), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_ath9k_hw_wait
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
LBB0_27:
	movq	_AR_RTC_RC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	$50, %edi
LBB0_32:
	callq	_udelay
	jmp	LBB0_33
LBB0_29:
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	$10, %edi
	callq	_mdelay
LBB0_33:
	movl	(%r12), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movl	(%r12), %esi
	movq	_AR_RTC_RC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AH_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_34
## %bb.35:
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	jne	LBB0_37
## %bb.36:
	movq	_AR_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
LBB0_37:
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	movl	$50, %edi
	callq	_udelay
	jmp	LBB0_39
LBB0_34:
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movq	_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	callq	_ath_dbg
	jmp	LBB0_39
LBB0_21:
	xorl	%r14d, %r14d
LBB0_39:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	$100, %edi
	jmp	LBB0_32
LBB0_14:
	movq	_AR_RC_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_RTC_DERIVED_CLK,4,2         ## @AR_RTC_DERIVED_CLK
	.comm	_AR_RTC_DERIVED_CLK_PERIOD,4,2  ## @AR_RTC_DERIVED_CLK_PERIOD
	.comm	_AR_WA,4,2                      ## @AR_WA
	.comm	_AR_RTC_FORCE_WAKE,4,2          ## @AR_RTC_FORCE_WAKE
	.comm	_AR_RTC_FORCE_WAKE_EN,4,2       ## @AR_RTC_FORCE_WAKE_EN
	.comm	_AR_RTC_FORCE_WAKE_ON_INT,4,2   ## @AR_RTC_FORCE_WAKE_ON_INT
	.comm	_AR_RTC_RC_MAC_WARM,4,2         ## @AR_RTC_RC_MAC_WARM
	.comm	_AR_RTC_RC_MAC_COLD,4,2         ## @AR_RTC_RC_MAC_COLD
	.comm	_AR_RTC_RC_COLD_RESET,4,2       ## @AR_RTC_RC_COLD_RESET
	.comm	_AR_RTC_RC_WARM_RESET,4,2       ## @AR_RTC_RC_WARM_RESET
	.comm	_AR_INTR_SYNC_CAUSE,4,2         ## @AR_INTR_SYNC_CAUSE
	.comm	_AR9340_INTR_SYNC_LOCAL_TIMEOUT,4,2 ## @AR9340_INTR_SYNC_LOCAL_TIMEOUT
	.comm	_AR_INTR_SYNC_LOCAL_TIMEOUT,4,2 ## @AR_INTR_SYNC_LOCAL_TIMEOUT
	.comm	_AR_INTR_SYNC_RADM_CPL_TIMEOUT,4,2 ## @AR_INTR_SYNC_RADM_CPL_TIMEOUT
	.comm	_AR_INTR_SYNC_ENABLE,4,2        ## @AR_INTR_SYNC_ENABLE
	.comm	_AR_RC_HOSTIF,4,2               ## @AR_RC_HOSTIF
	.comm	_AR_RC_AHB,4,2                  ## @AR_RC_AHB
	.comm	_AR_RC,4,2                      ## @AR_RC
	.comm	_ATH9K_RESET_COLD,4,2           ## @ATH9K_RESET_COLD
	.comm	_AR_CFG,4,2                     ## @AR_CFG
	.comm	_AR_CFG_HALT_REQ,4,2            ## @AR_CFG_HALT_REQ
	.comm	_AR_CFG_HALT_ACK,4,2            ## @AR_CFG_HALT_ACK
	.comm	_AH_WAIT_TIMEOUT,4,2            ## @AH_WAIT_TIMEOUT
	.comm	_AR_RTC_RC,4,2                  ## @AR_RTC_RC
	.comm	_AR_RTC_RC_M,4,2                ## @AR_RTC_RC_M
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTC stuck in MAC reset\n"

	.no_dead_strip	_ath9k_hw_set_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_set_reset
_ath9k_hw_set_reset:                    ; @ath9k_hw_set_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_AR_SREV_9100
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _AR_RTC_DERIVED_CLK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_RTC_DERIVED_CLK@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AR_RTC_DERIVED_CLK_PERIOD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_RTC_DERIVED_CLK_PERIOD@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
LBB0_2:
	mov	x0, x19
	bl	_ENABLE_REGWRITE_BUFFER
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _AR_WA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_WA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_REG_WRITE
	mov	w0, #10
	bl	_udelay
LBB0_4:
Lloh8:
	adrp	x8, _AR_RTC_FORCE_WAKE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _AR_RTC_FORCE_WAKE_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR_RTC_FORCE_WAKE_EN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _AR_RTC_RC_MAC_WARM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR_RTC_RC_MAC_WARM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _AR_RTC_RC_MAC_COLD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AR_RTC_RC_MAC_COLD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _AR_RTC_RC_COLD_RESET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AR_RTC_RC_COLD_RESET@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _AR_RTC_RC_WARM_RESET@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AR_RTC_RC_WARM_RESET@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w21, w8, w9
	b	LBB0_12
LBB0_6:
Lloh29:
	adrp	x8, _AR_INTR_SYNC_CAUSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR_INTR_SYNC_CAUSE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x21, x0
	mov	x0, x19
	bl	_AR_SREV_9340
Lloh32:
	adrp	x8, _AR9340_INTR_SYNC_LOCAL_TIMEOUT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AR9340_INTR_SYNC_LOCAL_TIMEOUT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _AR_INTR_SYNC_LOCAL_TIMEOUT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AR_INTR_SYNC_LOCAL_TIMEOUT@GOTPAGEOFF]
Lloh37:
	adrp	x10, _AR_INTR_SYNC_RADM_CPL_TIMEOUT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _AR_INTR_SYNC_RADM_CPL_TIMEOUT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x0, #0
	csel	w8, w9, w8, eq
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
Lloh41:
	adrp	x8, _AR_INTR_SYNC_ENABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AR_INTR_SYNC_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
Lloh44:
	adrp	x8, _AR_RC_HOSTIF@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AR_RC_HOSTIF@GOTPAGEOFF]
Lloh46:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
Lloh47:
	adrp	x8, _AR_RC_AHB@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AR_RC_AHB@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	orr	w2, w8, w21
LBB0_8:
Lloh50:
	adrp	x8, _AR_RC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AR_RC@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_WRITE
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_33
LBB0_10:
Lloh53:
	adrp	x8, _AR_RTC_RC_MAC_WARM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AR_RTC_RC_MAC_WARM@GOTPAGEOFF]
Lloh55:
	ldr	w21, [x8]
Lloh56:
	adrp	x8, _ATH9K_RESET_COLD@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ATH9K_RESET_COLD@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.11:
Lloh59:
	adrp	x8, _AR_RTC_RC_MAC_COLD@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AR_RTC_RC_MAC_COLD@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_12:
	mov	x0, x19
	bl	_AR_SREV_9330
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_ar9330_reset_war
	cbz	w0, LBB0_31
LBB0_14:
	mov	x0, x19
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_ar9003_mci_check_gpm_offset
LBB0_16:
	mov	x0, x19
	bl	_AR_SREV_9300
Lloh62:
	adrp	x20, _AH_WAIT_TIMEOUT@GOTPAGE
Lloh63:
	ldr	x20, [x20, _AH_WAIT_TIMEOUT@GOTPAGEOFF]
	cbnz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_AR_SREV_9580
	cbz	x0, LBB0_19
LBB0_18:
Lloh64:
	adrp	x22, _AR_CFG@GOTPAGE
Lloh65:
	ldr	x22, [x22, _AR_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh66:
	adrp	x23, _AR_CFG_HALT_REQ@GOTPAGE
Lloh67:
	ldr	x23, [x23, _AR_CFG_HALT_REQ@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w1, [x22]
Lloh68:
	adrp	x8, _AR_CFG_HALT_ACK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AR_CFG_HALT_ACK@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	ldr	w8, [x20]
	add	w8, w8, w8, lsl #2
	lsl	w4, w8, #2
	mov	x0, x19
	mov	x3, x2
	bl	_ath9k_hw_wait
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_REG_CLR_BIT
LBB0_19:
Lloh71:
	adrp	x22, _AR_RTC_RC@GOTPAGE
Lloh72:
	ldr	x22, [x22, _AR_RTC_RC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_22
; %bb.20:
	mov	w0, #50
LBB0_21:
	bl	_udelay
	b	LBB0_24
LBB0_22:
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	x0, LBB0_32
; %bb.23:
	mov	w0, #10
	bl	_mdelay
LBB0_24:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
	ldr	w1, [x22]
Lloh73:
	adrp	x8, _AR_RTC_RC_M@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AR_RTC_RC_M@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	ldr	w4, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_30
; %bb.25:
	mov	x0, x19
	bl	_AR_SREV_9100
	cbnz	x0, LBB0_27
; %bb.26:
Lloh76:
	adrp	x8, _AR_RC@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AR_RC@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
LBB0_27:
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	x0, LBB0_29
; %bb.28:
	mov	w0, #50
	bl	_udelay
LBB0_29:
	mov	w0, #1
	b	LBB0_31
LBB0_30:
	mov	x0, x19
	bl	_ath9k_hw_common
Lloh79:
	adrp	x8, _RESET@GOTPAGE
Lloh80:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x2, l_.str@PAGE
Lloh83:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	mov	w0, #0
LBB0_31:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	w0, #100
	b	LBB0_21
LBB0_33:
Lloh84:
	adrp	x8, _AR_RC_AHB@GOTPAGE
Lloh85:
	ldr	x8, [x8, _AR_RC_AHB@GOTPAGEOFF]
Lloh86:
	ldr	w2, [x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_RTC_DERIVED_CLK,4,2         ; @AR_RTC_DERIVED_CLK
	.comm	_AR_RTC_DERIVED_CLK_PERIOD,4,2  ; @AR_RTC_DERIVED_CLK_PERIOD
	.comm	_AR_WA,4,2                      ; @AR_WA
	.comm	_AR_RTC_FORCE_WAKE,4,2          ; @AR_RTC_FORCE_WAKE
	.comm	_AR_RTC_FORCE_WAKE_EN,4,2       ; @AR_RTC_FORCE_WAKE_EN
	.comm	_AR_RTC_FORCE_WAKE_ON_INT,4,2   ; @AR_RTC_FORCE_WAKE_ON_INT
	.comm	_AR_RTC_RC_MAC_WARM,4,2         ; @AR_RTC_RC_MAC_WARM
	.comm	_AR_RTC_RC_MAC_COLD,4,2         ; @AR_RTC_RC_MAC_COLD
	.comm	_AR_RTC_RC_COLD_RESET,4,2       ; @AR_RTC_RC_COLD_RESET
	.comm	_AR_RTC_RC_WARM_RESET,4,2       ; @AR_RTC_RC_WARM_RESET
	.comm	_AR_INTR_SYNC_CAUSE,4,2         ; @AR_INTR_SYNC_CAUSE
	.comm	_AR9340_INTR_SYNC_LOCAL_TIMEOUT,4,2 ; @AR9340_INTR_SYNC_LOCAL_TIMEOUT
	.comm	_AR_INTR_SYNC_LOCAL_TIMEOUT,4,2 ; @AR_INTR_SYNC_LOCAL_TIMEOUT
	.comm	_AR_INTR_SYNC_RADM_CPL_TIMEOUT,4,2 ; @AR_INTR_SYNC_RADM_CPL_TIMEOUT
	.comm	_AR_INTR_SYNC_ENABLE,4,2        ; @AR_INTR_SYNC_ENABLE
	.comm	_AR_RC_HOSTIF,4,2               ; @AR_RC_HOSTIF
	.comm	_AR_RC_AHB,4,2                  ; @AR_RC_AHB
	.comm	_AR_RC,4,2                      ; @AR_RC
	.comm	_ATH9K_RESET_COLD,4,2           ; @ATH9K_RESET_COLD
	.comm	_AR_CFG,4,2                     ; @AR_CFG
	.comm	_AR_CFG_HALT_REQ,4,2            ; @AR_CFG_HALT_REQ
	.comm	_AR_CFG_HALT_ACK,4,2            ; @AR_CFG_HALT_ACK
	.comm	_AH_WAIT_TIMEOUT,4,2            ; @AH_WAIT_TIMEOUT
	.comm	_AR_RTC_RC,4,2                  ; @AR_RTC_RC
	.comm	_AR_RTC_RC_M,4,2                ; @AR_RTC_RC_M
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTC stuck in MAC reset\n"

	.no_dead_strip	_ath9k_hw_set_reset
.subsections_via_symbols
