	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_CTX_set1_cert              ## -- Begin function SCT_CTX_set1_cert
	.p2align	4, 0x90
_SCT_CTX_set1_cert:                     ## @SCT_CTX_set1_cert
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_NID_ct_precert_poison@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ct_x509_get_ext
	xorl	%r13d, %r13d
	cmpl	$0, -68(%rbp)
	jne	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	$-1, %r15d
	je	LBB0_4
LBB0_6:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_NID_ct_precert_scts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ct_x509_get_ext
	cmpl	$0, -64(%rbp)
	jne	LBB0_1
## %bb.7:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	testl	%r15d, %r15d
	jns	LBB0_1
LBB0_9:
	cmpl	$-1, %eax
	cmovnel	%eax, %r15d
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_X509_dup
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_X509_delete_ext
	movq	%rax, %rdi
	callq	_X509_EXTENSION_free
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ct_x509_cert_fixup
	testl	%eax, %eax
	je	LBB0_2
## %bb.13:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i2d_re_X509_tbs
	movl	%eax, %ecx
	testl	%eax, %eax
	jg	LBB0_14
	jmp	LBB0_2
LBB0_4:
	testq	%r12, %r12
	je	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	-56(%rbp), %rdi
	callq	_OPENSSL_free
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rdi
	callq	_X509_free
LBB0_15:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i2d_X509
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_1
LBB0_10:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_X509_free
	movq	(%r14), %rdi
	callq	_OPENSSL_free
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movq	16(%r14), %rdi
	callq	_OPENSSL_free
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
	movl	%ebx, 24(%r14)
	movl	$1, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_ct_precert_poison,4,2      ## @NID_ct_precert_poison
	.comm	_NID_ct_precert_scts,4,2        ## @NID_ct_precert_scts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCT_CTX_set1_cert              ; -- Begin function SCT_CTX_set1_cert
	.p2align	2
_SCT_CTX_set1_cert:                     ; @SCT_CTX_set1_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _NID_ct_precert_poison@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_ct_precert_poison@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x23
	bl	_ct_x509_get_ext
	mov	x22, #0
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_12
; %bb.1:
	mov	x24, x0
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	mov	w20, #0
LBB0_3:
Lloh3:
	adrp	x8, _NID_ct_precert_scts@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_ct_precert_scts@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x23
	bl	_ct_x509_get_ext
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_11
; %bb.4:
	tbnz	w0, #31, LBB0_6
; %bb.5:
	tbz	w24, #31, LBB0_11
LBB0_6:
	cmn	w0, #1
	csel	w24, w24, w0, eq
	tbnz	w24, #31, LBB0_15
; %bb.7:
	mov	x0, x23
	bl	_X509_dup
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x22
	mov	x1, x24
	bl	_X509_delete_ext
	bl	_X509_EXTENSION_free
	mov	x0, x22
	mov	x1, x21
	bl	_ct_x509_cert_fixup
	cbz	w0, LBB0_12
; %bb.9:
	add	x1, sp, #16
	mov	x0, x22
	bl	_i2d_re_X509_tbs
	mov	x21, x0
	cmp	w0, #1
	b.ge	LBB0_16
	b	LBB0_12
LBB0_10:
	cbz	x21, LBB0_14
LBB0_11:
	mov	x22, #0
LBB0_12:
	ldr	x0, [sp, #24]
	bl	_OPENSSL_free
	ldr	x0, [sp, #16]
	bl	_OPENSSL_free
	mov	x0, x22
	bl	_X509_free
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
	add	x1, sp, #24
	mov	x0, x23
	bl	_i2d_X509
	mov	x20, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_11
LBB0_15:
	mov	w21, #0
	mov	x22, #0
LBB0_16:
	mov	x0, x22
	bl	_X509_free
	ldr	x0, [x19]
	bl	_OPENSSL_free
	ldr	x8, [sp, #24]
	str	x8, [x19]
	str	w20, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_OPENSSL_free
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	str	w21, [x19, #24]
	mov	w0, #1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_ct_precert_poison,4,2      ; @NID_ct_precert_poison
	.comm	_NID_ct_precert_scts,4,2        ; @NID_ct_precert_scts
.subsections_via_symbols
