	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_uap_cleanup_tx_queues
_mwifiex_uap_cleanup_tx_queues:         ## @mwifiex_uap_cleanup_tx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movl	(%r15), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r15)
	xorl	%eax, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mwifiex_uap_del_tx_pkts_in_ralist
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_2
	jmp	LBB0_7
LBB0_5:
	incl	(%r15)
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_TID,4,2                ## @MAX_NUM_TID
	.no_dead_strip	_mwifiex_uap_cleanup_tx_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_uap_cleanup_tx_queues
_mwifiex_uap_cleanup_tx_queues:         ; @mwifiex_uap_cleanup_tx_queues
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_bh
Lloh0:
	adrp	x22, _MAX_NUM_TID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_NUM_TID@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w21, #0
	ldr	w8, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	str	wzr, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #16]
	add	x1, x9, w8, sxtw #2
	mov	x0, x20
	mov	x2, x21
	bl	_mwifiex_uap_del_tx_pkts_in_ralist
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w9, [x22]
	cmp	w21, w9
	b.lt	LBB0_2
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_TID,4,2                ; @MAX_NUM_TID
	.no_dead_strip	_mwifiex_uap_cleanup_tx_queues
.subsections_via_symbols
