	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_tx_try
_ath6kl_htc_tx_try:                     ## @ath6kl_htc_tx_try
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %r15
	callq	_spin_lock_bh
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_get_queue_depth
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %r8d
	cmpl	%r8d, %r13d
	jl	LBB0_4
## %bb.1:
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_ath6kl_dbg
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movl	12(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%r15
	movq	_HTC_SEND_FULL_DROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	incl	8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ath6kl_htc_tx_from_queue
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htc tx overflow ep %d depth %d max %d\n"

	.comm	_HTC_SEND_FULL_DROP,8,3         ## @HTC_SEND_FULL_DROP
	.no_dead_strip	_ath6kl_htc_tx_try
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_htc_tx_try
_ath6kl_htc_tx_try:                     ; @ath6kl_htc_tx_try
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x1, #24]
	bl	_spin_lock_bh
	add	x22, x19, #4
	mov	x0, x22
	bl	_get_queue_depth
	mov	x23, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w4, [x19]
	cmp	w23, w4
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_ath6kl_dbg
	cbz	x24, LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
	mov	x1, x21
	blr	x24
Lloh5:
	adrp	x8, _HTC_SEND_FULL_DROP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HTC_SEND_FULL_DROP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x22
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x19
	bl	_ath6kl_htc_tx_from_queue
	mov	w0, #1
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htc tx overflow ep %d depth %d max %d\n"

	.comm	_HTC_SEND_FULL_DROP,8,3         ; @HTC_SEND_FULL_DROP
	.no_dead_strip	_ath6kl_htc_tx_try
.subsections_via_symbols
