	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_ipsec_update_esn_state
_mlx5e_ipsec_update_esn_state:          ## @mlx5e_ipsec_update_esn_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	_XFRM_STATE_ESN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %rbx
	subq	8(%rax), %rbx
	incq	%rbx
	movl	4(%r14), %r12d
	movq	%rbx, %rdi
	callq	_htonl
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_xfrm_replay_seqhi
	movq	%rax, 8(%r14)
	movl	$1, (%r14)
	testl	%r12d, %r12d
	setne	%al
	movq	_MLX5E_IPSEC_ESN_SCOPE_MID@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incq	8(%r14)
	movl	$0, 4(%r14)
	jmp	LBB0_7
LBB0_1:
	movl	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	testl	%r12d, %r12d
	sete	%al
	cmpq	(%r15), %rbx
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$1, 4(%r14)
LBB0_7:
	movl	$1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_STATE_ESN,4,2             ## @XFRM_STATE_ESN
	.comm	_MLX5E_IPSEC_ESN_SCOPE_MID,8,3  ## @MLX5E_IPSEC_ESN_SCOPE_MID
	.no_dead_strip	_mlx5e_ipsec_update_esn_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_ipsec_update_esn_state
_mlx5e_ipsec_update_esn_state:          ; @mlx5e_ipsec_update_esn_state
	.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, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _XFRM_STATE_ESN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_STATE_ESN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldp	x9, x8, [x8]
	sub	x8, x9, x8
	add	x20, x8, #1
	ldr	w22, [x19, #4]
	mov	x0, x20
	bl	_htonl
	mov	x1, x0
	mov	x0, x21
	bl	_xfrm_replay_seqhi
	str	x0, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	cmp	w22, #0
Lloh3:
	adrp	x21, _MLX5E_IPSEC_ESN_SCOPE_MID@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MLX5E_IPSEC_ESN_SCOPE_MID@GOTPAGEOFF]
	ldr	x8, [x21]
	ccmp	x20, x8, #0, ne
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	str	wzr, [x19, #4]
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_6
LBB0_4:
	cmp	w22, #0
	ldr	x8, [x21]
	ccmp	x20, x8, #8, eq
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	str	w0, [x19, #4]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_STATE_ESN,4,2             ; @XFRM_STATE_ESN
	.comm	_MLX5E_IPSEC_ESN_SCOPE_MID,8,3  ; @MLX5E_IPSEC_ESN_SCOPE_MID
	.no_dead_strip	_mlx5e_ipsec_update_esn_state
.subsections_via_symbols
