	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyring_detect_cycle
_keyring_detect_cycle:                  ## @keyring_detect_cycle
	.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, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_KEYRING_SEARCH_MAX_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_lock
	cmpq	%rbx, %r14
	je	LBB0_19
## %bb.1:
	movq	_KEY_FLAG_REVOKED@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15), %r13
	xorl	%eax, %eax
	callq	_smp_rmb
	cmpl	%r13d, %r12d
	jge	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	leaq	(,%rax,8), %rcx
	addq	8(%r15), %rcx
	subq	%rax, %r13
	xorl	%eax, %eax
	movq	_key_type_keyring@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rax,8), %rbx
	cmpq	%r14, %rbx
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rdx, (%rbx)
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
	cmpq	%rax, %r13
	jne	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	%r13d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	shlq	$4, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %r15
	movl	8(%rcx,%rax), %r12d
	incl	%r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_KEYRING_SEARCH_MAX_DEPTH@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	(%rcx), %r13d
	jge	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r12d
	movslq	%r13d, %rax
	shlq	$4, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx,%rax)
	movl	%r12d, 8(%rcx,%rax)
	incl	%r13d
	movq	_KEY_FLAG_REVOKED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	movq	_EDEADLK@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.16:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_17:
	movq	_ELOOP@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYRING_SEARCH_MAX_DEPTH,4,2   ## @KEYRING_SEARCH_MAX_DEPTH
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_KEY_FLAG_REVOKED,4,2           ## @KEY_FLAG_REVOKED
	.comm	_key_type_keyring,4,2           ## @key_type_keyring
	.comm	_ELOOP,4,2                      ## @ELOOP
	.no_dead_strip	_keyring_detect_cycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyring_detect_cycle
_keyring_detect_cycle:                  ; @keyring_detect_cycle
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _KEYRING_SEARCH_MAX_DEPTH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _KEYRING_SEARCH_MAX_DEPTH@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
	bl	_rcu_read_lock
	cmp	x19, x21
	b.eq	LBB0_14
; %bb.1:
	mov	w24, #0
Lloh7:
	adrp	x25, _KEY_FLAG_REVOKED@GOTPAGE
Lloh8:
	ldr	x25, [x25, _KEY_FLAG_REVOKED@GOTPAGEOFF]
Lloh9:
	adrp	x26, _key_type_keyring@GOTPAGE
Lloh10:
	ldr	x26, [x26, _key_type_keyring@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x25]
	add	x1, x21, #12
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21, #8]
	bl	_rcu_dereference
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	mov	w27, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x21, [x20]
	bl	_smp_rmb
	cmp	w27, w21
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, w27, sxtw #3
	sub	x9, x21, w27, sxtw
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x8]
	cmp	x21, x19
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x21]
	cmp	x10, x26
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w27, w27, #1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w24, w24, #1
	b.lt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x23, w24, uxtw #4
	ldr	x20, [x8]
	ldr	w8, [x8, #8]
	add	w27, w8, #1
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x23, w24, sxtw #4
	str	x20, [x8]
	str	w27, [x8, #8]
	add	w24, w24, #1
	b	LBB0_2
LBB0_14:
Lloh11:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_16:
	bl	_rcu_read_unlock
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.17:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w19, #0
	b	LBB0_16
LBB0_19:
Lloh16:
	adrp	x8, _ELOOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ELOOP@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYRING_SEARCH_MAX_DEPTH,4,2   ; @KEYRING_SEARCH_MAX_DEPTH
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_KEY_FLAG_REVOKED,4,2           ; @KEY_FLAG_REVOKED
	.comm	_key_type_keyring,4,2           ; @key_type_keyring
	.comm	_ELOOP,4,2                      ; @ELOOP
	.no_dead_strip	_keyring_detect_cycle
.subsections_via_symbols
