	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_cert_add0_chain_cert       ## -- Begin function ssl_cert_add0_chain_cert
	.p2align	4, 0x90
_ssl_cert_add0_chain_cert:              ## @ssl_cert_add0_chain_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	jmp	LBB0_3
LBB0_2:
	movq	(%rsi), %rax
LBB0_3:
	movq	(%rax), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ssl_security_cert
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_sk_X509_new_null
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r14, %rsi
	callq	_sk_X509_push
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_9
LBB0_5:
	movq	_SSL_F_SSL_CERT_ADD0_CHAIN_CERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_SSLerr
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_CERT_ADD0_CHAIN_CERT,4,2 ## @SSL_F_SSL_CERT_ADD0_CHAIN_CERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_cert_add0_chain_cert       ; -- Begin function ssl_cert_add0_chain_cert
	.p2align	2
_ssl_cert_add0_chain_cert:              ; @ssl_cert_add0_chain_cert
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	x20, [x8]
	cbnz	x20, LBB0_3
	b	LBB0_8
LBB0_2:
	ldr	x8, [x1]
	ldr	x20, [x8]
	cbz	x20, LBB0_8
LBB0_3:
	mov	x2, x19
	mov	w3, #0
	mov	w4, #0
	bl	_ssl_security_cert
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [x20]
	cbnz	x0, LBB0_6
; %bb.5:
	bl	_sk_X509_new_null
	str	x0, [x20]
	cbz	x0, LBB0_9
LBB0_6:
	mov	x1, x19
	bl	_sk_X509_push
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_9
LBB0_7:
	mov	x1, x0
Lloh0:
	adrp	x8, _SSL_F_SSL_CERT_ADD0_CHAIN_CERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_F_SSL_CERT_ADD0_CHAIN_CERT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SSLerr
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_CERT_ADD0_CHAIN_CERT,4,2 ; @SSL_F_SSL_CERT_ADD0_CHAIN_CERT
.subsections_via_symbols
