	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_setup_multicast
_vxlan_setup_multicast:                 ## @vxlan_setup_multicast
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpb	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vxlan_setup_multicast_interface
	testl	%eax, %eax
	jne	LBB0_8
LBB0_2:
	leaq	40(%rbx), %r14
	movq	%r14, %rdi
	callq	_VXLAN_SOCKADDR_IS_IPV4
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_M_VXLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, 32(%rbx)
	movl	24(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	$-1, %ecx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_VXLAN_SOCKADDR_IS_IPV6
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_M_VXLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, 16(%rbx)
	movl	24(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%rbx), %ecx
LBB0_6:
	movl	%ecx, (%rax)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VXLAN,4,2                    ## @M_VXLAN
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_vxlan_setup_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_setup_multicast
_vxlan_setup_multicast:                 ; @vxlan_setup_multicast
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #40
	ldrb	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vxlan_setup_multicast_interface
	mov	x8, x0
	cbnz	w0, LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_VXLAN_SOCKADDR_IS_IPV4
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _M_VXLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_VXLAN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #4
	bl	_malloc
	str	x0, [x19, #32]
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #8]
	stp	w9, w8, [x0, #4]
	mov	w9, #-1
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_VXLAN_SOCKADDR_IS_IPV6
	cbz	x0, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _M_VXLAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_VXLAN@GOTPAGEOFF]
Lloh11:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #4
	bl	_malloc
	str	x0, [x19, #16]
	ldr	w8, [x19, #24]
	str	w8, [x0, #4]
	ldr	w9, [x19, #8]
LBB0_6:
	mov	w8, #0
	str	w9, [x0]
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VXLAN,4,2                    ; @M_VXLAN
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_vxlan_setup_multicast
.subsections_via_symbols
