	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_m6if
_add_m6if:                              ## @add_m6if
	.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, %r15
	xorl	%eax, %eax
	callq	_MIF6_LOCK
	movq	(%r15), %rax
	movq	_MAXMIFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_mif6table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	leaq	(%rax,%rax,2), %r13
	shlq	$4, %r13
	cmpq	$0, 40(%r12,%r13)
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	movq	_V_if_index@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_11
## %bb.8:
	callq	_ifnet_byindex
	movq	%rax, %r14
	movq	_MIFF_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_12
## %bb.9:
	movq	_reg_mif_num@GOTPCREL(%rip), %rbx
	cmpq	$-1, (%rbx)
	je	LBB0_15
## %bb.10:
	movq	_multicast_register_if6@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_19
## %bb.13:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_if_allmulti
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	jmp	LBB0_5
LBB0_15:
	movq	_IFT_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_if_alloc
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_if_initname
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_if_attach
	movq	_multicast_register_if6@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%r15)
LBB0_16:
	leaq	(%r12,%r13), %rax
	addq	$40, %rax
	movl	16(%r15), %ecx
	movl	%ecx, (%r12,%r13)
	movq	%r14, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12,%r13)
	movups	%xmm0, 8(%r12,%r13)
	movq	_nummifs@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, (%rax)
	jg	LBB0_18
## %bb.17:
	incq	%rcx
	movq	%rcx, (%rax)
LBB0_18:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	movq	_DEBUG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %r15
	movq	%r14, %rdi
	callq	_if_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_MRT6_DLOG
	jmp	LBB0_5
LBB0_19:
	xorl	%eax, %eax
	callq	_MIF6_UNLOCK
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXMIFS,8,3                    ## @MAXMIFS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mif6table,8,3                  ## @mif6table
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_V_if_index,8,3                 ## @V_if_index
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MIFF_REGISTER,4,2              ## @MIFF_REGISTER
	.comm	_reg_mif_num,8,3                ## @reg_mif_num
	.comm	_IFT_OTHER,4,2                  ## @IFT_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"register_mif"

	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_multicast_register_if6,8,3     ## @multicast_register_if6
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_nummifs,8,3                    ## @nummifs
	.comm	_DEBUG_ANY,4,2                  ## @DEBUG_ANY
L_.str.1:                               ## @.str.1
	.asciz	"mif #%d, phyint %s"

	.no_dead_strip	_add_m6if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_m6if
_add_m6if:                              ; @add_m6if
	.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
	bl	_MIF6_LOCK
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _MAXMIFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXMIFS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _mif6table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mif6table@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	mov	w8, #48
	madd	x24, x22, x8, x23
	ldr	x8, [x24, #40]!
	cbz	x8, LBB0_6
; %bb.2:
	bl	_MIF6_UNLOCK
Lloh6:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	bl	_MIF6_UNLOCK
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x21
	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_6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.7:
Lloh10:
	adrp	x8, _V_if_index@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V_if_index@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_11
; %bb.8:
	bl	_ifnet_byindex
	ldr	w8, [x19, #16]
Lloh13:
	adrp	x9, _MIFF_REGISTER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MIFF_REGISTER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
Lloh16:
	adrp	x21, _reg_mif_num@GOTPAGE
Lloh17:
	ldr	x21, [x21, _reg_mif_num@GOTPAGEOFF]
	ldr	x8, [x21]
	cmn	x8, #1
	b.eq	LBB0_15
; %bb.10:
Lloh18:
	adrp	x8, _multicast_register_if6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _multicast_register_if6@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
	b	LBB0_16
LBB0_11:
	bl	_MIF6_UNLOCK
Lloh21:
	adrp	x8, _ENXIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	mov	x20, x0
	ldr	w8, [x0]
Lloh23:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.13:
	mov	x0, x20
	mov	w1, #1
	bl	_if_allmulti
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
	bl	_MIF6_UNLOCK
	b	LBB0_5
LBB0_15:
Lloh26:
	adrp	x8, _IFT_OTHER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IFT_OTHER@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_if_alloc
	mov	x20, x0
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_if_initname
Lloh31:
	adrp	x8, _IFF_LOOPBACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_if_attach
Lloh34:
	adrp	x8, _multicast_register_if6@GOTPAGE
Lloh35:
	ldr	x8, [x8, _multicast_register_if6@GOTPAGEOFF]
Lloh36:
	str	x20, [x8]
	ldr	x8, [x19]
	str	x8, [x21]
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
LBB0_16:
	ldr	w8, [x19, #16]
	mov	w9, #48
	madd	x9, x22, x9, x23
	str	w8, [x9]
	str	x20, [x24]
	movi.2d	v0, #0000000000000000
	stur	q0, [x9, #8]
	stur	q0, [x9, #24]
Lloh37:
	adrp	x8, _nummifs@GOTPAGE
Lloh38:
	ldr	x8, [x8, _nummifs@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x9, [x19]
	cmp	x10, x9
	b.gt	LBB0_18
; %bb.17:
	add	x9, x9, #1
	str	x9, [x8]
LBB0_18:
	bl	_MIF6_UNLOCK
Lloh39:
	adrp	x8, _DEBUG_ANY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DEBUG_ANY@GOTPAGEOFF]
Lloh41:
	ldr	w21, [x8]
	ldr	x19, [x19]
	mov	x0, x20
	bl	_if_name
	mov	x3, x0
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_MRT6_DLOG
	mov	w21, #0
	b	LBB0_5
LBB0_19:
	bl	_MIF6_UNLOCK
Lloh44:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXMIFS,8,3                    ; @MAXMIFS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mif6table,8,3                  ; @mif6table
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_V_if_index,8,3                 ; @V_if_index
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MIFF_REGISTER,4,2              ; @MIFF_REGISTER
	.comm	_reg_mif_num,8,3                ; @reg_mif_num
	.comm	_IFT_OTHER,4,2                  ; @IFT_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"register_mif"

	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_multicast_register_if6,8,3     ; @multicast_register_if6
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_nummifs,8,3                    ; @nummifs
	.comm	_DEBUG_ANY,4,2                  ; @DEBUG_ANY
l_.str.1:                               ; @.str.1
	.asciz	"mif #%d, phyint %s"

	.no_dead_strip	_add_m6if
.subsections_via_symbols
