	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_tx_issue
_ath6kl_htc_tx_issue:                   ## @ath6kl_htc_tx_issue
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movl	24(%rsi), %r13d
	testl	%r13d, %r13d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rax, %r15
	movq	_HTC_HDR_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	16(%rsi), %r14
	movq	%r14, %rsi
	callq	_CALC_TXRX_PADDED_LEN
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%rbx), %ecx
	movq	(%r12), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %r8
	callq	_ath6kl_dbg
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %esi
	movl	4(%rbx), %edx
	testl	%r13d, %r13d
	je	LBB0_1
## %bb.2:
	movq	_HIF_WR_ASYNC_BLOCK_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rcx
	movq	%rbx, %r9
	callq	_hif_write_async
	movl	%eax, %r15d
	movl	4(%rbx), %edx
	jmp	LBB0_3
LBB0_1:
	movq	_HIF_WR_SYNC_BLOCK_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rcx
	callq	_hif_read_write_sync
	movl	%eax, %r15d
	movl	%eax, (%rbx)
	movl	4(%rbx), %edx
	movq	_HTC_HDR_LENGTH@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	%edx, 4(%rbx)
LBB0_3:
	movl	8(%rbx), %esi
	movl	%r15d, %edi
	movq	%r14, %rcx
	callq	_trace_ath6kl_htc_tx
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_HDR_LENGTH,8,3             ## @HTC_HDR_LENGTH
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htc tx issue len %d seqno %d padded_len %d mbox 0x%X %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"sync"

L_.str.2:                               ## @.str.2
	.asciz	"async"

	.comm	_HIF_WR_SYNC_BLOCK_INC,4,2      ## @HIF_WR_SYNC_BLOCK_INC
	.comm	_HIF_WR_ASYNC_BLOCK_INC,4,2     ## @HIF_WR_ASYNC_BLOCK_INC
	.no_dead_strip	_ath6kl_htc_tx_issue
.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_issue
_ath6kl_htc_tx_issue:                   ; @ath6kl_htc_tx_issue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	w25, [x1, #24]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w25, #0
	csel	x23, x9, x8, eq
	ldr	x8, [x1, #16]
Lloh4:
	adrp	x24, _HTC_HDR_LENGTH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HTC_HDR_LENGTH@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x20, x9, x8
	mov	x1, x20
	bl	_CALC_TXRX_PADDED_LEN
	mov	x21, x0
Lloh6:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w3, [x19, #12]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w5, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x21
	mov	x6, x23
	bl	_ath6kl_dbg
	ldr	x8, [x22]
	ldr	x0, [x8]
	ldr	w1, [x0]
	ldr	w2, [x19, #4]
	cbz	w25, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _HIF_WR_ASYNC_BLOCK_INC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HIF_WR_ASYNC_BLOCK_INC@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x3, x21
	mov	x5, x19
	bl	_hif_write_async
	mov	x21, x0
	ldr	w2, [x19, #4]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _HIF_WR_SYNC_BLOCK_INC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HIF_WR_SYNC_BLOCK_INC@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x3, x21
	bl	_hif_read_write_sync
	mov	x21, x0
	ldr	w8, [x24]
	ldr	w9, [x19, #4]
	add	w2, w9, w8
	stp	w0, w2, [x19]
LBB0_3:
	ldr	w1, [x19, #8]
	mov	x0, x21
	mov	x3, x20
	bl	_trace_ath6kl_htc_tx
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_HDR_LENGTH,8,3             ; @HTC_HDR_LENGTH
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htc tx issue len %d seqno %d padded_len %d mbox 0x%X %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"sync"

l_.str.2:                               ; @.str.2
	.asciz	"async"

	.comm	_HIF_WR_SYNC_BLOCK_INC,4,2      ; @HIF_WR_SYNC_BLOCK_INC
	.comm	_HIF_WR_ASYNC_BLOCK_INC,4,2     ; @HIF_WR_ASYNC_BLOCK_INC
	.no_dead_strip	_ath6kl_htc_tx_issue
.subsections_via_symbols
