	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_remove_station             ## -- Begin function iwl_remove_station
	.p2align	4, 0x90
_iwl_remove_station:                    ## @iwl_remove_station
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_iwl_is_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_IWL_DEBUG_ASSOC
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	16(%rbx), %rax
	movq	%r15, %r12
	shlq	$4, %r12
	movl	(%rax,%r12), %ecx
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_5
## %bb.8:
	movq	_IWL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.10:
	movq	_IWL_STA_LOCAL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.11:
	movq	8(%rax,%r12), %rdi
	callq	_kfree
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rsi
	movq	16(%rbx), %rax
	movq	$0, 8(%rax,%r12)
LBB0_12:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_16
## %bb.13:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	addq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incq	%r14
	addq	$4, %r13
	cmpq	(%r12), %r14
	jb	LBB0_14
## %bb.15:
	movq	16(%rbx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rsi
LBB0_16:
	movl	(%rsi), %ecx
	notl	%ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	andl	%ecx, (%rax,%rdx)
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	$0, (%rbx)
LBB0_18:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_send_remove_station        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_IWL_DEBUG_INFO
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_IWL_DEBUG_INFO
	movq	%r13, %rdi
	callq	_spin_unlock_bh
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to remove station %pM, device not ready.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Removing STA from driver:%d  %pM\n"

	.comm	_IWL_INVALID_STATION,8,3        ## @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ## @IWL_STA_DRIVER_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"Removing %pM but non DRIVER active\n"

	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ## @IWL_STA_UCODE_ACTIVE
L_.str.3:                               ## @.str.3
	.asciz	"Removing %pM but non UCODE active\n"

	.comm	_IWL_STA_LOCAL,4,2              ## @IWL_STA_LOCAL
	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_remove_station             ; -- Begin function iwl_remove_station
	.p2align	2
_iwl_remove_station:                    ; @iwl_remove_station
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_iwl_is_ready
	cbz	w0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_IWL_DEBUG_ASSOC
Lloh2:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_17
; %bb.2:
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x20, #16]
	lsl	x23, x21, #4
	ldr	w9, [x8, x23]
Lloh5:
	adrp	x24, _IWL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IWL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.3:
Lloh7:
	adrp	x10, _IWL_STA_UCODE_ACTIVE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IWL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.4:
Lloh10:
	adrp	x10, _IWL_STA_LOCAL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IWL_STA_LOCAL@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	add	x8, x8, x23
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x20, #16]
	add	x9, x8, x23
	str	xzr, [x9, #8]
LBB0_6:
Lloh13:
	adrp	x25, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
	ldr	x9, [x25]
	cbz	x9, LBB0_10
; %bb.7:
	mov	x26, #0
	mov	x27, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x8, x26
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x27, x27, #1
	ldr	x8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.lo	LBB0_8
; %bb.9:
	ldr	x8, [x20, #16]
LBB0_10:
	ldr	w9, [x24]
	ldr	w10, [x8, x23]
	bic	w9, w10, w9
	str	w9, [x8, x23]
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_12
; %bb.11:
	str	xzr, [x20]
LBB0_12:
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_iwl_send_remove_station
LBB0_13:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_DEBUG_INFO
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_DEBUG_INFO
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_17:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to remove station %pM, device not ready.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Removing STA from driver:%d  %pM\n"

	.comm	_IWL_INVALID_STATION,8,3        ; @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ; @IWL_STA_DRIVER_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"Removing %pM but non DRIVER active\n"

	.comm	_IWL_STA_UCODE_ACTIVE,4,2       ; @IWL_STA_UCODE_ACTIVE
l_.str.3:                               ; @.str.3
	.asciz	"Removing %pM but non UCODE active\n"

	.comm	_IWL_STA_LOCAL,4,2              ; @IWL_STA_LOCAL
	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
.subsections_via_symbols
