	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_flush_queues         ## -- Begin function ieee80211_flush_queues
	.p2align	4, 0x90
_ieee80211_flush_queues:                ## @ieee80211_flush_queues
	.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	16(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	_IEEE80211_HW_QUEUE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.3:
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_BIT
	orl	%eax, %r13d
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_9:
	movq	8(%r14), %rdi
	callq	_BIT
	movl	%eax, %r13d
	decl	%r13d
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r13d, %r13d
LBB0_7:
	movq	8(%r15), %rdi
	movq	_IEEE80211_INVAL_HW_QUEUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_10
## %bb.8:
	callq	_BIT
	orl	%eax, %r13d
LBB0_10:
	movq	_IEEE80211_MAX_QUEUE_MAP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IEEE80211_QUEUE_STOP_REASON_FLUSH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ieee80211_stop_queues_by_reason
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_drv_flush
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_wake_queues_by_reason ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_QUEUE_CONTROL,4,2 ## @IEEE80211_HW_QUEUE_CONTROL
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ## @IEEE80211_INVAL_HW_QUEUE
	.comm	_IEEE80211_MAX_QUEUE_MAP,4,2    ## @IEEE80211_MAX_QUEUE_MAP
	.comm	_IEEE80211_QUEUE_STOP_REASON_FLUSH,4,2 ## @IEEE80211_QUEUE_STOP_REASON_FLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_flush_queues         ; -- Begin function ieee80211_flush_queues
	.p2align	2
_ieee80211_flush_queues:                ; @ieee80211_flush_queues
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_6
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IEEE80211_HW_QUEUE_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_QUEUE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x22, _IEEE80211_NUM_ACS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x23, lsl #3]
	bl	_BIT
	orr	w20, w0, w20
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_BIT
	sub	w20, w0, #1
	b	LBB0_11
LBB0_7:
	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
	ret
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	x0, [x21, #8]
Lloh5:
	adrp	x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	bl	_BIT
	orr	w20, w0, w20
LBB0_11:
Lloh8:
	adrp	x21, _IEEE80211_MAX_QUEUE_MAP@GOTPAGE
Lloh9:
	ldr	x21, [x21, _IEEE80211_MAX_QUEUE_MAP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x22, _IEEE80211_QUEUE_STOP_REASON_FLUSH@GOTPAGE
Lloh11:
	ldr	x22, [x22, _IEEE80211_QUEUE_STOP_REASON_FLUSH@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ieee80211_stop_queues_by_reason
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_drv_flush
	ldr	w1, [x21]
	ldr	w2, [x22]
	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	_ieee80211_wake_queues_by_reason
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_QUEUE_CONTROL,4,2 ; @IEEE80211_HW_QUEUE_CONTROL
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_IEEE80211_INVAL_HW_QUEUE,8,3   ; @IEEE80211_INVAL_HW_QUEUE
	.comm	_IEEE80211_MAX_QUEUE_MAP,4,2    ; @IEEE80211_MAX_QUEUE_MAP
	.comm	_IEEE80211_QUEUE_STOP_REASON_FLUSH,4,2 ; @IEEE80211_QUEUE_STOP_REASON_FLUSH
.subsections_via_symbols
