	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_tx
_ath9k_htc_tx:                          ## @ath9k_htc_tx
	.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, %r14
	movq	%rsi, %r12
	movq	(%rdi), %r13
	movl	(%r13), %edi
	callq	_ath9k_hw_common
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_ieee80211_hdrlen
	movl	%eax, %ebx
	andl	$3, %ebx
	je	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	cmpl	%eax, (%r14)
	jle	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_skb_headroom
	cmpl	%ebx, %eax
	jge	LBB0_5
## %bb.3:
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_push
	movq	8(%r14), %rdi
	movl	%ebx, %esi
	addq	%rdi, %rsi
	movl	%r15d, %edx
	callq	_memmove
LBB0_6:
	movq	%r13, %rdi
	callq	_ath9k_htc_tx_get_slot
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_ath9k_htc_tx_start
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath_dbg
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ath9k_htc_tx_clear_slot
	jmp	LBB0_10
LBB0_7:
	movq	_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath_dbg
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb_any              ## TAILCALL
LBB0_11:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_htc_check_stop_queues    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XMIT,4,2                       ## @XMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No room for padding\n"

L_.str.1:                               ## @.str.1
	.asciz	"No free TX slot\n"

L_.str.2:                               ## @.str.2
	.asciz	"Tx failed\n"

	.no_dead_strip	_ath9k_htc_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_tx
_ath9k_htc_tx:                          ; @ath9k_htc_tx
	.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	x19, x2
	mov	x22, x1
	ldr	x20, [x0]
	ldr	w0, [x20]
	bl	_ath9k_hw_common
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ieee80211_hdrlen
	ands	w24, w0, #0x3
	b.eq	LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	w8, [x19]
	cmp	w8, w0
	b.le	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_skb_headroom
	cmp	w0, w24
	b.ge	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _XMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XMIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	mov	x1, x24
	bl	_skb_push
	ldr	x0, [x19, #8]
	add	x1, x0, w24, uxtw
	mov	x2, x23
	bl	_memmove
LBB0_5:
	mov	x0, x20
	bl	_ath9k_htc_tx_get_slot
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x23, x0
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	mov	w4, #0
	bl	_ath9k_htc_tx_start
	cbz	w0, LBB0_11
; %bb.7:
Lloh5:
	adrp	x8, _XMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XMIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
	mov	x0, x20
	mov	x1, x23
	bl	_ath9k_htc_tx_clear_slot
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _XMIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XMIT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x21
	bl	_ath_dbg
LBB0_10:
	mov	x0, x19
	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
	b	_dev_kfree_skb_any
LBB0_11:
	mov	x0, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath9k_htc_check_stop_queues
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XMIT,4,2                       ; @XMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No room for padding\n"

l_.str.1:                               ; @.str.1
	.asciz	"No free TX slot\n"

l_.str.2:                               ; @.str.2
	.asciz	"Tx failed\n"

	.no_dead_strip	_ath9k_htc_tx
.subsections_via_symbols
