	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisContextConnectUnix        ## -- Begin function redisContextConnectUnix
	.p2align	4, 0x90
_redisContextConnectUnix:               ## @redisContextConnectUnix
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%rdi), %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	$-1, -48(%rbp)
	movq	_AF_LOCAL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_redisCreateSocket
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_redisSetBlocking
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_REDIS_CONN_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	cmpq	%r14, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 16(%rbx)
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%r15, %r15
	je	LBB0_10
## %bb.6:
	cmpq	%r15, %rdi
	je	LBB0_13
## %bb.7:
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.8:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rdi
	movq	%rax, 8(%rbx)
LBB0_9:
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_13
LBB0_10:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_free
LBB0_12:
	movq	$0, 8(%rbx)
LBB0_13:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_redisContextTimeoutMsec
	movq	_REDIS_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.14:
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_strncpy
	movl	4(%rbx), %edi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_18:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_redisSetBlocking
	cmpq	(%r15), %rax
	je	LBB0_20
	jmp	LBB0_1
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	testl	%r12d, %r12d
	jne	LBB0_17
LBB0_20:
	movq	_REDIS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movl	(%r15), %eax
	jmp	LBB0_21
LBB0_17:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_redisContextWaitReady
	cmpq	(%r15), %rax
	je	LBB0_18
LBB0_1:
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
	.comm	_REDIS_CONN_UNIX,4,2            ## @REDIS_CONN_UNIX
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_REDIS_CONNECTED,4,2            ## @REDIS_CONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisContextConnectUnix        ; -- Begin function redisContextConnectUnix
	.p2align	2
_redisContextConnectUnix:               ; @redisContextConnectUnix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _REDIS_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REDIS_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x8, #-1
	str	x8, [sp]
Lloh3:
	adrp	x25, _AF_LOCAL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AF_LOCAL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_redisCreateSocket
	tbnz	x0, #63, LBB0_20
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_redisSetBlocking
Lloh5:
	adrp	x22, _REDIS_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _REDIS_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.2:
Lloh7:
	adrp	x8, _REDIS_CONN_UNIX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REDIS_CONN_UNIX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_strdup
	str	x0, [x19, #16]
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x21, LBB0_9
; %bb.5:
	cmp	x0, x21
	b.eq	LBB0_12
; %bb.6:
	cbnz	x0, LBB0_8
; %bb.7:
	mov	w0, #4
	bl	_malloc
	str	x0, [x19, #8]
LBB0_8:
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	b	LBB0_12
LBB0_9:
	cbz	x0, LBB0_11
; %bb.10:
	bl	_free
LBB0_11:
	str	xzr, [x19, #8]
LBB0_12:
	mov	x1, sp
	mov	x0, x19
	bl	_redisContextTimeoutMsec
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.13:
	and	w21, w24, w23
	ldr	w8, [x25]
	str	w8, [sp, #12]
	mov	x1, x20
	mov	w2, #3
	bl	_strncpy
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	w2, #8
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_14:
	cbz	w21, LBB0_18
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	bl	_redisSetBlocking
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_18
	b	LBB0_20
LBB0_16:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	cbnz	w21, LBB0_19
LBB0_18:
Lloh16:
	adrp	x8, _REDIS_CONNECTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REDIS_CONNECTED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x22]
	b	LBB0_21
LBB0_19:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_redisContextWaitReady
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_14
LBB0_20:
Lloh19:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
	.comm	_REDIS_CONN_UNIX,4,2            ; @REDIS_CONN_UNIX
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_REDIS_CONNECTED,4,2            ; @REDIS_CONNECTED
.subsections_via_symbols
