	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_gc_keyring
_key_gc_keyring:                        ## @key_gc_keyring
	.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	%rsi, %rbx
	movq	%rdi, %r12
	callq	_key_serial
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_kenter
	movq	_KEY_FLAG_REVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	leaq	L_.str.1(%rip), %rdi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	12(%r12), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r13
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	_KEY_FLAG_DEAD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	movq	8(%r13), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %r15
	movl	(%r14), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_keyring_gc
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kleave                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x"

	.comm	_KEY_FLAG_REVOKED,4,2           ## @KEY_FLAG_REVOKED
	.comm	_KEY_FLAG_DEAD,4,2              ## @KEY_FLAG_DEAD
L_.str.1:                               ## @.str.1
	.asciz	" [no gc]"

L_.str.2:                               ## @.str.2
	.asciz	" [gc]"

	.no_dead_strip	_key_gc_keyring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_gc_keyring
_key_gc_keyring:                        ; @key_gc_keyring
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_key_serial
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kenter
Lloh2:
	adrp	x8, _KEY_FLAG_REVOKED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KEY_FLAG_REVOKED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.1:
	bl	_rcu_read_lock
	ldr	w0, [x20, #12]
	bl	_rcu_dereference
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	w22, [x0]
	bl	_smp_rmb
Lloh5:
	adrp	x23, _KEY_FLAG_DEAD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _KEY_FLAG_DEAD@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	w22, w22, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x24, [x8, w22, uxtw #3]
	ldr	w0, [x23]
	add	x1, x24, #8
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	cmp	x8, #1
	ccmp	x8, x19, #0, ge
	b.gt	LBB0_3
LBB0_6:
	bl	_rcu_read_unlock
	mov	x0, x20
	mov	x1, x19
	bl	_keyring_gc
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	bl	_rcu_read_unlock
LBB0_8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	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
	b	_kleave
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x"

	.comm	_KEY_FLAG_REVOKED,4,2           ; @KEY_FLAG_REVOKED
	.comm	_KEY_FLAG_DEAD,4,2              ; @KEY_FLAG_DEAD
l_.str.1:                               ; @.str.1
	.asciz	" [no gc]"

l_.str.2:                               ; @.str.2
	.asciz	" [gc]"

	.no_dead_strip	_key_gc_keyring
.subsections_via_symbols
