	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_replay_advance            ## -- Begin function xfrm_replay_advance
	.p2align	4, 0x90
_xfrm_replay_advance:                   ## @xfrm_replay_advance
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_ntohl
	movq	(%rbx), %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	jle	LBB0_4
## %bb.1:
	movl	$1, %edx
	cmpq	16(%rbx), %rcx
	jge	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	orq	$1, %rdx
LBB0_3:
	movq	%rdx, 8(%rbx)
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	subl	%eax, %edx
	movl	$1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	orq	%rax, 8(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_xs_net
	movl	%eax, %edi
	callq	_xfrm_aevent_is_on
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_XFRM_REPLAY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_xfrm_replay_notify             ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_REPLAY_UPDATE,4,2         ## @XFRM_REPLAY_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_replay_advance            ; -- Begin function xfrm_replay_advance
	.p2align	2
_xfrm_replay_advance:                   ; @xfrm_replay_advance
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_ntohl
	ldr	x9, [x19]
	subs	x8, x0, x9
	b.le	LBB0_3
; %bb.1:
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	ldr	x9, [x19, #8]
	lsl	x8, x9, x8
	orr	x8, x8, #0x1
	b	LBB0_5
LBB0_3:
	sub	w8, w9, w0
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19, #8]
	orr	x8, x9, x8
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_4:
	mov	w8, #1
LBB0_5:
	stp	x0, x8, [x19]
LBB0_6:
	mov	x0, x19
	bl	_xs_net
	bl	_xfrm_aevent_is_on
	cbz	x0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _XFRM_REPLAY_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRM_REPLAY_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xfrm_replay_notify
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_REPLAY_UPDATE,4,2         ; @XFRM_REPLAY_UPDATE
.subsections_via_symbols
