	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wait                  ## -- Begin function ath9k_hw_wait
	.p2align	4, 0x90
_ath9k_hw_wait:                         ## @ath9k_hw_wait
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_AH_TIME_QUANTUM@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	%r8d, (%r14)
	setg	%dil
	callq	_BUG_ON
	movl	%r13d, %eax
	cltd
	idivl	(%r14)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_REG_READ
	andl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_udelay
	incl	%r15d
	movl	%r13d, %eax
	cltd
	idivl	(%r14)
	cmpl	%eax, %r15d
	jl	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movl	%eax, %r14d
	movq	_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_REG_READ
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_ath_dbg
	addq	$16, %rsp
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	$1, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AH_TIME_QUANTUM,4,2            ## @AH_TIME_QUANTUM
	.comm	_ANY,4,2                        ## @ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout (%d us) on reg 0x%x: 0x%08x & 0x%08x != 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wait                  ; -- Begin function ath9k_hw_wait
	.p2align	2
_ath9k_hw_wait:                         ; @ath9k_hw_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _AH_TIME_QUANTUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AH_TIME_QUANTUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w4
	cset	w0, gt
	bl	_BUG_ON
	ldr	w8, [x24]
	sdiv	w8, w21, w8
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_REG_READ
	and	w8, w0, w20
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_udelay
	add	w25, w25, #1
	ldr	w8, [x24]
	sdiv	w8, w21, w8
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x23
	bl	_ath9k_hw_common
	mov	x24, x0
Lloh2:
	adrp	x8, _ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ANY@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_REG_READ
	mov	x5, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	mov	x3, x21
	mov	x4, x22
	mov	x6, x20
	mov	x7, x19
	bl	_ath_dbg
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AH_TIME_QUANTUM,4,2            ; @AH_TIME_QUANTUM
	.comm	_ANY,4,2                        ; @ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout (%d us) on reg 0x%x: 0x%08x & 0x%08x != 0x%08x\n"

.subsections_via_symbols
