	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sct_ctx_update
_sct_ctx_update:                        ## @sct_ctx_update
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdx), %rax
	movq	_CT_LOG_ENTRY_TYPE_NOT_SET@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_CT_LOG_ENTRY_TYPE_PRECERT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_15
LBB0_3:
	movb	28(%rbx), %al
	movb	%al, -60(%rbp)
	movq	_SIGNATURE_TYPE_CERT_TIMESTAMP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leaq	-58(%rbp), %r13
	movb	%al, -59(%rbp)
	movl	24(%rbx), %edi
	movq	%r13, %rsi
	callq	_l2n8
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	callq	_s2n
	leaq	-60(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movq	(%rbx), %rax
	movq	_CT_LOG_ENTRY_TYPE_X509@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	8(%r12), %rax
	addq	$16, %r12
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %rsi
	movl	24(%r12), %edx
	movq	%r15, %rdi
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	leaq	32(%r12), %rax
	addq	$40, %r12
LBB0_8:
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_15
## %bb.9:
	movq	(%r12), %r12
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	callq	_l2n3
	movq	%r15, %rdi
	leaq	-60(%rbp), %rsi
	movl	$3, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movq	8(%rbx), %rdi
	leaq	-60(%rbp), %r12
	movq	%r12, %rsi
	callq	_s2n
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_15
LBB0_14:
	movl	$1, %r14d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.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	_SIGNATURE_TYPE_CERT_TIMESTAMP,4,2 ## @SIGNATURE_TYPE_CERT_TIMESTAMP
	.comm	_CT_LOG_ENTRY_TYPE_X509,8,3     ## @CT_LOG_ENTRY_TYPE_X509
	.no_dead_strip	_sct_ctx_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sct_ctx_update
_sct_ctx_update:                        ; @sct_ctx_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _CT_LOG_ENTRY_TYPE_NOT_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CT_LOG_ENTRY_TYPE_NOT_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh9:
	adrp	x9, _CT_LOG_ENTRY_TYPE_PRECERT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CT_LOG_ENTRY_TYPE_PRECERT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_1
LBB0_6:
	ldp	w0, w8, [x20, #24]
	strb	w8, [sp, #12]
Lloh12:
	adrp	x8, _SIGNATURE_TYPE_CERT_TIMESTAMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGNATURE_TYPE_CERT_TIMESTAMP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	x9, sp, #12
	add	x22, x9, #2
	strb	w8, [sp, #13]
	mov	x1, x22
	bl	_l2n8
	ldr	x0, [x20]
	mov	x1, x22
	bl	_s2n
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #2
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
; %bb.7:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _CT_LOG_ENTRY_TYPE_X509@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CT_LOG_ENTRY_TYPE_X509@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	add	x8, x21, #8
	add	x9, x21, #16
	ldr	x21, [x8]
	cbnz	x21, LBB0_11
	b	LBB0_1
LBB0_9:
	ldr	x1, [x21]
	ldr	w2, [x21, #24]
	mov	x0, x19
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
; %bb.10:
	add	x8, x21, #32
	add	x9, x21, #40
	ldr	x21, [x8]
	cbz	x21, LBB0_1
LBB0_11:
	ldr	x22, [x9]
	add	x1, sp, #12
	mov	x0, x22
	bl	_l2n3
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #3
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
; %bb.13:
	ldr	x0, [x20, #8]
	add	x1, sp, #12
	bl	_s2n
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #2
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
; %bb.14:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_16
; %bb.15:
	ldr	x1, [x20, #16]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_2
LBB0_16:
	mov	w0, #1
	b	LBB0_2
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_SIGNATURE_TYPE_CERT_TIMESTAMP,4,2 ; @SIGNATURE_TYPE_CERT_TIMESTAMP
	.comm	_CT_LOG_ENTRY_TYPE_X509,8,3     ; @CT_LOG_ENTRY_TYPE_X509
	.no_dead_strip	_sct_ctx_update
.subsections_via_symbols
