	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_cert_read                ## -- Begin function rdssl_cert_read
	.p2align	4, 0x90
_rdssl_cert_read:                       ## @rdssl_cert_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movq	_PKCS_7_ASN_ENCODING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_CertCreateCertificateContext
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_error
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdssl_cert_read %p %ld\n"

	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_PKCS_7_ASN_ENCODING,4,2        ## @PKCS_7_ASN_ENCODING
L_.str.1:                               ## @.str.1
	.asciz	"CertCreateCertificateContext call failed with %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_cert_read                ; -- Begin function rdssl_cert_read
	.p2align	2
_rdssl_cert_read:                       ; @rdssl_cert_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x2, x1
	mov	x1, x0
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x2, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PKCS_7_ASN_ENCODING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PKCS_7_ASN_ENCODING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_CertCreateCertificateContext
	cbnz	x0, LBB0_6
; %bb.3:
	bl	_GetLastError
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x2, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_5:
	bl	_error
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdssl_cert_read %p %ld\n"

	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_PKCS_7_ASN_ENCODING,4,2        ; @PKCS_7_ASN_ENCODING
l_.str.1:                               ; @.str.1
	.asciz	"CertCreateCertificateContext call failed with %lx\n"

.subsections_via_symbols
