	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_reset_tsf             ## -- Begin function ath9k_hw_reset_tsf
	.p2align	4, 0x90
_ath9k_hw_reset_tsf:                    ## @ath9k_hw_reset_tsf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AR_SLP32_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_SLP32_TSF_WRITE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AH_TSF_WRITE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	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
LBB0_2:
	movq	_AR_RESET_TSF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RESET_TSF_ONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_SLP32_MODE,4,2              ## @AR_SLP32_MODE
	.comm	_AR_SLP32_TSF_WRITE_STATUS,4,2  ## @AR_SLP32_TSF_WRITE_STATUS
	.comm	_AH_TSF_WRITE_TIMEOUT,4,2       ## @AH_TSF_WRITE_TIMEOUT
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AR_SLP32_TSF_WRITE_STATUS limit exceeded\n"

	.comm	_AR_RESET_TSF,4,2               ## @AR_RESET_TSF
	.comm	_AR_RESET_TSF_ONCE,4,2          ## @AR_RESET_TSF_ONCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_reset_tsf             ; -- Begin function ath9k_hw_reset_tsf
	.p2align	2
_ath9k_hw_reset_tsf:                    ; @ath9k_hw_reset_tsf
	.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	x19, x0
Lloh0:
	adrp	x8, _AR_SLP32_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_SLP32_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AR_SLP32_TSF_WRITE_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_SLP32_TSF_WRITE_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _AH_TSF_WRITE_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AH_TSF_WRITE_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath9k_hw_common
Lloh9:
	adrp	x8, _RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
LBB0_2:
Lloh14:
	adrp	x8, _AR_RESET_TSF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_RESET_TSF@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _AR_RESET_TSF_ONCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR_RESET_TSF_ONCE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_SLP32_MODE,4,2              ; @AR_SLP32_MODE
	.comm	_AR_SLP32_TSF_WRITE_STATUS,4,2  ; @AR_SLP32_TSF_WRITE_STATUS
	.comm	_AH_TSF_WRITE_TIMEOUT,4,2       ; @AH_TSF_WRITE_TIMEOUT
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AR_SLP32_TSF_WRITE_STATUS limit exceeded\n"

	.comm	_AR_RESET_TSF,4,2               ; @AR_RESET_TSF
	.comm	_AR_RESET_TSF_ONCE,4,2          ; @AR_RESET_TSF_ONCE
.subsections_via_symbols
