	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cert_stuff                 ## -- Begin function set_cert_stuff
	.p2align	4, 0x90
_set_cert_stuff:                        ## @set_cert_stuff
	.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
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_SSL_CTX_use_certificate_file
	testq	%rax, %rax
	jle	LBB0_2
## %bb.4:
	testq	%r12, %r12
	cmovneq	%r12, %rbx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_SSL_CTX_check_private_key
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_8
LBB0_2:
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r15), %edi
	callq	_ERR_print_errors
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get certificate from '%s'\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to get private key from '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"Private key does not match the certificate public key\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cert_stuff                 ; -- Begin function set_cert_stuff
	.p2align	2
_set_cert_stuff:                        ; @set_cert_stuff
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SSL_FILETYPE_PEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SSL_FILETYPE_PEM@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_SSL_CTX_use_certificate_file
	cmp	x0, #0
	b.le	LBB0_5
; %bb.2:
	cmp	x21, #0
	csel	x20, x20, x21, eq
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_CTX_use_PrivateKey_file
	cmp	x0, #0
	b.le	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_SSL_CTX_check_private_key
	cbz	w0, LBB0_8
LBB0_4:
	mov	w0, #1
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x19, _bio_err@GOTPAGE
Lloh3:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x19, _bio_err@GOTPAGE
Lloh7:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _bio_err@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get certificate from '%s'\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to get private key from '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"Private key does not match the certificate public key\n"

.subsections_via_symbols
