	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_auth                ## -- Begin function redis_sock_auth
	.p2align	4, 0x90
_redis_sock_auth:                       ## @redis_sock_auth
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_ZSTR_VAL
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_ZSTR_LEN
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %r9d
	callq	_redis_spprintf
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_redis_sock_write
	movq	%rax, %r15
	movq	-32(%rbp), %rdi
	callq	_efree
	movl	$-1, %r14d
	testq	%r15, %r15
	js	LBB0_3
## %bb.1:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_redis_sock_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movl	$3, %edx
	callq	_strncmp
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_efree
	xorl	%r14d, %r14d
	negq	%r15
	sbbl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUTH"

L_.str.1:                               ## @.str.1
	.asciz	"s"

L_.str.2:                               ## @.str.2
	.asciz	"+OK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_auth                ; -- Begin function redis_sock_auth
	.p2align	2
_redis_sock_auth:                       ; @redis_sock_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_ZSTR_VAL
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ZSTR_LEN
	mov	x6, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x5, x20
	bl	_redis_spprintf
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_redis_sock_write
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_efree
	tbnz	x20, #63, LBB0_3
; %bb.1:
	add	x1, sp, #4
	mov	x0, x19
	bl	_redis_sock_read
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	mov	x20, x0
	mov	x0, x19
	bl	_efree
	cmp	x20, #0
	csetm	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUTH"

l_.str.1:                               ; @.str.1
	.asciz	"s"

l_.str.2:                               ; @.str.2
	.asciz	"+OK"

.subsections_via_symbols
