	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_check_stop_queues    ## -- Begin function ath9k_htc_check_stop_queues
	.p2align	4, 0x90
_ath9k_htc_check_stop_queues:           ## @ath9k_htc_check_stop_queues
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_ATH9K_HTC_TX_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movl	8(%rbx), %eax
	movq	_ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	movl	16(%rbx), %edi
	callq	_ieee80211_stop_queues
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_HTC_TX_THRESHOLD,8,3     ## @ATH9K_HTC_TX_THRESHOLD
	.comm	_ATH9K_HTC_OP_TX_QUEUES_STOP,4,2 ## @ATH9K_HTC_OP_TX_QUEUES_STOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_check_stop_queues    ; -- Begin function ath9k_htc_check_stop_queues
	.p2align	2
_ath9k_htc_check_stop_queues:           ; @ath9k_htc_check_stop_queues
	.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, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh0:
	adrp	x9, _ATH9K_HTC_TX_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_HTC_TX_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	orr	w8, w9, w8
	str	w8, [x20, #8]
	ldr	w0, [x20, #16]
	bl	_ieee80211_stop_queues
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_HTC_TX_THRESHOLD,8,3     ; @ATH9K_HTC_TX_THRESHOLD
	.comm	_ATH9K_HTC_OP_TX_QUEUES_STOP,4,2 ; @ATH9K_HTC_OP_TX_QUEUES_STOP
.subsections_via_symbols
