	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_op_sta_remove
_carl9170_op_sta_remove:                ## @carl9170_op_sta_remove
	.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
	cmpq	$0, (%rdx)
	je	LBB0_11
## %bb.1:
	movq	(%rdi), %r14
	movq	8(%rdx), %r15
	movl	$0, (%r15)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	$1, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r13,4), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movl	(%rax,%r13,4), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_CARL9170_TID_STATE_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_carl9170_ampdu_gc
	jmp	LBB0_11
LBB0_2:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_TID_STATE_SHUTDOWN,8,3 ## @CARL9170_TID_STATE_SHUTDOWN
	.no_dead_strip	_carl9170_op_sta_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_op_sta_remove
_carl9170_op_sta_remove:                ; @carl9170_op_sta_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x2]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x19, [x0]
	ldr	x21, [x2, #8]
	str	wzr, [x21]
	bl	_rcu_read_lock
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_10
; %bb.2:
	mov	x22, #0
	mov	w24, #0
Lloh0:
	adrp	x23, _CARL9170_TID_STATE_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CARL9170_TID_STATE_SHUTDOWN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w24, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x25, x22, #2
	ldr	w0, [x8, x25]
	bl	_rcu_dereference
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x25]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x9, [x20]
	ldr	x8, [x23]
	cmp	x9, x8
	b.le	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x20]
	b	LBB0_3
LBB0_8:
	bl	_rcu_read_unlock
	cbz	w24, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_carl9170_ampdu_gc
	b	LBB0_11
LBB0_10:
	bl	_rcu_read_unlock
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_TID_STATE_SHUTDOWN,8,3 ; @CARL9170_TID_STATE_SHUTDOWN
	.no_dead_strip	_carl9170_op_sta_remove
.subsections_via_symbols
