	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisSecureConnection          ## -- Begin function redisSecureConnection
	.p2align	4, 0x90
_redisSecureConnection:                 ## @redisSecureConnection
	.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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpb	$0, _redisSecureConnection.isInit(%rip)
	jne	LBB0_2
## %bb.1:
	movb	$1, _redisSecureConnection.isInit(%rip)
	xorl	%eax, %eax
	callq	_SSL_library_init
LBB0_2:
	xorl	%eax, %eax
	callq	_SSLv23_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:
	movq	%rax, %rbx
	movq	_SSL_OP_NO_SSLv2@GOTPCREL(%rip), %rax
	movq	_SSL_OP_NO_SSLv3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SSL_CTX_set_options
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_SSL_CTX_set_verify
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	testq	%r12, %r12
	je	LBB0_7
LBB0_5:
	testq	%r13, %r13
	jne	LBB0_9
## %bb.6:
	testq	%r12, %r12
	je	LBB0_9
LBB0_7:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	callq	___redisSetError
LBB0_22:
	movq	%rbx, %rdi
	callq	_SSL_CTX_free
	jmp	LBB0_23
LBB0_25:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	___redisSetError
LBB0_23:
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r15, %r15
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_SSL_CTX_load_verify_locations
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	testq	%r13, %r13
	je	LBB0_17
## %bb.13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_SSL_CTX_use_certificate_chain_file
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	movq	%rbx, %rdi
	callq	_SSL_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %r15
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.20:
	movq	%r15, %rdi
	callq	_SSL_set_tlsext_host_name
	testl	%eax, %eax
	je	LBB0_21
LBB0_24:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_redisSSLConnect                ## TAILCALL
LBB0_11:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_8
LBB0_14:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_8
LBB0_18:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_8
LBB0_16:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_8
LBB0_21:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	___redisSetError
	movq	%r15, %rdi
	callq	_SSL_free
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_redisSecureConnection.isInit,1,2 ## @redisSecureConnection.isInit
	.comm	_REDIS_ERR_OTHER,4,2            ## @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create SSL_CTX"

	.comm	_SSL_OP_NO_SSLv2,4,2            ## @SSL_OP_NO_SSLv2
	.comm	_SSL_OP_NO_SSLv3,4,2            ## @SSL_OP_NO_SSLv3
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
L_.str.1:                               ## @.str.1
	.asciz	"certpath and keypath must be specified together"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid CA certificate"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid client certificate"

	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
L_.str.4:                               ## @.str.4
	.asciz	"Invalid client key"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't create new SSL instance"

L_.str.6:                               ## @.str.6
	.asciz	"Couldn't set server name indication"

	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_sslLogCallback,4,2             ## @sslLogCallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisSecureConnection          ; -- Begin function redisSecureConnection
	.p2align	2
_redisSecureConnection:                 ; @redisSecureConnection
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	adrp	x8, _redisSecureConnection.isInit@PAGE
	ldrb	w9, [x8, _redisSecureConnection.isInit@PAGEOFF]
	tbnz	w9, #0, LBB0_2
; %bb.1:
	mov	w9, #1
	strb	w9, [x8, _redisSecureConnection.isInit@PAGEOFF]
	bl	_SSL_library_init
LBB0_2:
	bl	_SSLv23_client_method
	bl	_SSL_CTX_new
	cbz	x0, LBB0_10
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _SSL_OP_NO_SSLv2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_OP_NO_SSLv2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_OP_NO_SSLv3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_OP_NO_SSLv3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_SSL_CTX_set_options
Lloh6:
	adrp	x8, _SSL_VERIFY_PEER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_SSL_CTX_set_verify
	cbz	x23, LBB0_5
; %bb.4:
	cbz	x22, LBB0_7
LBB0_5:
	cbnz	x23, LBB0_12
; %bb.6:
	cbz	x22, LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	___redisSetError
LBB0_9:
	mov	x0, x19
	bl	_SSL_CTX_free
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	___redisSetError
LBB0_11:
Lloh19:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	cbz	x24, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
	bl	_SSL_CTX_load_verify_locations
	cbz	w0, LBB0_21
LBB0_14:
	cbz	x23, LBB0_17
; %bb.15:
	mov	x0, x19
	mov	x1, x23
	bl	_SSL_CTX_use_certificate_chain_file
	cbz	w0, LBB0_22
; %bb.16:
Lloh22:
	adrp	x8, _SSL_FILETYPE_PEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_FILETYPE_PEM@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_SSL_CTX_use_PrivateKey_file
	cbz	w0, LBB0_24
LBB0_17:
	mov	x0, x19
	bl	_SSL_new
	cbz	x0, LBB0_23
; %bb.18:
	mov	x22, x0
	cbz	x21, LBB0_20
; %bb.19:
	mov	x0, x22
	mov	x1, x21
	bl	_SSL_set_tlsext_host_name
	cbz	w0, LBB0_25
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_redisSSLConnect
LBB0_21:
Lloh25:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_22:
Lloh30:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_23:
Lloh35:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.5@PAGE
Lloh39:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_24:
Lloh40:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.4@PAGE
Lloh44:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_25:
Lloh45:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x2, l_.str.6@PAGE
Lloh49:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	___redisSetError
	mov	x0, x22
	bl	_SSL_free
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_redisSecureConnection.isInit,1,2 ; @redisSecureConnection.isInit
	.comm	_REDIS_ERR_OTHER,4,2            ; @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create SSL_CTX"

	.comm	_SSL_OP_NO_SSLv2,4,2            ; @SSL_OP_NO_SSLv2
	.comm	_SSL_OP_NO_SSLv3,4,2            ; @SSL_OP_NO_SSLv3
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
l_.str.1:                               ; @.str.1
	.asciz	"certpath and keypath must be specified together"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid CA certificate"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid client certificate"

	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
l_.str.4:                               ; @.str.4
	.asciz	"Invalid client key"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't create new SSL instance"

l_.str.6:                               ; @.str.6
	.asciz	"Couldn't set server name indication"

	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_sslLogCallback,4,2             ; @sslLogCallback
.subsections_via_symbols
