	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisCheckSocketError          ## -- Begin function redisCheckSocketError
	.p2align	4, 0x90
_redisCheckSocketError:                 ## @redisCheckSocketError
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movl	$4, -32(%rbp)
	movl	(%rdi), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r15d, -28(%rbp)
	movl	%r15d, %eax
	testl	%r15d, %r15d
	je	LBB0_4
LBB0_5:
	movl	%eax, (%r14)
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdx
LBB0_6:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___redisSetErrorFromErrno
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_REDIS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsockopt(SO_ERROR)"

	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_REDIS_OK,4,2                   ## @REDIS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisCheckSocketError          ; -- Begin function redisCheckSocketError
	.p2align	2
_redisCheckSocketError:                 ; @redisCheckSocketError
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	w0, [x0]
Lloh2:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	str	w21, [sp, #12]
	mov	x8, x21
	cbz	w21, LBB0_7
LBB0_3:
	mov	x2, #0
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
Lloh10:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___redisSetErrorFromErrno
Lloh13:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh15:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsockopt(SO_ERROR)"

	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_REDIS_OK,4,2                   ; @REDIS_OK
.subsections_via_symbols
