	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_tx_flush_write
_iwl_dbgfs_tx_flush_write:              ## @iwl_dbgfs_tx_flush_write
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	_IWL_UCODE_REGULAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kstrtou32
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	movl	-36(%rbp), %edx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_flush_sta_tids
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_iwl_mvm_flush_tx_path
LBB0_10:
	testq	%rax, %rax
	cmovnel	%eax, %r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_REGULAR,8,3          ## @IWL_UCODE_REGULAR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FLUSHING all tids queues on sta_id = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"FLUSHING queues mask to flush = 0x%x\n"

	.no_dead_strip	_iwl_dbgfs_tx_flush_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dbgfs_tx_flush_write
_iwl_dbgfs_tx_flush_write:              ; @iwl_dbgfs_tx_flush_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iwl_mvm_firmware_running
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _IWL_UCODE_REGULAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_UCODE_REGULAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtou32
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	ldr	w2, [sp, #12]
	cbz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #255
	mov	w3, #0
	bl	_iwl_mvm_flush_sta_tids
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_mvm_flush_tx_path
LBB0_10:
	cmp	x0, #0
	csel	w20, w20, w0, eq
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_REGULAR,8,3          ; @IWL_UCODE_REGULAR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FLUSHING all tids queues on sta_id = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"FLUSHING queues mask to flush = 0x%x\n"

	.no_dead_strip	_iwl_dbgfs_tx_flush_write
.subsections_via_symbols
