	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iface_Clear                    ## -- Begin function iface_Clear
	.p2align	4, 0x90
_iface_Clear:                           ## @iface_Clear
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, -56(%rbp)
	movl	$-1, -52(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_21
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	_IFACE_CLEAR_ALL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, (%rax)
	setne	%dl
	xorl	%r13d, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-52(%rbp), %r15
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	(%rbx), %r13d
	jae	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	%r13d, %r14d
	leaq	(%rax,%r14,8), %rdi
	addq	$4, %rdi
	callq	_ncprange_family
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %eax
	jne	LBB0_17
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	cmpl	$0, (%rcx,%r14,8)
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-56(%rbp), %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_17
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	_IFACE_SYSTEM@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_17
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	cmpl	$-1, %edx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_ID0socket
	movl	%eax, (%r15)
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movq	8(%rbx), %rcx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	leaq	(%rcx,%r14,8), %rsi
	callq	_iface_addr_Zap
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r14,8), %rsi
	addq	8(%rbx), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ncp_IfaceAddrDeleted
	movq	8(%rbx), %rax
	leaq	(%rax,%r14,8), %rdi
	leaq	(%rax,%r14,8), %rsi
	addq	$8, %rsi
	movl	%r13d, %edx
	notl	%edx
	addl	(%rbx), %edx
	shll	$3, %edx
	callq	_memmove
	decl	(%rbx)
	decl	%r13d
	jmp	LBB0_17
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r14d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_log_Printf
	jmp	LBB0_17
LBB0_18:
	movl	-56(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.19:
	callq	_close
LBB0_20:
	movl	-52(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_21
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFACE_CLEAR_ALL,4,2            ## @IFACE_CLEAR_ALL
	.comm	_IFACE_SYSTEM,4,2               ## @IFACE_SYSTEM
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface_Clear: socket(): %s\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iface_Clear                    ; -- Begin function iface_Clear
	.p2align	2
_iface_Clear:                           ; @iface_Clear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	w8, #-1
	stp	w8, w8, [sp, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_25
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
	mov	w25, #0
Lloh0:
	adrp	x8, _IFACE_CLEAR_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFACE_CLEAR_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
Lloh3:
	adrp	x26, _IFACE_SYSTEM@GOTPAGE
Lloh4:
	ldr	x26, [x26, _IFACE_SYSTEM@GOTPAGEOFF]
	cset	w28, ne
	mov	x23, x28
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	ldr	w8, [x22]
	cmp	w25, w8
	b.hs	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, w25, uxtw #3
	add	x0, x8, #4
	bl	_ncprange_family
	cbz	w20, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, w20
	b.ne	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, w25
	ldr	x8, [x22, #8]
	lsl	x24, x27, #3
	ldr	w9, [x8, x24]
	cbz	w9, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #128
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #129
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w23, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x21, sp, #12
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	tst	w9, w19
	b.ne	LBB0_3
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w28, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, sp, #8
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x21]
	cmn	w2, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ID0socket
	str	w0, [x21]
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	ldr	x8, [x22, #8]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #16]
	add	x1, x8, x27, lsl #3
	bl	_iface_addr_Zap
	cbz	x0, LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	add	x1, x8, x24
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_ncp_IfaceAddrDeleted
	ldr	x8, [x22, #8]
	add	x0, x8, x24
	add	x1, x0, #8
	ldr	w8, [x22]
	mvn	w9, w25
	add	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memmove
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	sub	w25, w25, #1
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _LogERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x24
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	b	LBB0_3
LBB0_21:
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_23
; %bb.22:
	bl	_close
LBB0_23:
	ldr	w0, [sp, #8]
	cbz	w0, LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_close
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IFACE_CLEAR_ALL,4,2            ; @IFACE_CLEAR_ALL
	.comm	_IFACE_SYSTEM,4,2               ; @IFACE_SYSTEM
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface_Clear: socket(): %s\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
