	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_reset_reg
_ath9k_hw_set_reset_reg:                ## @ath9k_hw_set_reset_reg
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AR_WA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movl	$10, %edi
	callq	_udelay
LBB0_2:
	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	%r14, %rdi
	callq	_REG_WRITE
	cmpl	$0, 4(%r14)
	movl	$129, %eax
	cmovel	%eax, %ebx
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	$130, %ebx
	je	LBB0_8
## %bb.4:
	xorl	%r15d, %r15d
	cmpl	$129, %ebx
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_ath9k_hw_set_reset_power_on
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	$1, 4(%r14)
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_set_reset             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_ath9k_hw_set_reset_reg
.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_reg
_ath9k_hw_set_reset_reg:                ; @ath9k_hw_set_reset_reg
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AR_WA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_WA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_REG_WRITE
	mov	w0, #10
	bl	_udelay
LBB0_2:
Lloh3:
	adrp	x8, _AR_RTC_FORCE_WAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AR_RTC_FORCE_WAKE_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR_RTC_FORCE_WAKE_EN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_WRITE
	ldr	w8, [x19, #4]
	mov	w9, #129
	cmp	w8, #0
	csel	w1, w9, w20, eq
	cmp	w1, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w1, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_ath9k_hw_set_reset_power_on
	cbz	w0, LBB0_9
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath9k_hw_set_reset
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_ath9k_hw_set_reset_reg
.subsections_via_symbols
