	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_remove_iface    ## -- Begin function wpa_supplicant_remove_iface
	.p2align	4, 0x90
_wpa_supplicant_remove_iface:           ## @wpa_supplicant_remove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_2
## %bb.5:
	addq	$8, %rax
	jmp	LBB0_6
LBB0_1:
	leaq	16(%r15), %rax
LBB0_6:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_dbg
	cmpq	%rbx, 8(%r15)
	je	LBB0_7
## %bb.8:
	cmpq	%rbx, (%r15)
	je	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_wpa_supplicant_deinit_iface
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	$0, 8(%r15)
	cmpq	%rbx, (%r15)
	jne	LBB0_10
LBB0_9:
	movq	$0, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing interface %s"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.comm	_WPA_IF_MESH,4,2                ## @WPA_IF_MESH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_remove_iface    ; -- Begin function wpa_supplicant_remove_iface
	.p2align	2
_wpa_supplicant_remove_iface:           ; @wpa_supplicant_remove_iface
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x8, x0
	ldr	x9, [x8, #16]!
	cmp	x9, x1
	b.eq	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x9
	ldr	x9, [x9, #8]
	cmp	x9, x20
	b.ne	LBB0_1
; %bb.3:
	add	x8, x8, #8
LBB0_4:
	ldr	x9, [x20, #8]
	str	x9, [x8]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_dbg
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x21, #8]
LBB0_6:
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x21]
LBB0_8:
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_wpa_supplicant_deinit_iface
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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	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	"Removing interface %s"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.comm	_WPA_IF_MESH,4,2                ; @WPA_IF_MESH
.subsections_via_symbols
