	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_ap_remove_entry
_wps_er_ap_remove_entry:                ## @wps_er_ap_remove_entry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	36(%rsi), %edi
	callq	_inet_ntoa
	movl	32(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movq	_wps_er_ap_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eloop_cancel_timeout
	movq	%rbx, %rdi
	callq	_wps_er_sta_remove_all
	movl	4(%r14), %edi
	movq	_WPS_EV_ER_AP_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_wps_er_ap_event
	movq	24(%rbx), %rdi
	callq	_http_client_free
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_wps_deinit
	movq	$0, 16(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_dl_list_del
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dl_list_add
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wps_er_ap_unsubscribe          ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wps_er_ap_free                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: Removing AP entry for %s (%s)"

	.comm	_wps_er_ap_timeout,4,2          ## @wps_er_ap_timeout
	.comm	_WPS_EV_ER_AP_REMOVE,4,2        ## @WPS_EV_ER_AP_REMOVE
	.no_dead_strip	_wps_er_ap_remove_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_ap_remove_entry
_wps_er_ap_remove_entry:                ; @wps_er_ap_remove_entry
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x1, #36]
	bl	_inet_ntoa
	mov	x2, x0
	ldr	w3, [x19, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
Lloh5:
	adrp	x8, _wps_er_ap_timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wps_er_ap_timeout@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_eloop_cancel_timeout
	mov	x0, x19
	bl	_wps_er_sta_remove_all
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _WPS_EV_ER_AP_REMOVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPS_EV_ER_AP_REMOVE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_wps_er_ap_event
	ldr	x0, [x19, #24]
	bl	_http_client_free
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_wps_deinit
	str	xzr, [x19, #16]
LBB0_2:
	mov	x0, x19
	bl	_dl_list_del
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_dl_list_add
	mov	x0, x20
	mov	x1, x19
	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
	b	_wps_er_ap_unsubscribe
LBB0_4:
	mov	x0, x19
	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
	b	_wps_er_ap_free
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: Removing AP entry for %s (%s)"

	.comm	_wps_er_ap_timeout,4,2          ; @wps_er_ap_timeout
	.comm	_WPS_EV_ER_AP_REMOVE,4,2        ; @WPS_EV_ER_AP_REMOVE
	.no_dead_strip	_wps_er_ap_remove_entry
.subsections_via_symbols
