	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_remove                   ## -- Begin function netif_remove
	.p2align	4, 0x90
_netif_remove:                          ## @netif_remove
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	callq	_netif_is_up
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_netif_set_down
LBB0_3:
	movq	%rbx, %rdi
	callq	_snmp_delete_ipaddridx_tree
	movq	_netif_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_4
## %bb.6:
	addq	$8, %rax
LBB0_7:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	callq	_snmp_dec_iflist
	movq	_netif_default@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	callq	_netif_set_default
LBB0_9:
	movq	_NETIF_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LWIP_DEBUGF                    ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_netif_list,8,3                 ## @netif_list
	.comm	_netif_default,8,3              ## @netif_default
	.comm	_NETIF_DEBUG,4,2                ## @NETIF_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netif_remove: removed netif\n"

	.comm	_NETIF_FLAG_IGMP,4,2            ## @NETIF_FLAG_IGMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_remove                   ; -- Begin function netif_remove
	.p2align	2
_netif_remove:                          ; @netif_remove
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	bl	_netif_is_up
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_netif_set_down
LBB0_3:
	mov	x0, x19
	bl	_snmp_delete_ipaddridx_tree
Lloh0:
	adrp	x8, _netif_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _netif_list@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x9
	ldr	x9, [x9, #8]
	cmp	x9, x19
	b.ne	LBB0_4
; %bb.6:
	add	x8, x8, #8
LBB0_7:
	ldr	x9, [x19, #8]
	str	x9, [x8]
	bl	_snmp_dec_iflist
Lloh2:
	adrp	x8, _netif_default@GOTPAGE
Lloh3:
	ldr	x8, [x8, _netif_default@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.8:
	mov	x0, #0
	bl	_netif_set_default
LBB0_9:
Lloh5:
	adrp	x8, _NETIF_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETIF_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWIP_DEBUGF
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_netif_list,8,3                 ; @netif_list
	.comm	_netif_default,8,3              ; @netif_default
	.comm	_NETIF_DEBUG,4,2                ; @NETIF_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netif_remove: removed netif\n"

	.comm	_NETIF_FLAG_IGMP,4,2            ; @NETIF_FLAG_IGMP
.subsections_via_symbols
