	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_11n_scan_and_dispatch
_mwifiex_11n_scan_and_dispatch:         ## @mwifiex_11n_scan_and_dispatch
	.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	%rsi, %r12
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	callq	___skb_queue_head_init
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %rcx
	movq	(%rcx), %rsi
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movl	$1, %ecx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	%r15, %rdi
	callq	___skb_queue_tail
	movq	8(%r12), %rax
	movq	$0, -8(%rax,%rbx,8)
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rsi
	leaq	1(%rbx), %rcx
	testq	%rsi, %rsi
	jne	LBB0_6
LBB0_7:
	testl	%ebx, %ebx
	jne	LBB0_8
	jmp	LBB0_16
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_3:
	xorl	%ebx, %ebx
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_8:
	subl	%ebx, %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	movl	%eax, %r8d
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movl	%r8d, %edx
	andl	$-2, %edx
	leaq	(,%rbx,8), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	leaq	(%rdi,%rsi), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movq	8(%r12), %rcx
	addq	%rsi, %rcx
	movq	$0, (%rcx,%rax,8)
	movq	8(%r12), %rcx
	leaq	(%rcx,%rsi), %rdi
	addq	$8, %rdi
	movq	(%rdi,%rax,8), %rdi
	movq	%rdi, 8(%rcx,%rax,8)
	movq	8(%r12), %rcx
	addq	%rsi, %rcx
	movq	$0, 8(%rcx,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %rdx
	jne	LBB0_12
LBB0_13:
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movl	%ebx, %ecx
	movq	8(%r12), %rdx
	addq	%rax, %rcx
	movq	(%rdx,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rax,8)
	movq	8(%r12), %rax
	movq	$0, (%rax,%rcx,8)
LBB0_15:
	movl	%ebx, %r13d
LBB0_16:
	addl	4(%r12), %r13d
	movq	_MAX_TID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%r13d, %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	leaq	-48(%rbp), %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mwifiex_11n_dispatch_pkt
	movq	%rbx, %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	jne	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TID_VALUE,4,2              ## @MAX_TID_VALUE
	.no_dead_strip	_mwifiex_11n_scan_and_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_11n_scan_and_dispatch
_mwifiex_11n_scan_and_dispatch:         ; @mwifiex_11n_scan_and_dispatch
	.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, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	___skb_queue_head_init
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_7
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	___skb_queue_tail
	ldr	x8, [x20, #8]
	str	xzr, [x8, x21, lsl #3]
	add	x8, x21, #1
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x21, lsl #3
	ldr	x1, [x10, #8]
	mov	x21, x8
	cbnz	x1, LBB0_3
LBB0_5:
	cbnz	w8, LBB0_8
	b	LBB0_11
LBB0_6:
	mov	w8, #0
	b	LBB0_11
LBB0_7:
	mov	x8, #0
	cbz	w8, LBB0_11
LBB0_8:
	sub	w11, w9, w8
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x9, #0
	lsl	x10, x8, #3
	lsl	x11, x11, #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x20, #8]
	add	x13, x12, x10
	ldr	x13, [x13, x9]
	str	x13, [x12, x9]
	ldr	x12, [x20, #8]
	add	x12, x12, x10
	str	xzr, [x12, x9]
	add	x9, x9, #8
	cmp	x11, x9
	b.ne	LBB0_10
LBB0_11:
Lloh0:
	adrp	x9, _MAX_TID_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_TID_VALUE@GOTPAGEOFF]
	ldr	w10, [x20, #4]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	add	w8, w10, w8
	and	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_spin_unlock_bh
	add	x0, sp, #8
	bl	___skb_dequeue
	cbz	x0, LBB0_14
; %bb.12:
	mov	x1, x0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mwifiex_11n_dispatch_pkt
	add	x0, sp, #8
	bl	___skb_dequeue
	mov	x1, x0
	cbnz	x0, LBB0_13
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TID_VALUE,4,2              ; @MAX_TID_VALUE
	.no_dead_strip	_mwifiex_11n_scan_and_dispatch
.subsections_via_symbols
