	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_deinit_iface
_wpa_supplicant_deinit_iface:           ## @wpa_supplicant_deinit_iface
	.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
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	96(%rdi), %r12
	cmpq	%rdi, 80(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_wpas_p2p_group_remove
LBB0_2:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	64(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, 88(%rbx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %rbx
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	80(%rbx), %rax
	movq	%rax, 88(%rbx)
	cmpq	%r13, %rbx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, 80(%rbx)
	jne	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	72(%rbx), %edx
	movl	72(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	64(%rbx), %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_wpa_supplicant_remove_iface
	movq	%r15, %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_9:
	movl	$1, (%r13)
	cmpq	$0, 40(%r13)
	je	LBB0_11
## %bb.10:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpa_supplicant_deauthenticate
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpa_drv_set_countermeasures
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpa_clear_keys
LBB0_11:
	movq	%r13, %rdi
	callq	_wpa_supplicant_cleanup
	movq	%r13, %rdi
	callq	_wpas_p2p_deinit_iface
	movq	%r13, %rdi
	callq	_wpas_ctrl_radio_work_flush
	movq	%r13, %rdi
	callq	_radio_remove_interface
	cmpq	$0, 40(%r13)
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_wpa_drv_deinit
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_wpas_notify_iface_removed
LBB0_15:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WPA_EVENT_TERMINATING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_wpa_msg
LBB0_17:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_wpa_supplicant_ctrl_iface_deinit
	movq	$0, 32(%r13)
LBB0_19:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_wpa_config_free
	movq	$0, 16(%r13)
LBB0_21:
	movq	8(%r13), %rdi
	callq	_os_free
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Remove remaining child interface %s from parent %s"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_WPA_EVENT_TERMINATING,4,2      ## @WPA_EVENT_TERMINATING
	.no_dead_strip	_wpa_supplicant_deinit_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_deinit_iface
_wpa_supplicant_deinit_iface:           ; @wpa_supplicant_deinit_iface
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #96]
	ldr	x8, [x0, #80]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	x23, [x22]
	cbnz	x23, LBB0_3
	b	LBB0_10
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpas_p2p_group_remove
	ldr	x23, [x22]
	cbz	x23, LBB0_10
LBB0_3:
Lloh2:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x23, #64]
	cbz	x23, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #88]
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, x19
	b.ne	LBB0_8
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #80]
	str	x8, [x23, #88]
	cmp	x23, x19
	b.eq	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #80]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	ldr	w2, [x23, #72]
	ldr	w3, [x19, #72]
	mov	x1, x24
	bl	_wpa_printf
	ldr	x26, [x23, #64]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_wpa_supplicant_remove_iface
	mov	x23, x26
	cbnz	x26, LBB0_5
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
; %bb.11:
Lloh6:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
	mov	x0, x19
	mov	w1, #0
	bl	_wpa_drv_set_countermeasures
	mov	x0, x19
	mov	x1, #0
	bl	_wpa_clear_keys
LBB0_12:
	mov	x0, x19
	bl	_wpa_supplicant_cleanup
	mov	x0, x19
	bl	_wpas_p2p_deinit_iface
	mov	x0, x19
	bl	_wpas_ctrl_radio_work_flush
	mov	x0, x19
	bl	_radio_remove_interface
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_wpa_drv_deinit
LBB0_14:
	cbz	w21, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_wpas_notify_iface_removed
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _WPA_EVENT_TERMINATING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPA_EVENT_TERMINATING@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wpa_msg
LBB0_18:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_wpa_supplicant_ctrl_iface_deinit
	str	xzr, [x19, #32]
LBB0_20:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_wpa_config_free
	str	xzr, [x19, #16]
LBB0_22:
	ldr	x0, [x19, #8]
	bl	_os_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_os_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Remove remaining child interface %s from parent %s"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_WPA_EVENT_TERMINATING,4,2      ; @WPA_EVENT_TERMINATING
	.no_dead_strip	_wpa_supplicant_deinit_iface
.subsections_via_symbols
