	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_store_add
_x509_store_add:                        ## @x509_store_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_X509_OBJECT_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.5:
	addq	$8, %rax
	movq	_X509_LU_X509@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	addq	$16, %rax
	movq	_X509_LU_CRL@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movq	%r12, (%rax)
	movl	%ecx, (%r15)
	movq	%r15, %rdi
	callq	_X509_OBJECT_up_ref_count
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_X509_STORE_lock
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_X509_OBJECT_retrieve_match
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_X509_STORE_unlock
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_X509_LU_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_sk_X509_OBJECT_push
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_X509_STORE_unlock
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	setne	%bl
	jne	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_X509_OBJECT_free
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_LU_CRL,4,2                ## @X509_LU_CRL
	.comm	_X509_LU_X509,4,2               ## @X509_LU_X509
	.comm	_X509_LU_NONE,4,2               ## @X509_LU_NONE
	.no_dead_strip	_x509_store_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_store_add
_x509_store_add:                        ; @x509_store_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	cbz	x1, LBB0_9
; %bb.1:
	mov	x22, x2
	mov	x20, x0
	bl	_X509_OBJECT_new
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _X509_LU_X509@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_LU_X509@GOTPAGEOFF]
	add	x9, x0, #8
Lloh2:
	adrp	x10, _X509_LU_CRL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _X509_LU_CRL@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	mov	x10, x0
	str	w8, [x10], #16
	csel	x8, x9, x10, eq
	str	x21, [x8]
	bl	_X509_OBJECT_up_ref_count
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_X509_STORE_lock
	ldr	w0, [x20]
	mov	x1, x19
	bl	_X509_OBJECT_retrieve_match
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_X509_STORE_unlock
	mov	w21, #1
	b	LBB0_8
LBB0_5:
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	mov	w21, #0
Lloh4:
	adrp	x8, _X509_LU_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _X509_LU_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_sk_X509_OBJECT_push
	mov	x22, x0
	cmp	w0, #0
	cset	w21, ne
	mov	x0, x20
	bl	_X509_STORE_unlock
	cbnz	w22, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_X509_OBJECT_free
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_LU_CRL,4,2                ; @X509_LU_CRL
	.comm	_X509_LU_X509,4,2               ; @X509_LU_X509
	.comm	_X509_LU_NONE,4,2               ; @X509_LU_NONE
	.no_dead_strip	_x509_store_add
.subsections_via_symbols
