	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_change_mtu
_vxlan_change_mtu:                      ## @vxlan_change_mtu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movl	8(%rax), %esi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_VXLAN_F_IPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	testl	%ecx, (%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_VXLAN_HEADROOM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_VXLAN6_HEADROOM@GOTPCREL(%rip), %rcx
LBB0_4:
	subl	(%rcx), %eax
	cmpl	%r14d, %eax
	jge	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, (%r15)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXLAN_F_IPV6,4,2               ## @VXLAN_F_IPV6
	.comm	_VXLAN6_HEADROOM,4,2            ## @VXLAN6_HEADROOM
	.comm	_VXLAN_HEADROOM,4,2             ## @VXLAN_HEADROOM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vxlan_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_change_mtu
_vxlan_change_mtu:                      ; @vxlan_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x21, #8]
	bl	___dev_get_by_index
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _VXLAN_F_IPV6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VXLAN_F_IPV6@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _VXLAN6_HEADROOM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VXLAN6_HEADROOM@GOTPAGEOFF]
Lloh5:
	adrp	x11, _VXLAN_HEADROOM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VXLAN_HEADROOM@GOTPAGEOFF]
	ldr	w12, [x0]
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	sub	w8, w12, w8
	cmp	w8, w19
	b.ge	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	str	w19, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VXLAN_F_IPV6,4,2               ; @VXLAN_F_IPV6
	.comm	_VXLAN6_HEADROOM,4,2            ; @VXLAN6_HEADROOM
	.comm	_VXLAN_HEADROOM,4,2             ; @VXLAN_HEADROOM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vxlan_change_mtu
.subsections_via_symbols
