	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CTLOG_new_from_base64          ## -- Begin function CTLOG_new_from_base64
	.p2align	4, 0x90
_CTLOG_new_from_base64:                 ## @CTLOG_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_ct_base64_decode
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	-40(%rbp), %rcx
	movq	%rcx, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_d2i_PUBKEY
	movq	%rax, %r12
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_CTLOG_new
	movq	%rax, (%r15)
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	jmp	LBB0_9
LBB0_1:
	movq	_CT_F_CTLOG_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PASSED_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_CT_F_CTLOG_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_LOG_CONF_INVALID_KEY@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_CTerr
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_CT_F_CTLOG_NEW_FROM_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CT_R_LOG_CONF_INVALID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CTerr
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_F_CTLOG_NEW_FROM_BASE64,4,2 ## @CT_F_CTLOG_NEW_FROM_BASE64
	.comm	_ERR_R_PASSED_INVALID_ARGUMENT,4,2 ## @ERR_R_PASSED_INVALID_ARGUMENT
	.comm	_CT_R_LOG_CONF_INVALID_KEY,4,2  ## @CT_R_LOG_CONF_INVALID_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CTLOG_new_from_base64          ; -- Begin function CTLOG_new_from_base64
	.p2align	2
_CTLOG_new_from_base64:                 ; @CTLOG_new_from_base64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	bl	_ct_base64_decode
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x2, x0
	ldr	x8, [sp, #8]
	str	x8, [sp]
	mov	x1, sp
	mov	x0, #0
	bl	_d2i_PUBKEY
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	cbz	x21, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_CTLOG_new
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _CT_F_CTLOG_NEW_FROM_BASE64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CT_F_CTLOG_NEW_FROM_BASE64@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CT_R_LOG_CONF_INVALID_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CT_R_LOG_CONF_INVALID_KEY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _CT_F_CTLOG_NEW_FROM_BASE64@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CT_F_CTLOG_NEW_FROM_BASE64@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_PASSED_INVALID_ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_PASSED_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_CTerr
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	mov	x0, x21
	bl	_EVP_PKEY_free
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_F_CTLOG_NEW_FROM_BASE64,4,2 ; @CT_F_CTLOG_NEW_FROM_BASE64
	.comm	_ERR_R_PASSED_INVALID_ARGUMENT,4,2 ; @ERR_R_PASSED_INVALID_ARGUMENT
	.comm	_CT_R_LOG_CONF_INVALID_KEY,4,2  ; @CT_R_LOG_CONF_INVALID_KEY
.subsections_via_symbols
