	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function del_m6if_locked
_del_m6if_locked:                       ## @del_m6if_locked
	.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
	movq	%rdi, %r14
	movq	_mif6table@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movslq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_MIF6_LOCK_ASSERT
	movl	(%r14), %eax
	movq	_nummifs@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jge	LBB0_1
## %bb.2:
	shlq	$4, %rbx
	movq	8(%r13,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	addq	%rbx, %r13
	movq	_MIFF_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.5:
	movq	_reg_mif_num@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_multicast_register_if6@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_if_detach
	movq	(%rbx), %rdi
	callq	_if_free
	movq	_reg_mif_num@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	$0, (%rbx)
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	xorl	%esi, %esi
	callq	_if_allmulti
LBB0_8:
	movl	%r13d, %edi
	movl	$16, %esi
	callq	_bzero
	movl	(%r15), %eax
	movq	(%r12), %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movq	%rax, %rsi
	shlq	$4, %rsi
	addq	%rsi, %rdx
	addq	$-8, %rdx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%eax
	cmpq	$0, (%rdx)
	leaq	-16(%rdx), %rdx
	je	LBB0_9
## %bb.11:
	incl	%eax
	movl	%eax, %ecx
LBB0_12:
	movl	%ecx, (%r15)
	movq	_DEBUG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_MRT6_DLOG
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mif6table,8,3                  ## @mif6table
	.comm	_nummifs,4,2                    ## @nummifs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIFF_REGISTER,4,2              ## @MIFF_REGISTER
	.comm	_reg_mif_num,4,2                ## @reg_mif_num
	.comm	_multicast_register_if6,8,3     ## @multicast_register_if6
	.comm	_DEBUG_ANY,4,2                  ## @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mif %d, nummifs %d"

	.no_dead_strip	_del_m6if_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function del_m6if_locked
_del_m6if_locked:                       ; @del_m6if_locked
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _mif6table@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mif6table@GOTPAGEOFF]
	ldr	x20, [x22]
	ldrsw	x23, [x0]
	bl	_MIF6_LOCK_ASSERT
	ldr	w8, [x19]
Lloh2:
	adrp	x21, _nummifs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _nummifs@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	add	x20, x20, x23, lsl #4
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _MIFF_REGISTER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MIFF_REGISTER@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh7:
	adrp	x23, _reg_mif_num@GOTPAGE
Lloh8:
	ldr	x23, [x23, _reg_mif_num@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh9:
	adrp	x24, _multicast_register_if6@GOTPAGE
Lloh10:
	ldr	x24, [x24, _multicast_register_if6@GOTPAGEOFF]
	ldr	x0, [x24]
	cmn	w8, #1
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_7
; %bb.4:
	bl	_if_detach
	ldr	x0, [x24]
	bl	_if_free
	mov	w8, #-1
	str	w8, [x23]
	str	xzr, [x24]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_6:
	mov	w1, #0
	bl	_if_allmulti
LBB0_7:
	mov	x0, x20
	mov	w1, #16
	bl	_bzero
	ldr	w8, [x21]
	ldr	x9, [x22]
	cmp	w8, #0
	csel	w3, w8, wzr, lt
	add	x9, x9, x8, lsl #4
	sub	x9, x9, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	subs	w8, w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9], #-16
	cbz	x10, LBB0_8
; %bb.10:
	add	w3, w8, #1
LBB0_11:
	str	w3, [x21]
Lloh14:
	adrp	x8, _DEBUG_ANY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEBUG_ANY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_MRT6_DLOG
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mif6table,8,3                  ; @mif6table
	.comm	_nummifs,4,2                    ; @nummifs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIFF_REGISTER,4,2              ; @MIFF_REGISTER
	.comm	_reg_mif_num,4,2                ; @reg_mif_num
	.comm	_multicast_register_if6,8,3     ; @multicast_register_if6
	.comm	_DEBUG_ANY,4,2                  ; @DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mif %d, nummifs %d"

	.no_dead_strip	_del_m6if_locked
.subsections_via_symbols
