	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geneve_configure
_geneve_configure:                      ## @geneve_configure
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_geneve_net_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_net_generic
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_is_tnl_info_zero
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r14, 32(%r12)
	movq	%rbx, 24(%r12)
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_geneve_find_dev
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	_GENEVE_BASE_HLEN@GOTPCREL(%rip), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	addl	(%rax), %r14d
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.9:
	addl	$-4, (%rbx)
	movl	(%rcx), %eax
	addl	%r14d, %eax
	addl	$4, %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, -56(%rbp)
	je	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	callq	_ip_tunnel_info_af
	addl	$-4, (%rbx)
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	addl	$4, %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, -60(%rbp)
	je	LBB0_12
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	16(%rbp), %r14d
	leaq	20(%r12), %rdi
	callq	_dst_cache_reset
	movl	(%r15), %eax
	movl	%eax, 20(%r12)
	movl	%r13d, (%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movl	%r14d, 8(%r12)
	movl	24(%rbp), %eax
	movl	%eax, 12(%r12)
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	addq	$16, %r12
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_geneve_net_id,4,2              ## @geneve_net_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device is externally controlled, so attributes (VNI, Port, and so on) must not be specified"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GENEVE_BASE_HLEN,4,2           ## @GENEVE_BASE_HLEN
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"There can be only one externally controlled device on a destination port"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"There already exists an externally controlled device on this destination port"

	.no_dead_strip	_geneve_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geneve_configure
_geneve_configure:                      ; @geneve_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x26, x3
	mov	x25, x2
	mov	x22, x1
	mov	x28, x0
Lloh0:
	adrp	x8, _geneve_net_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _geneve_net_id@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_net_generic
	mov	x20, x0
	mov	x0, x22
	bl	_netdev_priv
	mov	x27, x0
	cbz	w24, LBB0_2
; %bb.1:
	mov	x0, x26
	bl	_is_tnl_info_zero
	cbz	w0, LBB0_7
LBB0_2:
	stp	x22, x28, [x27, #24]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x26
	bl	_geneve_find_dev
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
Lloh5:
	adrp	x8, _GENEVE_BASE_HLEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GENEVE_BASE_HLEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x28, _ETH_HLEN@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ETH_HLEN@GOTPAGEOFF]
	ldr	w9, [x28]
	add	w19, w9, w8
	cbz	w24, LBB0_8
; %bb.5:
	ldr	w8, [x22]
	sub	w8, w8, #4
	str	w8, [x22]
	ldr	w8, [x28]
	add	w8, w19, w8
	add	w8, w8, #4
	str	w8, [x22, #4]
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_NL_SET_ERR_MSG
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	x0, x26
	bl	_ip_tunnel_info_af
	ldr	w8, [x22]
	sub	w8, w8, #4
	str	w8, [x22]
	ldr	w8, [x28]
	add	w8, w19, w8
	add	w8, w8, #4
	str	w8, [x22, #4]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x25
	bl	_NL_SET_ERR_MSG
Lloh18:
	adrp	x8, _EPERM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	add	x0, x27, #20
	bl	_dst_cache_reset
	ldr	w8, [x26]
	str	w8, [x27, #20]
	stp	w24, w23, [x27]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	stp	w21, w8, [x27, #8]
	mov	x0, x22
	bl	_register_netdevice
	cbnz	w0, LBB0_12
; %bb.14:
	add	x0, x27, #16
	mov	x1, x20
	bl	_list_add
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_geneve_net_id,4,2              ; @geneve_net_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device is externally controlled, so attributes (VNI, Port, and so on) must not be specified"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GENEVE_BASE_HLEN,4,2           ; @GENEVE_BASE_HLEN
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"There can be only one externally controlled device on a destination port"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"There already exists an externally controlled device on this destination port"

	.no_dead_strip	_geneve_configure
.subsections_via_symbols
