	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisConnectWithOptions        ## -- Begin function redisConnectWithOptions
	.p2align	4, 0x90
_redisConnectWithOptions:               ## @redisConnectWithOptions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_redisContextInit
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_REDIS_OPT_NONBLOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_3:
	movq	_REDIS_OPT_REUSEADDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_REDIS_REUSEADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_5:
	movq	_REDIS_OPT_NOAUTOFREE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_REDIS_NO_AUTO_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movq	8(%rbx), %rax
	movq	_REDIS_CONN_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movl	44(%rbx), %esi
	movl	40(%rbx), %edx
	movq	16(%rbx), %rcx
	movl	36(%rbx), %r8d
	movq	%r14, %rdi
	callq	_redisContextConnectBindTcp
	jmp	LBB0_14
LBB0_10:
	movq	_REDIS_CONN_UNIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	32(%rbx), %esi
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	callq	_redisContextConnectUnix
	jmp	LBB0_14
LBB0_12:
	movq	_REDIS_CONN_USERFD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.13:
	movq	24(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	_REDIS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_14:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_19
## %bb.16:
	movq	8(%r14), %rcx
	movq	_REDIS_INVALID_FD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_19
## %bb.17:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_redisContextSetTimeout
	jmp	LBB0_19
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_OPT_NONBLOCK,4,2         ## @REDIS_OPT_NONBLOCK
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_REDIS_OPT_REUSEADDR,4,2        ## @REDIS_OPT_REUSEADDR
	.comm	_REDIS_REUSEADDR,4,2            ## @REDIS_REUSEADDR
	.comm	_REDIS_OPT_NOAUTOFREE,4,2       ## @REDIS_OPT_NOAUTOFREE
	.comm	_REDIS_NO_AUTO_FREE,4,2         ## @REDIS_NO_AUTO_FREE
	.comm	_REDIS_CONN_TCP,8,3             ## @REDIS_CONN_TCP
	.comm	_REDIS_CONN_UNIX,8,3            ## @REDIS_CONN_UNIX
	.comm	_REDIS_CONN_USERFD,8,3          ## @REDIS_CONN_USERFD
	.comm	_REDIS_CONNECTED,4,2            ## @REDIS_CONNECTED
	.comm	_REDIS_INVALID_FD,8,3           ## @REDIS_INVALID_FD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisConnectWithOptions        ; -- Begin function redisConnectWithOptions
	.p2align	2
_redisConnectWithOptions:               ; @redisConnectWithOptions
	.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	x20, x0
	bl	_redisContextInit
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _REDIS_OPT_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REDIS_OPT_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _REDIS_BLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REDIS_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_3:
Lloh6:
	adrp	x9, _REDIS_OPT_REUSEADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REDIS_OPT_REUSEADDR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _REDIS_REUSEADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REDIS_REUSEADDR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_5:
Lloh12:
	adrp	x9, _REDIS_OPT_NOAUTOFREE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REDIS_OPT_NOAUTOFREE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _REDIS_NO_AUTO_FREE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REDIS_NO_AUTO_FREE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _REDIS_CONN_TCP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _REDIS_CONN_TCP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldp	w2, w1, [x20, #40]
	ldr	x3, [x20, #16]
	ldr	w4, [x20, #36]
	mov	x0, x19
	bl	_redisContextConnectBindTcp
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_13
	b	LBB0_17
LBB0_9:
Lloh21:
	adrp	x9, _REDIS_CONN_UNIX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _REDIS_CONN_UNIX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w1, [x20, #32]
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_redisContextConnectUnix
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_13
	b	LBB0_17
LBB0_11:
Lloh24:
	adrp	x9, _REDIS_CONN_USERFD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _REDIS_CONN_USERFD@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	ldr	x8, [x20, #24]
	str	x8, [x19, #8]
Lloh27:
	adrp	x8, _REDIS_CONNECTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REDIS_CONNECTED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
LBB0_13:
	ldr	w9, [x19]
Lloh30:
	adrp	x10, _REDIS_BLOCK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _REDIS_BLOCK@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.14:
	ldr	x9, [x19, #8]
Lloh33:
	adrp	x10, _REDIS_INVALID_FD@GOTPAGE
Lloh34:
	ldr	x10, [x10, _REDIS_INVALID_FD@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_17
; %bb.15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_redisContextSetTimeout
	b	LBB0_17
LBB0_16:
	mov	x19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_OPT_NONBLOCK,4,2         ; @REDIS_OPT_NONBLOCK
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_REDIS_OPT_REUSEADDR,4,2        ; @REDIS_OPT_REUSEADDR
	.comm	_REDIS_REUSEADDR,4,2            ; @REDIS_REUSEADDR
	.comm	_REDIS_OPT_NOAUTOFREE,4,2       ; @REDIS_OPT_NOAUTOFREE
	.comm	_REDIS_NO_AUTO_FREE,4,2         ; @REDIS_NO_AUTO_FREE
	.comm	_REDIS_CONN_TCP,8,3             ; @REDIS_CONN_TCP
	.comm	_REDIS_CONN_UNIX,8,3            ; @REDIS_CONN_UNIX
	.comm	_REDIS_CONN_USERFD,8,3          ; @REDIS_CONN_USERFD
	.comm	_REDIS_CONNECTED,4,2            ; @REDIS_CONNECTED
	.comm	_REDIS_INVALID_FD,8,3           ; @REDIS_INVALID_FD
.subsections_via_symbols
