	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_clone_create
_vxlan_clone_create:                    ## @vxlan_clone_create
	.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	%rdx, %rbx
	movl	%esi, %r12d
	movq	_M_VXLAN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %r13
	movl	%r12d, (%rax)
	movq	%rax, %rdi
	callq	_vxlan_set_default_config
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_copyin
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_vxlan_set_user_config
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	movq	%r15, %rbx
	movq	_IFT_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_if_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %r15
	movq	%rax, 24(%r13)
	leaq	16(%r13), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rm_init
	leaq	20(%r13), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_callout_init_rw
	xorl	%eax, %eax
	callq	_arc4random
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	callq	_vxlan_ftable_init
	movq	%r13, %rdi
	callq	_vxlan_sysctl_setup
	movq	%r13, 48(%r15)
	movq	_vxlan_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_if_initname
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movq	_IFF_SIMPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_vxlan_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_vxlan_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_vxlan_transmit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_vxlan_qflush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_IFCAP_LINKSTATE@GOTPCREL(%rip), %rax
	movq	_IFCAP_JUMBO_MTU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%r15)
	orl	%ecx, 8(%r15)
	leaq	8(%r13), %rbx
	movq	_vxlan_media_change@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_vxlan_media_status@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ifmedia_init
	movq	_IFM_ETHER@GOTPCREL(%rip), %rax
	movq	_IFM_AUTO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ifmedia_add
	movl	(%r12), %esi
	movq	_IFM_ETHER@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ifmedia_set
	movq	%r13, %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_ether_gen_addr
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_ether_ifattach
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	jmp	LBB0_6
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %r15
LBB0_5:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VXLAN,4,2                    ## @M_VXLAN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_IFT_ETHER,4,2                  ## @IFT_ETHER
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vxlanrm"

	.comm	_vxlan_name,4,2                 ## @vxlan_name
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ## @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_vxlan_init,4,2                 ## @vxlan_init
	.comm	_vxlan_ioctl,4,2                ## @vxlan_ioctl
	.comm	_vxlan_transmit,4,2             ## @vxlan_transmit
	.comm	_vxlan_qflush,4,2               ## @vxlan_qflush
	.comm	_IFCAP_LINKSTATE,4,2            ## @IFCAP_LINKSTATE
	.comm	_IFCAP_JUMBO_MTU,4,2            ## @IFCAP_JUMBO_MTU
	.comm	_vxlan_media_change,4,2         ## @vxlan_media_change
	.comm	_vxlan_media_status,4,2         ## @vxlan_media_status
	.comm	_IFM_ETHER,4,2                  ## @IFM_ETHER
	.comm	_IFM_AUTO,4,2                   ## @IFM_AUTO
	.no_dead_strip	_vxlan_clone_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_clone_create
_vxlan_clone_create:                    ; @vxlan_clone_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x23, _M_VXLAN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_VXLAN@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	str	w21, [x0]
	bl	_vxlan_set_default_config
	cbz	x20, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_copyin
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_vxlan_set_user_config
	mov	x22, x0
	cbnz	w0, LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _IFT_ETHER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFT_ETHER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_if_alloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, x0
	str	x0, [x19, #24]
	add	x22, x19, #16
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_rm_init
	add	x0, x19, #20
	mov	x1, x22
	mov	w2, #0
	bl	_callout_init_rw
	bl	_arc4random
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_vxlan_ftable_init
	mov	x0, x19
	bl	_vxlan_sysctl_setup
	str	x19, [x20, #48]
Lloh13:
	adrp	x8, _vxlan_name@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vxlan_name@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_if_initname
Lloh16:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IFF_SIMPLEX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_SIMPLEX@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh25:
	adrp	x8, _vxlan_init@GOTPAGE
Lloh26:
	ldr	x8, [x8, _vxlan_init@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _vxlan_ioctl@GOTPAGE
Lloh29:
	ldr	x9, [x9, _vxlan_ioctl@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh31:
	adrp	x8, _vxlan_transmit@GOTPAGE
Lloh32:
	ldr	x8, [x8, _vxlan_transmit@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _vxlan_qflush@GOTPAGE
Lloh35:
	ldr	x9, [x9, _vxlan_qflush@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _IFCAP_LINKSTATE@GOTPAGE
Lloh38:
	ldr	x10, [x10, _IFCAP_LINKSTATE@GOTPAGEOFF]
	stp	w9, w8, [x20, #32]
Lloh39:
	ldr	w8, [x10]
Lloh40:
	adrp	x9, _IFCAP_JUMBO_MTU@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IFCAP_JUMBO_MTU@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldur	d0, [x20, #4]
	dup.2s	v1, w8
	orr.8b	v0, v0, v1
	stur	d0, [x20, #4]
	add	x21, x19, #8
Lloh43:
	adrp	x8, _vxlan_media_change@GOTPAGE
Lloh44:
	ldr	x8, [x8, _vxlan_media_change@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
Lloh46:
	adrp	x8, _vxlan_media_status@GOTPAGE
Lloh47:
	ldr	x8, [x8, _vxlan_media_status@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_ifmedia_init
Lloh49:
	adrp	x22, _IFM_ETHER@GOTPAGE
Lloh50:
	ldr	x22, [x22, _IFM_ETHER@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh51:
	adrp	x23, _IFM_AUTO@GOTPAGE
Lloh52:
	ldr	x23, [x23, _IFM_AUTO@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	bl	_ifmedia_add
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_ifmedia_set
	add	x1, x19, #4
	mov	x0, x20
	bl	_ether_gen_addr
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_ether_ifattach
	mov	w22, #0
	stp	xzr, xzr, [x20, #16]
	b	LBB0_7
LBB0_5:
Lloh53:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh55:
	ldr	w22, [x8]
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VXLAN,4,2                    ; @M_VXLAN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_IFT_ETHER,4,2                  ; @IFT_ETHER
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vxlanrm"

	.comm	_vxlan_name,4,2                 ; @vxlan_name
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ; @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_vxlan_init,4,2                 ; @vxlan_init
	.comm	_vxlan_ioctl,4,2                ; @vxlan_ioctl
	.comm	_vxlan_transmit,4,2             ; @vxlan_transmit
	.comm	_vxlan_qflush,4,2               ; @vxlan_qflush
	.comm	_IFCAP_LINKSTATE,4,2            ; @IFCAP_LINKSTATE
	.comm	_IFCAP_JUMBO_MTU,4,2            ; @IFCAP_JUMBO_MTU
	.comm	_vxlan_media_change,4,2         ; @vxlan_media_change
	.comm	_vxlan_media_status,4,2         ; @vxlan_media_status
	.comm	_IFM_ETHER,4,2                  ; @IFM_ETHER
	.comm	_IFM_AUTO,4,2                   ; @IFM_AUTO
	.no_dead_strip	_vxlan_clone_create
.subsections_via_symbols
