	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_nve_vxlan_config_prepare
_mlxsw_sp_nve_vxlan_config_prepare:     ## @mlxsw_sp_nve_vxlan_config_prepare
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MLXSW_REG_TNGCR_TYPE_VXLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	movl	$1, %edx
	callq	_mlxsw_reg_tngcr_pack
	leaq	-20(%rbp), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movslq	-20(%rbp), %rax
	imulq	$-1818589755, %rax, %rcx        ## imm = 0x939A85C5
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$6, %ecx
	addl	%edx, %ecx
	imull	$111, %ecx, %ecx
	negl	%ecx
	leal	(%rax,%rcx), %esi
	addl	$128, %esi
	movl	%esi, -20(%rbp)
	movq	%rbx, %rdi
	callq	_mlxsw_reg_tngcr_nve_udp_sport_prefix_set
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mlxsw_reg_tngcr_usipv4_set
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_TNGCR_TYPE_VXLAN,4,2 ## @MLXSW_REG_TNGCR_TYPE_VXLAN
	.no_dead_strip	_mlxsw_sp_nve_vxlan_config_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_nve_vxlan_config_prepare
_mlxsw_sp_nve_vxlan_config_prepare:     ; @mlxsw_sp_nve_vxlan_config_prepare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MLXSW_REG_TNGCR_TYPE_VXLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_REG_TNGCR_TYPE_VXLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
	mov	w2, #1
	bl	_mlxsw_reg_tngcr_pack
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_random_bytes
	ldrsw	x8, [sp, #12]
	mov	x9, #-31291
	movk	x9, #37786, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #6
	add	w9, w10, w9, lsr #31
	mov	w10, #111
	msub	w8, w9, w10, w8
	add	w1, w8, #128
	str	w1, [sp, #12]
	mov	x0, x20
	bl	_mlxsw_reg_tngcr_nve_udp_sport_prefix_set
	ldr	w0, [x19]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_mlxsw_reg_tngcr_usipv4_set
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_TNGCR_TYPE_VXLAN,4,2 ; @MLXSW_REG_TNGCR_TYPE_VXLAN
	.no_dead_strip	_mlxsw_sp_nve_vxlan_config_prepare
.subsections_via_symbols
