	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisSSLConnect
_redisSSLConnect:                       ## @redisSSLConnect
	.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	%r12
	pushq	%rbx
	subq	$528, %rsp                      ## imm = 0x210
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	___redisSetError
	movq	_REDIS_ERR@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, 24(%r14)
	movq	_redisContextSSLFuncs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r12, 8(%rbx)
	movq	%r15, (%rbx)
	movq	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SSL_set_mode
	movq	(%rbx), %rdi
	movl	16(%r14), %esi
	callq	_SSL_set_fd
	movq	(%rbx), %rdi
	callq	_SSL_set_connect_state
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	(%rbx), %rdi
	callq	_SSL_connect
	movq	_REDIS_OK@GOTPCREL(%rip), %r15
	cmpl	$1, %eax
	je	LBB0_11
## %bb.3:
	movq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_6
## %bb.4:
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.5:
	movq	_SSL_ERROR_WANT_WRITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
LBB0_6:
	movq	_REDIS_ERR@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%r14)
	jne	LBB0_11
## %bb.7:
	movq	_SSL_ERROR_SYSCALL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_ERR_peek_last_error
	movq	%rax, %rdi
	callq	_ERR_reason_error_string
LBB0_10:
	movq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdx
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_snprintf
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	___redisSetError
LBB0_11:
	movl	(%r15), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$528, %rsp                      ## imm = 0x210
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_ERR_OTHER,4,2            ## @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redisContext was already associated"

	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_redisContextSSLFuncs,4,2       ## @redisContextSSLFuncs
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ## @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_REDIS_OK,4,2                   ## @REDIS_OK
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ## @SSL_ERROR_WANT_WRITE
	.comm	_SSL_ERROR_SYSCALL,4,2          ## @SSL_ERROR_SYSCALL
L_.str.1:                               ## @.str.1
	.asciz	"SSL_connect failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.no_dead_strip	_redisSSLConnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisSSLConnect
_redisSSLConnect:                       ; @redisSSLConnect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #528
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	___redisSetError
LBB0_3:
Lloh8:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.5:
	add	sp, sp, #528
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x21, x2
	mov	x22, x1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x20, x0
Lloh13:
	adrp	x8, _redisContextSSLFuncs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _redisContextSSLFuncs@GOTPAGEOFF]
	stp	x0, x8, [x19, #24]
	stp	x21, x22, [x0]
Lloh15:
	adrp	x8, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SSL_set_mode
	ldr	x0, [x20]
	ldr	w1, [x19, #16]
	bl	_SSL_set_fd
	ldr	x0, [x20]
	bl	_SSL_set_connect_state
	bl	_ERR_clear_error
	ldr	x0, [x20]
	bl	_SSL_connect
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	mov	x1, x0
	ldr	x0, [x20]
	bl	_SSL_get_error
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _REDIS_BLOCK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _REDIS_BLOCK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.9:
Lloh23:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x8]
Lloh26:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	cmp	w0, w9
	b.eq	LBB0_4
; %bb.10:
Lloh28:
	adrp	x9, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w0, w9
	b.eq	LBB0_4
LBB0_11:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
; %bb.12:
Lloh31:
	adrp	x8, _SSL_ERROR_SYSCALL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SSL_ERROR_SYSCALL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.13:
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_strerror
	b	LBB0_15
LBB0_14:
	bl	_ERR_peek_last_error
	bl	_ERR_reason_error_string
LBB0_15:
	mov	x3, x0
Lloh37:
	adrp	x2, l_.str.1@PAGE
Lloh38:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #511
	bl	_snprintf
Lloh39:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	add	x2, sp, #8
	b	LBB0_2
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_ERR_OTHER,4,2            ; @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redisContext was already associated"

	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_redisContextSSLFuncs,4,2       ; @redisContextSSLFuncs
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ; @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_REDIS_OK,4,2                   ; @REDIS_OK
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ; @SSL_ERROR_WANT_WRITE
	.comm	_SSL_ERROR_SYSCALL,4,2          ; @SSL_ERROR_SYSCALL
l_.str.1:                               ; @.str.1
	.asciz	"SSL_connect failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.no_dead_strip	_redisSSLConnect
.subsections_via_symbols
