	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_send_buffered
_ath9k_htc_send_buffered:               ## @ath9k_htc_send_buffered
	.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	%esi, %ebx
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_ath9k_hw_common
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	16(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	4(%r15), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_ieee80211_get_buffered_bc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	leaq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath9k_htc_tx_clear_slot
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	callq	_ath_dbg
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_get_buffered_bc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %r12d
	andl	$3, %r12d
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	cmpl	%eax, (%r13)
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_skb_headroom
	cmpl	%r12d, %eax
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_push
	movq	8(%r13), %rdi
	movl	%r12d, %esi
	addq	%rdi, %rsi
	movl	%r14d, %edx
	callq	_memmove
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ath9k_htc_tx_get_slot
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_ath9k_htc_tx_start
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	incl	12(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	callq	_ath_dbg
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XMIT,4,2                       ## @XMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No free CAB slot\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to send CAB frame\n"

	.no_dead_strip	_ath9k_htc_send_buffered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_send_buffered
_ath9k_htc_send_buffered:               ; @ath9k_htc_send_buffered
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #16]
	ldr	x21, [x8, w21, sxtw #3]
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ieee80211_get_buffered_bc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x25, x0
	add	x22, x19, #8
Lloh0:
	adrp	x28, _XMIT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _XMIT@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_ath9k_htc_tx_clear_slot
	mov	x0, x25
	bl	_dev_kfree_skb_any
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x24
	bl	_ath_dbg
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ieee80211_get_buffered_bc
	mov	x25, x0
	cbz	x0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	w0, [x8]
	bl	_ieee80211_hdrlen
	ands	w27, w0, #0x3
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	w8, [x25]
	cmp	w8, w0
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_skb_headroom
	cmp	w0, w27
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x27
	bl	_skb_push
	ldr	x0, [x25, #8]
	add	x1, x0, w27, uxtw
	mov	x2, x26
	bl	_memmove
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ath9k_htc_tx_get_slot
	tbnz	w0, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x19
	mov	x1, #0
	mov	x2, x25
	mov	x3, x26
	mov	w4, #1
	bl	_ath9k_htc_tx_start
	cbnz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x22
	bl	_spin_unlock_bh
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x23
	bl	_ath_dbg
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_dev_kfree_skb_any
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XMIT,4,2                       ; @XMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No free CAB slot\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to send CAB frame\n"

	.no_dead_strip	_ath9k_htc_send_buffered
.subsections_via_symbols
