	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisBufferRead                ## -- Begin function redisBufferRead
	.p2align	4, 0x90
_redisBufferRead:                       ## @redisBufferRead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	movl	$16392, %eax                    ## imm = 0x4008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
LBB0_1:
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16392, %rsp                    ## imm = 0x4008
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	leaq	-16400(%rbp), %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	leaq	-16400(%rbp), %rsi
	movl	%eax, %edx
	callq	_redisReaderFeed
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	___redisSetError
	jmp	LBB0_1
LBB0_5:
	js	LBB0_1
## %bb.6:
	movq	_REDIS_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisBufferRead                ; -- Begin function redisBufferRead
	.p2align	2
_redisBufferRead:                       ; @redisBufferRead
	.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	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
LBB0_1:
Lloh5:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	w2, #16384
	blr	x8
	mov	x2, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_redisReaderFeed
Lloh11:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.6:
	ldr	x8, [x19]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	___redisSetError
	b	LBB0_1
LBB0_7:
	tbnz	w2, #31, LBB0_1
; %bb.8:
Lloh14:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_2
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
.subsections_via_symbols
