	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxlan_sock_add                 ## -- Begin function vxlan_sock_add
	.p2align	4, 0x90
_vxlan_sock_add:                        ## @vxlan_sock_add
	.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
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_vxlan_net_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_net_generic
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_vxlan_socket_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.1:
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_vxlan_find_sock
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	cmpq	%r15, 8(%rax)
	je	LBB0_6
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_unlock
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vxlan_net_id,4,2               ## @vxlan_net_id
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxlan_sock_add                 ; -- Begin function vxlan_sock_add
	.p2align	2
_vxlan_sock_add:                        ; @vxlan_sock_add
	.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	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _vxlan_net_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vxlan_net_id@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_net_generic
	mov	x19, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_vxlan_socket_create
	mov	x21, x0
	bl	_IS_ERR
	cbnz	w24, LBB0_8
; %bb.1:
	cbz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x23
	mov	x1, x22
	bl	_vxlan_find_sock
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0, #8]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x21, x0
	mov	x0, x19
	bl	_spin_unlock
	cbnz	x21, LBB0_8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_7:
	mov	x0, x21
	bl	_atomic_inc
	mov	x0, x19
	bl	_spin_unlock
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vxlan_net_id,4,2               ; @vxlan_net_id
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
