	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_socket_create
_vxlan_socket_create:                   ## @vxlan_socket_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	movl	(%rdx), %eax
	movl	%eax, -40(%rbp)
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %rdi
	callq	_VXLAN_SOCKADDR_IS_IPV4
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
LBB0_3:
	leaq	-40(%rbp), %rdi
	callq	_vxlan_socket_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_vxlan_socket_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_vxlan_socket_bind
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_vxlan_socket_destroy
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_vxlan_socket_insert
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_in6addr_any,4,2                ## @in6addr_any
	.no_dead_strip	_vxlan_socket_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_socket_create
_vxlan_socket_create:                   ; @vxlan_socket_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x0
	ldr	w8, [x2]
	str	w8, [sp, #8]
	cbz	w1, LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_VXLAN_SOCKADDR_IS_IPV4
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_3:
	add	x0, sp, #8
	bl	_vxlan_socket_alloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	mov	x1, x20
	bl	_vxlan_socket_init
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_vxlan_socket_bind
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_vxlan_socket_destroy
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_vxlan_socket_insert
	str	x21, [x19]
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_in6addr_any,4,2                ; @in6addr_any
	.no_dead_strip	_vxlan_socket_create
.subsections_via_symbols
