	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_new_from_base64            ## -- Begin function SCT_new_from_base64
	.p2align	4, 0x90
_SCT_new_from_base64:                   ## @SCT_new_from_base64
	.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	%r9, %r12
	movq	%r8, %r13
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_SCT_new
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movzbl	%r15b, %esi
	movq	%rax, %rdi
	callq	_SCT_set_version
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ct_base64_decode
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_SCT_set0_log_id
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ct_base64_decode
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_SCT_set0_extensions
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ct_base64_decode
	testl	%eax, %eax
	js	LBB0_6
## %bb.10:
	movq	-48(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_o2i_SCT_signature
	testq	%rax, %rax
	jle	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	$0, -48(%rbp)
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SCT_set_timestamp
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_SCT_set_log_entry_type
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_1:
	movq	_CT_F_SCT_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CTerr
	jmp	LBB0_13
LBB0_6:
	movq	_CT_F_SCT_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509_R_BASE64_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_CT_F_SCT_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_SCT_UNSUPPORTED_VERSION@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_CTerr
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rdi
	callq	_SCT_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_F_SCT_NEW_FROM_BASE64,4,2   ## @CT_F_SCT_NEW_FROM_BASE64
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CT_R_SCT_UNSUPPORTED_VERSION,4,2 ## @CT_R_SCT_UNSUPPORTED_VERSION
	.comm	_X509_R_BASE64_DECODE_ERROR,4,2 ## @X509_R_BASE64_DECODE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_new_from_base64            ; -- Begin function SCT_new_from_base64
	.p2align	2
_SCT_new_from_base64:                   ; @SCT_new_from_base64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x25, x0
	bl	_SCT_new
	mov	x19, x0
	stp	xzr, xzr, [sp]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	x1, x25
	bl	_SCT_set_version
	cbz	w0, LBB0_10
; %bb.2:
	add	x1, sp, #8
	mov	x0, x24
	bl	_ct_base64_decode
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_SCT_set0_log_id
	cbz	w0, LBB0_12
; %bb.4:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x23
	bl	_ct_base64_decode
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_SCT_set0_extensions
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_ct_base64_decode
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	x2, x0
	ldr	x8, [sp, #8]
	str	x8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_o2i_SCT_signature
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.7:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	str	xzr, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_SCT_set_timestamp
	mov	x0, x19
	mov	x1, x20
	bl	_SCT_set_log_entry_type
	cbnz	w0, LBB0_13
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CTerr
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _X509_R_BASE64_DECODE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_R_BASE64_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CT_F_SCT_NEW_FROM_BASE64@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _CT_R_SCT_UNSUPPORTED_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CT_R_SCT_UNSUPPORTED_VERSION@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_CTerr
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_SCT_free
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_F_SCT_NEW_FROM_BASE64,4,2   ; @CT_F_SCT_NEW_FROM_BASE64
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CT_R_SCT_UNSUPPORTED_VERSION,4,2 ; @CT_R_SCT_UNSUPPORTED_VERSION
	.comm	_X509_R_BASE64_DECODE_ERROR,4,2 ; @X509_R_BASE64_DECODE_ERROR
.subsections_via_symbols
