	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_flush
_iwlagn_mac_flush:                      ## @iwlagn_mac_flush
	.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
	movl	%ecx, %r14d
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_iwl_is_rfkill
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_TX
LBB0_9:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_MAC80211             ## TAILCALL
LBB0_5:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	decl	%r12d
	movq	_IWL_IPAN_CMD_QUEUE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_IWL_DEFAULT_CMD_QUEUE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%r13d, %r15d
	notl	%r15d
	andl	%r12d, %r15d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_iwlagn_txfifo_flush
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	8(%rbx), %rdi
	movl	%r15d, %esi
	callq	_iwl_trans_wait_tx_queues_empty
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"Aborting flush due to device shutdown\n"

L_.str.2:                               ## @.str.2
	.asciz	"Aborting flush due to RF Kill\n"

	.comm	_IWL_IPAN_CMD_QUEUE_NUM,4,2     ## @IWL_IPAN_CMD_QUEUE_NUM
	.comm	_IWL_DEFAULT_CMD_QUEUE_NUM,4,2  ## @IWL_DEFAULT_CMD_QUEUE_NUM
L_.str.3:                               ## @.str.3
	.asciz	"Flushing SCD queues: 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"flush request fail\n"

L_.str.5:                               ## @.str.5
	.asciz	"wait transmit/flush all frames\n"

L_.str.6:                               ## @.str.6
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_flush
_iwlagn_mac_flush:                      ; @iwlagn_mac_flush
	.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, x3
	bl	_IWL_MAC80211_GET_DVM
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
Lloh2:
	adrp	x8, _STATUS_EXIT_PENDING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_iwl_is_rfkill
	cbz	x0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_IWL_DEBUG_TX
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	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
	add	sp, sp, #64
	b	_IWL_DEBUG_MAC80211
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_BIT
	sub	w22, w0, #1
Lloh11:
	adrp	x8, _IWL_IPAN_CMD_QUEUE_NUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_IPAN_CMD_QUEUE_NUM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh14:
	adrp	x8, _IWL_DEFAULT_CMD_QUEUE_NUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWL_DEFAULT_CMD_QUEUE_NUM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w21
	bic	w21, w22, w8
	cbz	w20, LBB0_9
; %bb.7:
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x19
	mov	x1, x21
	bl	_iwlagn_txfifo_flush
	cbz	x0, LBB0_9
; %bb.8:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_5
LBB0_9:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_iwl_trans_wait_tx_queues_empty
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"Aborting flush due to device shutdown\n"

l_.str.2:                               ; @.str.2
	.asciz	"Aborting flush due to RF Kill\n"

	.comm	_IWL_IPAN_CMD_QUEUE_NUM,4,2     ; @IWL_IPAN_CMD_QUEUE_NUM
	.comm	_IWL_DEFAULT_CMD_QUEUE_NUM,4,2  ; @IWL_DEFAULT_CMD_QUEUE_NUM
l_.str.3:                               ; @.str.3
	.asciz	"Flushing SCD queues: 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"flush request fail\n"

l_.str.5:                               ; @.str.5
	.asciz	"wait transmit/flush all frames\n"

l_.str.6:                               ; @.str.6
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_flush
.subsections_via_symbols
