	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_CTX_verify                 ## -- Begin function SCT_CTX_verify
	.p2align	4, 0x90
_SCT_CTX_verify:                        ## @SCT_CTX_verify
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_SCT_is_complete
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_CT_LOG_ENTRY_TYPE_NOT_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_5:
	movq	_CT_F_SCT_CTX_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_NOT_SET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_CTerr
	xorl	%r15d, %r15d
LBB0_20:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CT_LOG_ENTRY_TYPE_PRECERT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	cmpq	$0, 32(%r14)
	je	LBB0_5
LBB0_7:
	movq	8(%rbx), %rax
	movq	_SCT_VERSION_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	16(%rbx), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_11
## %bb.10:
	movl	40(%rbx), %edi
	movl	24(%r14), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_CT_F_SCT_CTX_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_LOG_ID_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_CT_F_SCT_CTX_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_UNSUPPORTED_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	24(%rbx), %rax
	cmpq	8(%r14), %rax
	jle	LBB0_14
## %bb.13:
	movq	_CT_F_SCT_CTX_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_FUTURE_TIMESTAMP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_EVP_sha256
	movq	16(%r14), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_EVP_DigestVerifyInit
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_sct_ctx_update
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movq	%r12, %rdi
	callq	_EVP_DigestVerifyFinal
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	_CT_F_SCT_CTX_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_INVALID_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CTerr
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_LOG_ENTRY_TYPE_NOT_SET,8,3  ## @CT_LOG_ENTRY_TYPE_NOT_SET
	.comm	_CT_LOG_ENTRY_TYPE_PRECERT,8,3  ## @CT_LOG_ENTRY_TYPE_PRECERT
	.comm	_CT_F_SCT_CTX_VERIFY,4,2        ## @CT_F_SCT_CTX_VERIFY
	.comm	_CT_R_SCT_NOT_SET,4,2           ## @CT_R_SCT_NOT_SET
	.comm	_SCT_VERSION_V1,8,3             ## @SCT_VERSION_V1
	.comm	_CT_R_SCT_UNSUPPORTED_VERSION,4,2 ## @CT_R_SCT_UNSUPPORTED_VERSION
	.comm	_CT_R_SCT_LOG_ID_MISMATCH,4,2   ## @CT_R_SCT_LOG_ID_MISMATCH
	.comm	_CT_R_SCT_FUTURE_TIMESTAMP,4,2  ## @CT_R_SCT_FUTURE_TIMESTAMP
	.comm	_CT_R_SCT_INVALID_SIGNATURE,4,2 ## @CT_R_SCT_INVALID_SIGNATURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_CTX_verify                 ; -- Begin function SCT_CTX_verify
	.p2align	2
_SCT_CTX_verify:                        ; @SCT_CTX_verify
	.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	x20, x0
	mov	x0, x1
	bl	_SCT_is_complete
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CT_LOG_ENTRY_TYPE_NOT_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CT_LOG_ENTRY_TYPE_NOT_SET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _CT_F_SCT_CTX_VERIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CT_F_SCT_CTX_VERIFY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CT_R_SCT_NOT_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CT_R_SCT_NOT_SET@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_CTerr
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	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_6:
Lloh8:
	adrp	x9, _CT_LOG_ENTRY_TYPE_PRECERT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CT_LOG_ENTRY_TYPE_PRECERT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
LBB0_8:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _SCT_VERSION_V1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCT_VERSION_V1@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	ldr	x2, [x19, #16]
	ldr	x8, [x20]
	cmp	x2, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x19, #40]
	ldr	w1, [x20, #24]
	bl	_memcmp
	cbz	x0, LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _CT_F_SCT_CTX_VERIFY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CT_F_SCT_CTX_VERIFY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _CT_R_SCT_LOG_ID_MISMATCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CT_R_SCT_LOG_ID_MISMATCH@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
Lloh19:
	adrp	x8, _CT_F_SCT_CTX_VERIFY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CT_F_SCT_CTX_VERIFY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _CT_R_SCT_UNSUPPORTED_VERSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CT_R_SCT_UNSUPPORTED_VERSION@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.le	LBB0_15
; %bb.14:
Lloh24:
	adrp	x8, _CT_F_SCT_CTX_VERIFY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CT_F_SCT_CTX_VERIFY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _CT_R_SCT_FUTURE_TIMESTAMP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CT_R_SCT_FUTURE_TIMESTAMP@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	bl	_EVP_MD_CTX_new
	mov	x21, x0
	cbz	x0, LBB0_20
; %bb.16:
	bl	_EVP_sha256
	mov	x2, x0
	ldr	x4, [x20, #16]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_EVP_DigestVerifyInit
	cbz	w0, LBB0_20
; %bb.17:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sct_ctx_update
	cbz	w0, LBB0_20
; %bb.18:
	ldp	w2, w1, [x19, #32]
	mov	x0, x21
	bl	_EVP_DigestVerifyFinal
	mov	x19, x0
	cbnz	w0, LBB0_21
; %bb.19:
Lloh29:
	adrp	x8, _CT_F_SCT_CTX_VERIFY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CT_F_SCT_CTX_VERIFY@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _CT_R_SCT_INVALID_SIGNATURE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CT_R_SCT_INVALID_SIGNATURE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_CTerr
	b	LBB0_21
LBB0_20:
	mov	w19, #0
LBB0_21:
	mov	x0, x21
	bl	_EVP_MD_CTX_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_LOG_ENTRY_TYPE_NOT_SET,8,3  ; @CT_LOG_ENTRY_TYPE_NOT_SET
	.comm	_CT_LOG_ENTRY_TYPE_PRECERT,8,3  ; @CT_LOG_ENTRY_TYPE_PRECERT
	.comm	_CT_F_SCT_CTX_VERIFY,4,2        ; @CT_F_SCT_CTX_VERIFY
	.comm	_CT_R_SCT_NOT_SET,4,2           ; @CT_R_SCT_NOT_SET
	.comm	_SCT_VERSION_V1,8,3             ; @SCT_VERSION_V1
	.comm	_CT_R_SCT_UNSUPPORTED_VERSION,4,2 ; @CT_R_SCT_UNSUPPORTED_VERSION
	.comm	_CT_R_SCT_LOG_ID_MISMATCH,4,2   ; @CT_R_SCT_LOG_ID_MISMATCH
	.comm	_CT_R_SCT_FUTURE_TIMESTAMP,4,2  ; @CT_R_SCT_FUTURE_TIMESTAMP
	.comm	_CT_R_SCT_INVALID_SIGNATURE,4,2 ; @CT_R_SCT_INVALID_SIGNATURE
.subsections_via_symbols
