	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authtrust                      ## -- Begin function authtrust
	.p2align	4, 0x90
_authtrust:                             ## @authtrust
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	callq	_auth_findkey
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movl	%r15d, %edi
	callq	_authcache_flush_id
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.4:
	movq	_KEY_TRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	cmpl	$1, %r14d
	jne	LBB0_5
## %bb.6:
	movq	$0, (%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	_current_time@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%r14d, %ecx
	xorl	%eax, %eax
	cmpl	$2, %r14d
	cmovll	%eax, %ecx
	movq	_KEY_TRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_allocsymkey
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_freesymkey                     ## TAILCALL
LBB0_5:
	movq	_current_time@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_TRUSTED,4,2                ## @KEY_TRUSTED
	.comm	_current_time,8,3               ## @current_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authtrust                      ; -- Begin function authtrust
	.p2align	2
_authtrust:                             ; @authtrust
	.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	x19, x1
	mov	x21, x0
	bl	_auth_findkey
	mov	x20, x0
	cbnz	w19, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
LBB0_2:
	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_3:
	cbz	x20, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_authcache_flush_id
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _KEY_TRUSTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_TRUSTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	cmp	w19, #1
	b.ne	LBB0_9
; %bb.6:
	str	xzr, [x20]
	b	LBB0_2
LBB0_7:
Lloh3:
	adrp	x8, _current_time@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_time@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, w19
	cmp	w19, #1
	csel	w3, w8, wzr, gt
Lloh6:
	adrp	x8, _KEY_TRUSTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_TRUSTED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	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
	b	_allocsymkey
LBB0_8:
	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
	b	_freesymkey
LBB0_9:
Lloh9:
	adrp	x8, _current_time@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current_time@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x8, x8, w19, uxtw
	str	x8, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_TRUSTED,4,2                ; @KEY_TRUSTED
	.comm	_current_time,8,3               ; @current_time
.subsections_via_symbols
