	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mif6_delete
_mif6_delete:                           ## @mif6_delete
	.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
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpl	%esi, (%rdi)
	jle	LBB0_2
## %bb.3:
	movq	8(%r15), %r12
	movl	%ebx, %r13d
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	shlq	$4, %r13
	movq	8(%r12,%r13), %r14
	movq	$0, 8(%r12,%r13)
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	leal	1(%rbx), %eax
	cmpl	(%r15), %eax
	jne	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MIF_EXISTS
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	incl	%ebx
	jmp	LBB0_10
LBB0_4:
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
LBB0_2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, (%r15)
LBB0_11:
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dev_set_allmulti
	movq	%r14, %rdi
	callq	___in6_dev_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	decl	(%rax)
LBB0_13:
	movq	_MIFF_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r13)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_unregister_netdevice
LBB0_15:
	movq	%r14, %rdi
	callq	_dev_put
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_mrt_lock,4,2                   ## @mrt_lock
	.comm	_MIFF_REGISTER,4,2              ## @MIFF_REGISTER
	.no_dead_strip	_mif6_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mif6_delete
_mif6_delete:                           ; @mif6_delete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	tbnz	w1, #31, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_8
; %bb.2:
	ldr	x22, [x20, #8]
Lloh0:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	add	x8, x22, w21, uxtw #4
	ldr	x19, [x8, #8]
	str	xzr, [x8, #8]
	cbz	x19, LBB0_7
; %bb.3:
	mov	w23, w21
	add	w8, w21, #1
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_MIF_EXISTS
	cbz	x0, LBB0_4
; %bb.6:
	add	w8, w21, #1
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
LBB0_8:
Lloh4:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w8, #0
LBB0_11:
	str	w8, [x20]
LBB0_12:
Lloh7:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x19
	mov	w1, #-1
	bl	_dev_set_allmulti
	mov	x0, x19
	bl	___in6_dev_get
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x0]
	sub	w8, w8, #1
	str	w8, [x0]
LBB0_14:
	lsl	x8, x23, #4
	ldr	w8, [x22, x8]
Lloh9:
	adrp	x9, _MIFF_REGISTER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIFF_REGISTER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_unregister_netdevice
LBB0_16:
	mov	x0, x19
	bl	_dev_put
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_mrt_lock,4,2                   ; @mrt_lock
	.comm	_MIFF_REGISTER,4,2              ; @MIFF_REGISTER
	.no_dead_strip	_mif6_delete
.subsections_via_symbols
