	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctlog_store_load_log
_ctlog_store_load_log:                  ## @ctlog_store_load_log
	.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)
	movl	$1, %r15d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r14
	callq	_OPENSSL_strndup
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	12(%r14), %esi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	callq	_ctlog_new_from_conf
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.5:
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rsi
	callq	_sk_CTLOG_push
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	-40(%rbp), %rdi
	jmp	LBB0_9
LBB0_2:
	xorl	%edi, %edi
LBB0_9:
	callq	_CTLOG_free
	movq	_CT_F_CTLOG_STORE_LOAD_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CTerr
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_4:
	movl	%r12d, %r15d
	jmp	LBB0_10
LBB0_6:
	incl	8(%r14)
LBB0_10:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_F_CTLOG_STORE_LOAD_LOG,4,2  ## @CT_F_CTLOG_STORE_LOAD_LOG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ctlog_store_load_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctlog_store_load_log
_ctlog_store_load_log:                  ; @ctlog_store_load_log
	.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_5
; %bb.1:
	mov	x19, x2
	bl	_OPENSSL_strndup
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	w1, [x19, #12]
	add	x0, sp, #8
	mov	x2, x21
	bl	_ctlog_new_from_conf
	mov	x20, x0
	mov	x0, x21
	bl	_OPENSSL_free
	tbnz	w20, #31, LBB0_9
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_sk_CTLOG_push
	cbz	w0, LBB0_7
LBB0_5:
	mov	w20, #1
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	w20, #1
	b	LBB0_9
LBB0_7:
	ldr	x0, [sp, #8]
LBB0_8:
	bl	_CTLOG_free
Lloh0:
	adrp	x8, _CT_F_CTLOG_STORE_LOAD_LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CT_F_CTLOG_STORE_LOAD_LOG@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
	mov	w20, #-1
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_F_CTLOG_STORE_LOAD_LOG,4,2  ; @CT_F_CTLOG_STORE_LOAD_LOG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_ctlog_store_load_log
.subsections_via_symbols
