	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IfaceClearCommand
_IfaceClearCommand:                     ## @IfaceClearCommand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movslq	4(%rdi), %rcx
	leal	1(%rcx), %eax
	cmpl	%eax, %esi
	jne	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.3:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	je	LBB0_7
	jmp	LBB0_13
LBB0_5:
	movq	_AF_INET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
LBB0_7:
	movq	8(%rbx), %rsi
	movq	(%rsi), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movq	_PHYS_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rsi)
	jne	LBB0_11
## %bb.10:
	movq	_IFACE_CLEAR_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_IFACE_CLEAR_ALIASES@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ecx
	movl	8(%rsi), %edi
	callq	_iface_Clear
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inet"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"inet6"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_ST_OPENED,8,3                  ## @ST_OPENED
	.comm	_PHYS_AUTO,4,2                  ## @PHYS_AUTO
	.comm	_IFACE_CLEAR_ALIASES,4,2        ## @IFACE_CLEAR_ALIASES
	.comm	_IFACE_CLEAR_ALL,4,2            ## @IFACE_CLEAR_ALL
	.no_dead_strip	_IfaceClearCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IfaceClearCommand
_IfaceClearCommand:                     ; @IfaceClearCommand
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x19, #16]
	ldr	w0, [x9, x8, lsl #2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	ldr	w0, [x8, x9, lsl #2]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbnz	x0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	w2, #0
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
	b	LBB0_12
LBB0_7:
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
LBB0_9:
	ldr	x1, [x19, #8]
	ldr	x9, [x1]
Lloh8:
	adrp	x8, _ST_OPENED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_OPENED@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
Lloh11:
	adrp	x8, _IFACE_CLEAR_ALIASES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFACE_CLEAR_ALIASES@GOTPAGEOFF]
	cmp	x9, x10
	b.eq	LBB0_11
; %bb.10:
Lloh13:
	adrp	x9, _PHYS_AUTO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHYS_AUTO@GOTPAGEOFF]
	ldr	w10, [x1, #12]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x11, _IFACE_CLEAR_ALL@GOTPAGE
Lloh17:
	ldr	x11, [x11, _IFACE_CLEAR_ALL@GOTPAGEOFF]
	tst	w9, w10
	csel	x8, x11, x8, eq
LBB0_11:
	ldr	w3, [x8]
	ldr	w0, [x1, #8]
	bl	_iface_Clear
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inet"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"inet6"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_ST_OPENED,8,3                  ; @ST_OPENED
	.comm	_PHYS_AUTO,4,2                  ; @PHYS_AUTO
	.comm	_IFACE_CLEAR_ALIASES,4,2        ; @IFACE_CLEAR_ALIASES
	.comm	_IFACE_CLEAR_ALL,4,2            ; @IFACE_CLEAR_ALL
	.no_dead_strip	_IfaceClearCommand
.subsections_via_symbols
