	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_validate                   ## -- Begin function key_validate
	.p2align	4, 0x90
_key_validate:                          ## @key_validate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_EKEYREVOKED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_KEY_FLAG_REVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_KEY_FLAG_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_current_kernel_time
	cmpq	(%r14), %rax
	jl	LBB0_7
## %bb.5:
	movq	_EKEYEXPIRED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EKEYREVOKED,4,2                ## @EKEYREVOKED
	.comm	_KEY_FLAG_REVOKED,4,2           ## @KEY_FLAG_REVOKED
	.comm	_KEY_FLAG_DEAD,4,2              ## @KEY_FLAG_DEAD
	.comm	_EKEYEXPIRED,4,2                ## @EKEYEXPIRED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_validate                   ; -- Begin function key_validate
	.p2align	2
_key_validate:                          ; @key_validate
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _EKEYREVOKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EKEYREVOKED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _KEY_FLAG_REVOKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_FLAG_REVOKED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x19, #8
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _KEY_FLAG_DEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_FLAG_DEAD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_current_kernel_time
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	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
LBB0_7:
Lloh9:
	adrp	x8, _EKEYEXPIRED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EKEYEXPIRED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EKEYREVOKED,4,2                ; @EKEYREVOKED
	.comm	_KEY_FLAG_REVOKED,4,2           ; @KEY_FLAG_REVOKED
	.comm	_KEY_FLAG_DEAD,4,2              ; @KEY_FLAG_DEAD
	.comm	_EKEYEXPIRED,4,2                ; @EKEYEXPIRED
.subsections_via_symbols
