	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisAsyncHandleWrite          ## -- Begin function redisAsyncHandleWrite
	.p2align	4, 0x90
_redisAsyncHandleWrite:                 ## @redisAsyncHandleWrite
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	_REDIS_CONNECTED@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_redisBufferWrite
	movq	_REDIS_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	___redisAsyncDisconnect
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, %rdi
	callq	___redisAsyncHandleConnect
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
	jmp	LBB0_9
LBB0_5:
	cmpl	$0, -20(%rbp)
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	__EL_DEL_WRITE
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	__EL_ADD_WRITE
LBB0_8:
	movq	%rbx, %rdi
	callq	__EL_ADD_READ
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_CONNECTED,4,2            ## @REDIS_CONNECTED
	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
	.comm	_REDIS_ERR,8,3                  ## @REDIS_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisAsyncHandleWrite          ; -- Begin function redisAsyncHandleWrite
	.p2align	2
_redisAsyncHandleWrite:                 ; @redisAsyncHandleWrite
	.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
	str	wzr, [sp, #12]
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _REDIS_CONNECTED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REDIS_CONNECTED@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_redisBufferWrite
Lloh2:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	___redisAsyncDisconnect
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	___redisAsyncHandleConnect
Lloh5:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_1
	b	LBB0_9
LBB0_5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	__EL_DEL_WRITE
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	__EL_ADD_WRITE
LBB0_8:
	mov	x0, x19
	bl	__EL_ADD_READ
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_CONNECTED,4,2            ; @REDIS_CONNECTED
	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
	.comm	_REDIS_ERR,8,3                  ; @REDIS_ERR
.subsections_via_symbols
