	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_addmulti                    ## -- Begin function if_addmulti
	.p2align	4, 0x90
_if_addmulti:                           ## @if_addmulti
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_IF_ADDR_WLOCK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_if_findmulti
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	incl	16(%rax)
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%rax, (%r14)
LBB0_3:
	movq	%r12, %rdi
	callq	_IF_ADDR_WUNLOCK
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_4:
	movq	$0, -56(%rbp)
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movl	$4, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	*%rcx
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	-56(%rbp), %rdx
	jmp	LBB0_8
LBB0_5:
	xorl	%edx, %edx
LBB0_8:
	movq	_M_NOWAIT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_if_allocmulti
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r15
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.10:
	movq	%r12, %rdi
	callq	_if_findmulti
	testq	%rax, %rax
	je	LBB0_11
## %bb.18:
	movq	%rax, %rbx
	incl	16(%rax)
	jmp	LBB0_19
LBB0_11:
	movq	-56(%rbp), %rsi
	movl	(%r13), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_if_allocmulti
	testq	%rax, %rax
	je	LBB0_12
## %bb.17:
	movq	%rax, %rbx
	movq	_IFMA_F_ENQUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	leaq	24(%r12), %rdi
	movq	_ifma_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_CK_STAILQ_INSERT_HEAD
LBB0_19:
	movq	%rbx, 8(%r15)
LBB0_20:
	movq	_IFMA_F_ENQUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	leaq	24(%r12), %rdi
	movq	_ifma_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_CK_STAILQ_INSERT_HEAD
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	%r15, (%r14)
LBB0_22:
	movq	_RTM_NEWMADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_rt_newmaddrmsg
	movq	%r12, %rdi
	callq	_IF_ADDR_WUNLOCK
	cmpq	$0, 16(%r12)
	je	LBB0_26
## %bb.23:
	xorl	%eax, %eax
	callq	_THREAD_CAN_SLEEP
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_SIOCADDMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*16(%r12)
	jmp	LBB0_26
LBB0_25:
	movq	_taskqueue_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r12
	movq	%r12, %rsi
	callq	_taskqueue_enqueue
LBB0_26:
	movq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.27:
	leaq	-48(%rbp), %rax
	cmpq	%rax, %rdi
	je	LBB0_29
## %bb.28:
	callq	_link_free_sdl
	jmp	LBB0_29
LBB0_12:
	decl	16(%r15)
	movq	%r15, %rdi
	callq	_if_freemulti
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	leaq	-48(%rbp), %rax
	cmpq	%rax, %rdi
	je	LBB0_16
## %bb.15:
	callq	_link_free_sdl
LBB0_16:
	movq	%r12, %rdi
	callq	_IF_ADDR_WUNLOCK
LBB0_29:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IFMA_F_ENQUEUED,4,2            ## @IFMA_F_ENQUEUED
	.comm	_ifma_link,4,2                  ## @ifma_link
	.comm	_RTM_NEWMADDR,4,2               ## @RTM_NEWMADDR
	.comm	_SIOCADDMULTI,4,2               ## @SIOCADDMULTI
	.comm	_taskqueue_swi,4,2              ## @taskqueue_swi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_addmulti                    ; -- Begin function if_addmulti
	.p2align	2
_if_addmulti:                           ; @if_addmulti
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_IF_ADDR_WLOCK
	mov	x0, x19
	mov	x1, x22
	bl	_if_findmulti
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x0, #16]
	add	w8, w8, #1
	str	w8, [x0, #16]
	cbz	x20, LBB0_3
; %bb.2:
	str	x0, [x20]
LBB0_3:
	mov	x0, x19
	bl	_IF_ADDR_WUNLOCK
LBB0_4:
	mov	w21, #0
	b	LBB0_30
LBB0_5:
	str	xzr, [sp, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	mov	w9, #4
	str	w9, [sp]
	mov	x9, sp
	str	x9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_29
; %bb.7:
	ldr	x2, [sp, #8]
	b	LBB0_9
LBB0_8:
	mov	x2, #0
LBB0_9:
Lloh0:
	adrp	x25, _M_NOWAIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _M_NOWAIT@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_if_allocmulti
	cbz	x0, LBB0_26
; %bb.10:
	mov	x21, x0
	ldr	x1, [sp, #8]
Lloh2:
	adrp	x24, _IFMA_F_ENQUEUED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IFMA_F_ENQUEUED@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ifma_link@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ifma_link@GOTPAGEOFF]
	cbz	x1, LBB0_16
; %bb.11:
	mov	x0, x19
	bl	_if_findmulti
	cbz	x0, LBB0_13
; %bb.12:
	mov	x22, x0
	ldr	w8, [x0, #16]
	add	w8, w8, #1
	str	w8, [x0, #16]
	b	LBB0_15
LBB0_13:
	ldr	x1, [sp, #8]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, #0
	bl	_if_allocmulti
	cbz	x0, LBB0_25
; %bb.14:
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	add	x0, x19, #24
	ldr	w2, [x23]
	mov	x1, x22
	bl	_CK_STAILQ_INSERT_HEAD
LBB0_15:
	str	x22, [x21, #8]
LBB0_16:
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	add	x0, x19, #24
	ldr	w2, [x23]
	mov	x1, x21
	bl	_CK_STAILQ_INSERT_HEAD
	cbz	x20, LBB0_18
; %bb.17:
	str	x21, [x20]
LBB0_18:
Lloh6:
	adrp	x8, _RTM_NEWMADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTM_NEWMADDR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_rt_newmaddrmsg
	mov	x0, x19
	bl	_IF_ADDR_WUNLOCK
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_22
; %bb.19:
	bl	_THREAD_CAN_SLEEP
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _SIOCADDMULTI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIOCADDMULTI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	b	LBB0_22
LBB0_21:
Lloh12:
	adrp	x8, _taskqueue_swi@GOTPAGE
Lloh13:
	ldr	x8, [x8, _taskqueue_swi@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_taskqueue_enqueue
LBB0_22:
	mov	w21, #0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_30
; %bb.23:
	mov	x8, sp
	cmp	x0, x8
	b.eq	LBB0_30
; %bb.24:
	bl	_link_free_sdl
	b	LBB0_4
LBB0_25:
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	str	w8, [x21, #16]
	mov	x0, x21
	bl	_if_freemulti
LBB0_26:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_29
; %bb.27:
	mov	x8, sp
	cmp	x0, x8
	b.eq	LBB0_29
; %bb.28:
	bl	_link_free_sdl
LBB0_29:
	mov	x0, x19
	bl	_IF_ADDR_WUNLOCK
LBB0_30:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IFMA_F_ENQUEUED,4,2            ; @IFMA_F_ENQUEUED
	.comm	_ifma_link,4,2                  ; @ifma_link
	.comm	_RTM_NEWMADDR,4,2               ; @RTM_NEWMADDR
	.comm	_SIOCADDMULTI,4,2               ; @SIOCADDMULTI
	.comm	_taskqueue_swi,4,2              ; @taskqueue_swi
.subsections_via_symbols
