	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_remove_station              ## -- Begin function il_remove_station
	.p2align	4, 0x90
_il_remove_station:                     ## @il_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
	pushq	%rax
	.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	_il_is_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_D_ASSOC
	movq	_IL_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), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movq	%r15, %r13
	shlq	$4, %r13
	movl	(%rax,%r13), %ecx
	movq	_IL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_5
## %bb.8:
	movq	_IL_STA_UCODE_ACTIVE@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_9
## %bb.10:
	movq	_IL_STA_LOCAL@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_12
## %bb.11:
	movq	8(%rax,%r13), %rdi
	callq	_kfree
	movq	16(%rbx), %rax
	movq	$0, 8(%rax,%r13)
	movq	_IL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax,%r13), %ecx
LBB0_12:
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax,%r13)
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_il_send_remove_station         ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_D_INFO
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	movq	%r14, %rsi
	callq	_D_INFO
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %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	_IL_INVALID_STATION,8,3         ## @IL_INVALID_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IL_STA_DRIVER_ACTIVE,4,2       ## @IL_STA_DRIVER_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"Removing %pM but non DRIVER active\n"

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

	.comm	_IL_STA_LOCAL,4,2               ## @IL_STA_LOCAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_remove_station              ; -- Begin function il_remove_station
	.p2align	2
_il_remove_station:                     ; @il_remove_station
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_il_is_ready
	cbz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_D_ASSOC
Lloh2:
	adrp	x8, _IL_INVALID_STATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IL_INVALID_STATION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.2:
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #16]
	lsl	x23, x20, #4
	ldr	w9, [x8, x23]
Lloh5:
	adrp	x24, _IL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.3:
Lloh7:
	adrp	x11, _IL_STA_UCODE_ACTIVE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IL_STA_UCODE_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_9
; %bb.4:
Lloh10:
	adrp	x11, _IL_STA_LOCAL@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IL_STA_LOCAL@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_6
; %bb.5:
	add	x8, x8, x23
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x21, #16]
	add	x9, x8, x23
	str	xzr, [x9, #8]
	ldr	w10, [x24]
	ldr	w9, [x9]
LBB0_6:
	bic	w9, w9, w10
	str	w9, [x8, x23]
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	cset	w0, lt
	bl	_BUG_ON
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	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	_il_send_remove_station
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_D_INFO
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	mov	x1, x19
	bl	_D_INFO
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_11:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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	_IL_INVALID_STATION,8,3         ; @IL_INVALID_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IL_STA_DRIVER_ACTIVE,4,2       ; @IL_STA_DRIVER_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"Removing %pM but non DRIVER active\n"

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

	.comm	_IL_STA_LOCAL,4,2               ; @IL_STA_LOCAL
.subsections_via_symbols
