	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_swba                 ## -- Begin function ath9k_htc_swba
	.p2align	4, 0x90
_ath9k_htc_swba:                        ## @ath9k_htc_swba
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_ath9k_hw_common
	cmpq	$0, (%r14)
	movq	8(%rbx), %rcx
	je	LBB0_3
## %bb.1:
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	movq	_BSTUCK_THRESHOLD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_6
## %bb.2:
	movq	_BSTUCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	28(%rbx), %edi
	addq	$24, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_work           ## TAILCALL
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	_BSTUCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	$0, 8(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath9k_htc_choose_bslot
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	16(%rbx), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r15
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ath9k_htc_send_buffered
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_htc_send_beacon          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSTUCK_THRESHOLD,8,3           ## @BSTUCK_THRESHOLD
	.comm	_BSTUCK,4,2                     ## @BSTUCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Beacon stuck, HW reset\n"

L_.str.1:                               ## @.str.1
	.asciz	"Resuming beacon xmit after %u misses\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_swba                 ; -- Begin function ath9k_htc_swba
	.p2align	2
_ath9k_htc_swba:                        ; @ath9k_htc_swba
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_ath9k_hw_common
	ldr	x9, [x20]
	ldr	x8, [x19, #8]
	cbz	x9, LBB0_3
; %bb.1:
	add	x9, x8, #1
	str	x9, [x19, #8]
Lloh0:
	adrp	x9, _BSTUCK_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSTUCK_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _BSTUCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSTUCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	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
	add	sp, sp, #64
	b	_ieee80211_queue_work
LBB0_3:
	cbz	x8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, _BSTUCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BSTUCK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ath_dbg
	str	xzr, [x19, #8]
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_htc_choose_bslot
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #16]
	ldr	x21, [x8, w20, sxtw #3]
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	x21, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_htc_send_buffered
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #64
	b	_ath9k_htc_send_beacon
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BSTUCK_THRESHOLD,8,3           ; @BSTUCK_THRESHOLD
	.comm	_BSTUCK,4,2                     ; @BSTUCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Beacon stuck, HW reset\n"

l_.str.1:                               ; @.str.1
	.asciz	"Resuming beacon xmit after %u misses\n"

.subsections_via_symbols
