	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_ctrl_iface_remove_network
_wpa_supplicant_ctrl_iface_remove_network: ## @wpa_supplicant_ctrl_iface_remove_network
	.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	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wpa_supplicant_remove_network
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	cmpl	$-2, %eax
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 56(%r12)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_wpa_supplicant_cancel_sched_scan
LBB0_3:
	movl	32(%r12), %edi
	callq	_eapol_sm_invalidate_cached_session
	cmpq	$0, 48(%r12)
	je	LBB0_7
## %bb.4:
	movl	36(%r12), %edi
	xorl	%esi, %esi
	callq	_wpa_sm_set_config
	movl	32(%r12), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_eapol_sm_notify_config
	movq	(%r12), %rax
	movq	_WPA_AUTHENTICATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movl	$1, 8(%r12)
LBB0_6:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpa_supplicant_deauthenticate
LBB0_7:
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	jne	LBB0_8
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_wpas_notify_network_removed
	movq	16(%r12), %rdi
	movl	%r15d, %esi
	callq	_wpa_config_remove_network
	movq	%rbx, %rsi
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %r15d
	movq	8(%rsi), %rbx
	cmpq	%rsi, 24(%r12)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, 24(%r12)
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movl	(%rbx), %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_16:
	movl	%r14d, %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	"all"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"CTRL_IFACE: REMOVE_NETWORK all"

	.comm	_WPA_AUTHENTICATING,8,3         ## @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
L_.str.2:                               ## @.str.2
	.asciz	"CTRL_IFACE: REMOVE_NETWORK id=%d"

L_.str.3:                               ## @.str.3
	.asciz	"CTRL_IFACE: Could not find network id=%d"

L_.str.4:                               ## @.str.4
	.asciz	"CTRL_IFACE: Not able to remove the network id=%d"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_remove_network
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_ctrl_iface_remove_network
_wpa_supplicant_ctrl_iface_remove_network: ; @wpa_supplicant_ctrl_iface_remove_network
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_os_strcmp
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_atoi
	mov	x20, x0
Lloh2:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_supplicant_remove_network
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.2:
	cmn	w0, #2
	b.ne	LBB0_11
; %bb.3:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_4:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_wpa_supplicant_cancel_sched_scan
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_eapol_sm_invalidate_cached_session
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w0, [x19, #36]
	mov	x1, #0
	bl	_wpa_sm_set_config
	ldr	w0, [x19, #32]
	mov	x1, #0
	mov	x2, #0
	bl	_eapol_sm_notify_config
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _WPA_AUTHENTICATING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WPA_AUTHENTICATING@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_9:
Lloh16:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	cbnz	x1, LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_wpas_notify_network_removed
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_wpa_config_remove_network
	mov	x1, x21
	cbz	x21, LBB0_11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x1]
	ldr	x21, [x1, #8]
	ldr	x8, [x19, #24]
	cmp	x8, x1
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	str	xzr, [x19, #24]
	b	LBB0_12
LBB0_15:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	ldr	w0, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
	bl	_wpa_printf
	mov	w0, #-1
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"CTRL_IFACE: REMOVE_NETWORK all"

	.comm	_WPA_AUTHENTICATING,8,3         ; @WPA_AUTHENTICATING
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
l_.str.2:                               ; @.str.2
	.asciz	"CTRL_IFACE: REMOVE_NETWORK id=%d"

l_.str.3:                               ; @.str.3
	.asciz	"CTRL_IFACE: Could not find network id=%d"

l_.str.4:                               ; @.str.4
	.asciz	"CTRL_IFACE: Not able to remove the network id=%d"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_remove_network
.subsections_via_symbols
