	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gss_check_seq_num
_gss_check_seq_num:                     ## @gss_check_seq_num
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%rbx), %eax
	movq	_GSS_SEQ_WIN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%r15d, %eax
	jge	LBB0_3
## %bb.1:
	addl	%eax, %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	movl	%eax, (%rbx)
	cltd
	idivl	(%r12)
	movl	%edx, %edi
	movl	8(%rbx), %esi
	callq	___clear_bit
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jl	LBB0_2
	jmp	LBB0_7
LBB0_3:
	subl	%ecx, %eax
	cmpl	%r15d, %eax
	jge	LBB0_5
## %bb.4:
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movl	8(%rbx), %esi
	callq	___test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, (%rbx)
LBB0_7:
	movl	%r15d, %eax
	cltd
	idivl	(%r12)
	movl	%edx, %edi
	movl	8(%rbx), %esi
	callq	___set_bit
LBB0_8:
	movl	$1, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_SEQ_WIN,4,2                ## @GSS_SEQ_WIN
	.no_dead_strip	_gss_check_seq_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gss_check_seq_num
_gss_check_seq_num:                     ; @gss_check_seq_num
	.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, #4
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _GSS_SEQ_WIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GSS_SEQ_WIN@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w21
	b.ge	LBB0_3
; %bb.1:
	add	w9, w9, w8
	cmp	w9, w21
	b.le	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w0, w10, w9, w8
	ldr	w1, [x20, #8]
	bl	___clear_bit
	ldr	w8, [x20]
	cmp	w8, w21
	b.lt	LBB0_2
	b	LBB0_7
LBB0_3:
	sub	w8, w8, w9
	cmp	w8, w21
	b.ge	LBB0_5
; %bb.4:
	sdiv	w8, w21, w9
	msub	w0, w8, w9, w21
	ldr	w1, [x20, #8]
	bl	___test_and_set_bit
	cbz	x0, LBB0_8
LBB0_5:
	mov	w20, #0
	b	LBB0_9
LBB0_6:
	ldr	w0, [x20, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w21, [x20]
LBB0_7:
	ldr	w8, [x22]
	sdiv	w9, w21, w8
	msub	w0, w9, w8, w21
	ldr	w1, [x20, #8]
	bl	___set_bit
LBB0_8:
	mov	w20, #1
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_SEQ_WIN,4,2                ; @GSS_SEQ_WIN
	.no_dead_strip	_gss_check_seq_num
.subsections_via_symbols
