	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_hostapd_remove_sta
_prism2_hostapd_remove_sta:             ## @prism2_hostapd_remove_sta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_spin_lock_bh
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ap_sta_hash_del
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.2:
	cmpl	$0, 16(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hostap_event_expired_sta
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ap_free_sta
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_WLAN_STA_ASSOC,4,2             ## @WLAN_STA_ASSOC
	.no_dead_strip	_prism2_hostapd_remove_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_hostapd_remove_sta
_prism2_hostapd_remove_sta:             ; @prism2_hostapd_remove_sta
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_bh
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ap_get_sta
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ap_sta_hash_del
	add	x0, x20, #20
	bl	_list_del
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WLAN_STA_ASSOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_hostap_event_expired_sta
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ap_free_sta
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_WLAN_STA_ASSOC,4,2             ; @WLAN_STA_ASSOC
	.no_dead_strip	_prism2_hostapd_remove_sta
.subsections_via_symbols
