	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_rpc_gss_update_seq
_svc_rpc_gss_update_seq:                ## @svc_rpc_gss_update_seq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_sx_xlock
	movq	(%r14), %rax
	movq	%rax, %rcx
	subq	%r15, %rcx
	jge	LBB0_25
## %bb.1:
	movl	%r15d, %r9d
	subl	%eax, %r9d
	cmpl	$33, %r9d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_26
## %bb.2:
	movl	$4294967294, %r13d              ## imm = 0xFFFFFFFE
	movq	8(%r14), %rsi
	movq	_SVC_RPC_GSS_SEQWINDOW@GOTPCREL(%rip), %r10
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%rsi)
	leal	-32(%r9), %eax
	cmpl	$64, %r9d
	movl	%eax, %r9d
	jle	LBB0_27
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	(%r10), %eax
	cmpl	$64, %eax
	jl	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	shrq	$5, %rax
	movq	%rax, %r11
	subq	$2, %r11
	cmovbq	%rbx, %r11
	incq	%r11
	cmpq	$8, %r11
	jb	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	subq	$2, %rdi
	movl	$0, %ebx
	cmovaeq	%rdi, %rbx
	leal	-1(%rax), %r8d
	cmpl	%ebx, %r8d
	jb	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-2(%rax), %ecx
	cmpl	%ebx, %ecx
	jb	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$4294967294, %edx               ## imm = 0xFFFFFFFE
	leaq	(%rsi,%r8,4), %r13
	shlq	$2, %rbx
	movq	%r13, %rdi
	subq	%rbx, %rdi
	cmpq	%r13, %rdi
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rsi,%rcx,4), %r13
	movq	%r13, %rdi
	subq	%rbx, %rdi
	cmpq	%r13, %rdi
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rsi,%rcx,4), %rdi
	leaq	(%rsi,%r8,4), %rbx
	subq	%rbx, %rdi
	cmpq	$32, %rdi
	jae	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$4294967294, %r13d              ## imm = 0xFFFFFFFE
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r13), %rdx
	decq	%rax
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %ecx
	movl	(%rsi,%rcx,4), %ecx
	movl	%eax, %edi
	movl	%ecx, (%rsi,%rdi,4)
	decq	%rdx
	leaq	-1(%rax), %rcx
	incq	%rax
	cmpq	$2, %rax
	movq	%rcx, %rax
	ja	LBB0_14
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r11, %r12
	andq	$-8, %r12
	leaq	-8(%r12), %rdi
	movq	%rdi, %r13
	shrq	$3, %r13
	incq	%r13
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	andq	$-2, %rdi
	leaq	(%rdx,%rax), %r8
	addq	$-8, %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	9(%r8), %r14d
	leal	8(%r8), %r15d
	movups	-28(%rsi,%r15,4), %xmm0
	movups	-12(%rsi,%r15,4), %xmm1
	movups	%xmm1, -12(%rsi,%r14,4)
	movups	%xmm0, -28(%rsi,%r14,4)
	movl	%r8d, %ecx
	leal	1(%r8), %edx
	movups	-28(%rsi,%rcx,4), %xmm0
	movups	-12(%rsi,%rcx,4), %xmm1
	movups	%xmm1, -12(%rsi,%rdx,4)
	movups	%xmm0, -28(%rsi,%rdx,4)
	addq	$16, %rbx
	addq	$-16, %r8
	addq	$-2, %rdi
	jne	LBB0_17
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r13b
	movl	$4294967294, %r13d              ## imm = 0xFFFFFFFE
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	subl	%ebx, %ecx
	leal	(%rcx,%r13), %edx
	addl	%r13d, %ecx
	incl	%ecx
	movups	-28(%rsi,%rdx,4), %xmm0
	movups	-12(%rsi,%rdx,4), %xmm1
	movups	%xmm1, -12(%rsi,%rcx,4)
	movups	%xmm0, -28(%rsi,%rcx,4)
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r12, %r11
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$0, %ebx
	je	LBB0_3
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	subq	%r12, %rax
	jmp	LBB0_13
LBB0_25:
	leal	31(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$5, %eax
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	movq	8(%r14), %rcx
	cltq
	orl	%edx, (%rcx,%rax,4)
	jmp	LBB0_31
LBB0_26:
	movl	%r9d, %eax
LBB0_27:
	movq	_SVC_RPC_GSS_SEQWINDOW@GOTPCREL(%rip), %r8
	cmpl	$32, (%r8)
	movq	8(%r14), %r10
	jl	LBB0_30
## %bb.28:
	movl	$32, %r9d
	subl	%eax, %r9d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rbx,4), %edx
	movl	%edx, %edi
	movl	%r9d, %ecx
	sarl	%cl, %edi
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%esi, %edx
	movl	%edx, (%r10,%rbx,4)
	incq	%rbx
	movl	(%r8), %ecx
	leal	31(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$5, %edx
	movslq	%edx, %rcx
	movl	%edi, %esi
	cmpq	%rcx, %rbx
	jl	LBB0_29
LBB0_30:
	orb	$1, (%r10)
	movq	%r15, (%r14)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_31:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sx_xunlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SVC_RPC_GSS_SEQWINDOW,4,2      ## @SVC_RPC_GSS_SEQWINDOW
	.no_dead_strip	_svc_rpc_gss_update_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_rpc_gss_update_seq
_svc_rpc_gss_update_seq:                ; @svc_rpc_gss_update_seq
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_sx_xlock
	ldr	x8, [x20]
	cmp	x8, x21
	b.ge	LBB0_12
; %bb.1:
	sub	w9, w21, w8
Lloh0:
	adrp	x8, _SVC_RPC_GSS_SEQWINDOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVC_RPC_GSS_SEQWINDOW@GOTPAGEOFF]
	cmp	w9, #32
	b.le	LBB0_13
; %bb.2:
	ldr	x10, [x20, #8]
	mov	w11, #-1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x10]
	sub	w12, w9, #32
	cmp	w9, #64
	mov	x9, x12
	b.le	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w12, [x8]
	cmp	w12, #64
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	x13, x12, #5
	subs	x12, x13, #2
	csel	x12, xzr, x12, lo
	add	x12, x12, #1
	cmp	x12, #16
	b.lo	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	x14, x13, #2
	csel	x16, xzr, x14, lo
	sub	w17, w13, #1
	sub	w0, w13, #2
	add	x14, x10, w17, uxtw #2
	lsl	x1, x16, #2
	sub	x2, x14, x1
	add	x15, x10, w0, uxtw #2
	sub	x1, x15, x1
	cmp	w17, w16
	ccmp	w0, w16, #0, hs
	ccmp	x2, x14, #2, hs
	ccmp	x1, x15, #2, ls
	b.hi	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x15, x14
	cmp	x14, #64
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x14, x12, #0xfffffffffffffff0
	sub	x15, x13, x14
	add	x13, x13, x11
	mov	x16, x14
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w17, w13, #1
	add	x17, x10, w17, uxtw #2
	ldur	q0, [x17, #-12]
	ldur	q1, [x17, #-28]
	ldur	q2, [x17, #-44]
	ldur	q3, [x17, #-60]
	add	x17, x10, w13, uxtw #2
	stur	q0, [x17, #-12]
	stur	q1, [x17, #-28]
	stur	q2, [x17, #-44]
	stur	q3, [x17, #-60]
	sub	x13, x13, #16
	sub	x16, x16, #16
	cbnz	x16, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, x15
	cmp	x12, x14
	b.eq	LBB0_3
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w12, w13, #2
	sub	x14, x13, #1
	ldr	w12, [x10, w12, uxtw #2]
	str	w12, [x10, w14, uxtw #2]
	cmp	x13, #2
	mov	x13, x14
	b.hi	LBB0_11
	b	LBB0_3
LBB0_12:
	sub	w8, w8, w21
	add	w9, w8, #31
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #5
	mov	w10, #1
	lsl	w8, w10, w8
	ldr	x10, [x20, #8]
	sbfiz	x9, x9, #2, #32
	ldr	w11, [x10, x9]
	orr	w8, w11, w8
	str	w8, [x10, x9]
	b	LBB0_18
LBB0_13:
	mov	x12, x9
LBB0_14:
	ldr	w10, [x8]
	ldr	x9, [x20, #8]
	cmp	w10, #32
	b.lt	LBB0_17
; %bb.15:
	mov	x10, #0
	mov	w13, #0
	mov	w11, #32
	sub	w11, w11, w12
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsl	x14, x10, #2
	ldr	w15, [x9, x14]
	lsl	w16, w15, w12
	orr	w13, w16, w13
	asr	w15, w15, w11
	str	w13, [x9, x14]
	add	x10, x10, #1
	ldr	w13, [x8]
	add	w14, w13, #31
	cmp	w13, #0
	csel	w13, w14, w13, lt
	asr	w13, w13, #5
	cmp	x10, w13, sxtw
	mov	x13, x15
	b.lt	LBB0_16
LBB0_17:
	ldr	w8, [x9]
	orr	w8, w8, #0x1
	str	w8, [x9]
	str	x21, [x20]
LBB0_18:
	mov	x0, x19
	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
	b	_sx_xunlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SVC_RPC_GSS_SEQWINDOW,4,2      ; @SVC_RPC_GSS_SEQWINDOW
	.no_dead_strip	_svc_rpc_gss_update_seq
.subsections_via_symbols
