	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_rep_encap_entry_attach   ## -- Begin function mlx5e_rep_encap_entry_attach
	.p2align	4, 0x90
_mlx5e_rep_encap_entry_attach:          ## @mlx5e_rep_encap_entry_attach
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r14
	leaq	4(%r14), %r15
	movl	16(%rsi), %esi
	movq	%r15, %rdi
	callq	_mlx5_tun_entropy_refcount_inc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	20(%r12), %rsi
	movq	%r13, %rdi
	callq	_mlx5e_rep_neigh_entry_lookup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_spin_lock
	movq	-48(%rbp), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_list_add_rcu
	movq	-48(%rbp), %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlx5e_rep_neigh_entry_create
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	16(%r12), %esi
	movq	%r15, %rdi
	callq	_mlx5_tun_entropy_refcount_dec
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_rep_encap_entry_attach   ; -- Begin function mlx5e_rep_encap_entry_attach
	.p2align	2
_mlx5e_rep_encap_entry_attach:          ; @mlx5e_rep_encap_entry_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	add	x21, x19, #4
	ldr	w1, [x1, #16]
	mov	x0, x21
	bl	_mlx5_tun_entropy_refcount_inc
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	add	x1, x20, #20
	mov	x0, x22
	bl	_mlx5e_rep_neigh_entry_lookup
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
LBB0_2:
	str	x0, [x20, #8]
	bl	_spin_lock
	ldr	x8, [sp, #8]
	add	x1, x8, #4
	mov	x0, x20
	bl	_list_add_rcu
	ldr	x0, [sp, #8]
	bl	_spin_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	w23, #0
	b	LBB0_5
LBB0_3:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_mlx5e_rep_neigh_entry_create
	cbz	w0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_mlx5_tun_entropy_refcount_dec
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x0, [sp, #8]
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
