	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gssapi_msg_order_check        ## -- Begin function _gssapi_msg_order_check
	.p2align	4, 0x90
__gssapi_msg_order_check:               ## @_gssapi_msg_order_check
	.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	_GSS_S_COMPLETE@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	_GSS_C_REPLAY_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GSS_C_SEQUENCE_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	orl	%r12d, %r13d
	andl	(%rdi), %r13d
	je	LBB0_13
## %bb.2:
	movl	%esi, %r14d
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	leal	-1(%r14), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_elem_insert
	jmp	LBB0_13
LBB0_4:
	cmpl	%r14d, %eax
	jl	LBB0_10
## %bb.5:
	cmpl	%r14d, 16(%rbx)
	jg	LBB0_10
## %bb.6:
	cmpl	$0, 20(%rbx)
	je	LBB0_10
## %bb.7:
	setg	%al
	movzbl	%al, %edi
	callq	_assert
	movq	8(%rbx), %rax
	movslq	20(%rbx), %rdx
	cmpl	%r14d, -4(%rax,%rdx,4)
	jle	LBB0_14
## %bb.8:
	cmpl	%r12d, %r13d
	jne	LBB0_22
## %bb.9:
	movq	_GSS_S_OLD_TOKEN@GOTPCREL(%rip), %r15
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_elem_insert
	cmpl	%r12d, %r13d
	jne	LBB0_12
LBB0_11:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %r15
	jmp	LBB0_13
LBB0_12:
	movq	_GSS_S_GAP_TOKEN@GOTPCREL(%rip), %r15
LBB0_13:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_GSS_S_DUPLICATE_TOKEN@GOTPCREL(%rip), %r15
	je	LBB0_13
## %bb.15:
	movl	$1, %ecx
	subq	%rdx, %rcx
	movq	$-1, %rdi
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %r8
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rdi), %rdx
	cmpq	$-1, %rdx
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	4(%rax,%rdi,4), %edx
	cmpl	%r14d, %edx
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%rdi), %rsi
	cmpl	%r14d, 8(%rax,%rdi,4)
	movq	%rsi, %rdi
	jge	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rsi, %rdi
	cmpl	%r14d, %edx
	jge	LBB0_16
## %bb.20:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_elem_insert
	cmpl	%r12d, %r13d
	je	LBB0_11
LBB0_22:
	movq	_GSS_S_UNSEQ_TOKEN@GOTPCREL(%rip), %r15
	jmp	LBB0_13
LBB0_23:
	movq	%r8, %r15
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_COMPLETE,4,2             ## @GSS_S_COMPLETE
	.comm	_GSS_C_REPLAY_FLAG,4,2          ## @GSS_C_REPLAY_FLAG
	.comm	_GSS_C_SEQUENCE_FLAG,4,2        ## @GSS_C_SEQUENCE_FLAG
	.comm	_GSS_S_GAP_TOKEN,4,2            ## @GSS_S_GAP_TOKEN
	.comm	_GSS_S_OLD_TOKEN,4,2            ## @GSS_S_OLD_TOKEN
	.comm	_GSS_S_UNSEQ_TOKEN,4,2          ## @GSS_S_UNSEQ_TOKEN
	.comm	_GSS_S_DUPLICATE_TOKEN,4,2      ## @GSS_S_DUPLICATE_TOKEN
	.comm	_GSS_S_FAILURE,4,2              ## @GSS_S_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gssapi_msg_order_check        ; -- Begin function _gssapi_msg_order_check
	.p2align	2
__gssapi_msg_order_check:               ; @_gssapi_msg_order_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _GSS_C_REPLAY_FLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSS_C_REPLAY_FLAG@GOTPAGEOFF]
Lloh2:
	adrp	x10, _GSS_C_SEQUENCE_FLAG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GSS_C_SEQUENCE_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x9]
Lloh5:
	ldr	w9, [x10]
	orr	w9, w9, w22
Lloh6:
	adrp	x21, _GSS_S_COMPLETE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GSS_S_COMPLETE@GOTPAGEOFF]
	ands	w23, w9, w8
	b.eq	LBB0_12
; %bb.2:
	mov	x19, x1
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	sub	w9, w1, #1
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	bl	_elem_insert
LBB0_4:
Lloh8:
	adrp	x21, _GSS_S_COMPLETE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	cmp	w8, w19
	b.lt	LBB0_10
; %bb.6:
	ldr	w8, [x20, #16]
	cmp	w8, w19
	b.gt	LBB0_10
; %bb.7:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_10
; %bb.8:
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #20]
	sub	x9, x9, #1
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, w19
	b.le	LBB0_13
; %bb.9:
Lloh10:
	adrp	x8, _GSS_S_UNSEQ_TOKEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_S_UNSEQ_TOKEN@GOTPAGEOFF]
Lloh12:
	adrp	x9, _GSS_S_OLD_TOKEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GSS_S_OLD_TOKEN@GOTPAGEOFF]
	cmp	w23, w22
	csel	x21, x9, x8, eq
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	bl	_elem_insert
Lloh14:
	adrp	x8, _GSS_S_GAP_TOKEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSS_S_GAP_TOKEN@GOTPAGEOFF]
LBB0_11:
	cmp	w23, w22
	csel	x21, x21, x8, eq
LBB0_12:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	b.ne	LBB0_15
; %bb.14:
Lloh16:
	adrp	x21, _GSS_S_DUPLICATE_TOKEN@GOTPAGE
Lloh17:
	ldr	x21, [x21, _GSS_S_DUPLICATE_TOKEN@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
	mov	x12, #0
Lloh18:
	adrp	x10, _GSS_S_FAILURE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh20:
	adrp	x11, _GSS_S_DUPLICATE_TOKEN@GOTPAGE
Lloh21:
	ldr	x11, [x11, _GSS_S_DUPLICATE_TOKEN@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	x9, x12
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w14, [x8, x12, lsl #2]
	cmp	w14, w19
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x13, x12, #1
	add	x12, x8, x12, lsl #2
	ldr	w12, [x12, #4]
	cmp	w12, w19
	ccmp	w14, w19, #0, lt
	mov	x12, x13
	b.ge	LBB0_16
; %bb.19:
	sub	x1, x13, #1
	mov	x0, x20
	mov	x2, x19
	bl	_elem_insert
Lloh22:
	adrp	x8, _GSS_S_UNSEQ_TOKEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GSS_S_UNSEQ_TOKEN@GOTPAGEOFF]
	b	LBB0_11
LBB0_20:
	mov	x21, x10
	b	LBB0_12
LBB0_21:
	mov	x21, x11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_COMPLETE,4,2             ; @GSS_S_COMPLETE
	.comm	_GSS_C_REPLAY_FLAG,4,2          ; @GSS_C_REPLAY_FLAG
	.comm	_GSS_C_SEQUENCE_FLAG,4,2        ; @GSS_C_SEQUENCE_FLAG
	.comm	_GSS_S_GAP_TOKEN,4,2            ; @GSS_S_GAP_TOKEN
	.comm	_GSS_S_OLD_TOKEN,4,2            ; @GSS_S_OLD_TOKEN
	.comm	_GSS_S_UNSEQ_TOKEN,4,2          ; @GSS_S_UNSEQ_TOKEN
	.comm	_GSS_S_DUPLICATE_TOKEN,4,2      ; @GSS_S_DUPLICATE_TOKEN
	.comm	_GSS_S_FAILURE,4,2              ; @GSS_S_FAILURE
.subsections_via_symbols
