	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisCreateSocket
_redisCreateSocket:                     ## @redisCreateSocket
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, (%r14)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_redisSetReuseAddr
	movq	_REDIS_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_4:
	movq	_REDIS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___redisSetErrorFromErrno
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_REDIS_OK,4,2                   ## @REDIS_OK
	.no_dead_strip	_redisCreateSocket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisCreateSocket
_redisCreateSocket:                     ; @redisCreateSocket
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	str	w0, [x19]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_redisSetReuseAddr
Lloh6:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	___redisSetErrorFromErrno
Lloh14:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_REDIS_OK,4,2                   ; @REDIS_OK
	.no_dead_strip	_redisCreateSocket
.subsections_via_symbols
