	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath10k_htt_tx_txq_sync
___ath10k_htt_tx_txq_sync:              ## @__ath10k_htt_tx_txq_sync
	.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
	addq	$32, %rdi
	callq	_lockdep_assert_held
	cmpl	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_HTT_TX_MODE_SWITCH_PUSH_PULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_ATH10K_DBG_HTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_ath10k_dbg
	movl	8(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dma_sync_single_for_device     ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTT_TX_MODE_SWITCH_PUSH_PULL,8,3 ## @HTT_TX_MODE_SWITCH_PUSH_PULL
	.comm	_ATH10K_DBG_HTT,4,2             ## @ATH10K_DBG_HTT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htt tx txq state update commit seq %u\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	___ath10k_htt_tx_txq_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ath10k_htt_tx_txq_sync
___ath10k_htt_tx_txq_sync:              ; @__ath10k_htt_tx_txq_sync
	.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	x19, x0
	add	x0, x0, #32
	bl	_lockdep_assert_held
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HTT_TX_MODE_SWITCH_PUSH_PULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HTT_TX_MODE_SWITCH_PUSH_PULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	add	w20, w0, #1
	mov	x0, x20
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	w0, [x8]
Lloh3:
	adrp	x8, _ATH10K_DBG_HTT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_DBG_HTT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_dbg
	ldr	w0, [x19, #40]
Lloh8:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w1, [x19, #8]
Lloh10:
	ldr	w3, [x8]
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_sync_single_for_device
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HTT_TX_MODE_SWITCH_PUSH_PULL,8,3 ; @HTT_TX_MODE_SWITCH_PUSH_PULL
	.comm	_ATH10K_DBG_HTT,4,2             ; @ATH10K_DBG_HTT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htt tx txq state update commit seq %u\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	___ath10k_htt_tx_txq_sync
.subsections_via_symbols
