	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisSSLWrite
_redisSSLWrite:                         ## @redisSSLWrite
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_sdslen
	movq	%rax, %rbx
LBB0_2:
	movl	8(%r12), %edi
	movl	4(%r14), %esi
	movq	%rbx, %rdx
	callq	_SSL_write
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	$0, (%r12)
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_4:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:
	movq	%rbx, (%r12)
	movl	8(%r12), %edi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_maybeCheckWant
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___redisSetError
	movl	$-1, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.no_dead_strip	_redisSSLWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisSSLWrite
_redisSSLWrite:                         ; @redisSSLWrite
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x21, [x20]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_sdslen
	mov	x21, x0
LBB0_2:
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_SSL_write
	mov	x1, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	str	xzr, [x20]
	b	LBB0_8
LBB0_4:
	tbnz	w1, #31, LBB0_6
LBB0_5:
	mov	w1, #0
	b	LBB0_8
LBB0_6:
	str	x21, [x20]
	ldr	w0, [x20, #8]
	bl	_SSL_get_error
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _REDIS_BLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REDIS_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	___redisSetError
	mov	w1, #-1
LBB0_8:
	mov	x0, x1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x1, x0
	mov	x0, x20
	bl	_maybeCheckWant
	cbnz	x0, LBB0_5
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.no_dead_strip	_redisSSLWrite
.subsections_via_symbols
