	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_sta_remove
_iwlagn_mac_sta_remove:                 ## @iwlagn_mac_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %r14
	movq	8(%rbx), %r12
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_IWL_DEBUG_INFO
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	movl	(%r12), %esi
	movl	(%rbx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_iwl_deactivate_station
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_iwl_remove_station
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_QUIET_RFKILL
	jmp	LBB0_5
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proceeding to remove station %pM\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
L_.str.1:                               ## @.str.1
	.asciz	"Error removing station %pM\n"

	.no_dead_strip	_iwlagn_mac_sta_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_sta_remove
_iwlagn_mac_sta_remove:                 ; @iwlagn_mac_sta_remove
	.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	x19, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_DVM
	mov	x20, x0
	ldr	x22, [x19, #8]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w1, [x22]
	ldr	w2, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_iwl_deactivate_station
	mov	w21, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_iwl_remove_station
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_QUIET_RFKILL
LBB0_4:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proceeding to remove station %pM\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
l_.str.1:                               ; @.str.1
	.asciz	"Error removing station %pM\n"

	.no_dead_strip	_iwlagn_mac_sta_remove
.subsections_via_symbols
