	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_write_pending             ## -- Begin function ssl3_write_pending
	.p2align	4, 0x90
_ssl3_write_pending:                    ## @ssl3_write_pending
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	%rcx, 8(%rdi)
	ja	LBB0_18
## %bb.1:
	movq	40(%r15), %rcx
	movq	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
LBB0_3:
	cmpl	%esi, 24(%r15)
	jne	LBB0_18
## %bb.4:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	(%rcx,%rax,4), %r12
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, %rsi
	callq	_SSL3_BUFFER_add_offset
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SSL3_BUFFER_sub_left
LBB0_6:                                 ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_SSL3_BUFFER_get_left
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movslq	28(%r15), %rax
	decq	%rax
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jb	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	callq	_clear_sys_error
	movq	56(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_SSL_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	%r12, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_SSL3_BUFFER_get_offset
	leaq	(%r14,%rax,4), %r14
	movq	%r12, %rdi
	callq	_SSL3_BUFFER_get_left
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_BIO_write
	movl	%eax, %ebx
	cltq
	testl	%ebx, %ebx
	cmovnsq	%rax, %r13
	jle	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	callq	_SSL3_BUFFER_get_left
	movq	%r12, %rdi
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_left
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SSL3_BUFFER_add_offset
	movslq	28(%r15), %rax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jb	LBB0_6
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	cmpq	%rdx, 16(%r15)
	je	LBB0_3
LBB0_18:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_WRITE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_WRITE_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_WRITE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BIO_NOT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_SSL_IS_DTLS
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_left
	jmp	LBB0_19
LBB0_17:
	movq	_SSL_NOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	32(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ## @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_WRITE_PENDING,4,2   ## @SSL_F_SSL3_WRITE_PENDING
	.comm	_SSL_R_BAD_WRITE_RETRY,4,2      ## @SSL_R_BAD_WRITE_RETRY
	.comm	_SSL_WRITING,4,2                ## @SSL_WRITING
	.comm	_SSL_R_BIO_NOT_SET,4,2          ## @SSL_R_BIO_NOT_SET
	.comm	_SSL_NOTHING,4,2                ## @SSL_NOTHING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_write_pending             ; -- Begin function ssl3_write_pending
	.p2align	2
_ssl3_write_pending:                    ; @ssl3_write_pending
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, x3
	b.hi	LBB0_14
; %bb.1:
	mov	x20, x4
	ldr	x25, [x19, #40]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_2:
	ldr	w8, [x19, #24]
	cmp	w8, w1
	b.ne	LBB0_14
; %bb.3:
	mov	x26, #0
	mov	x22, #0
Lloh3:
	adrp	x27, _SSL_WRITING@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SSL_WRITING@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x21, x25, x26, lsl #2
	add	x28, x26, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_SSL3_BUFFER_add_offset
	mov	x0, x21
	mov	x1, x22
	bl	_SSL3_BUFFER_sub_left
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_SSL3_BUFFER_get_left
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrsw	x8, [x19, #28]
	sub	x8, x8, #1
	cmp	x26, x8
	b.lo	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	bl	_clear_sys_error
	ldr	x23, [x19, #56]
	cbz	x23, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x27]
	str	w8, [x19, #48]
	mov	x0, x21
	bl	_SSL3_BUFFER_get_buf
	mov	x24, x0
	mov	x0, x21
	bl	_SSL3_BUFFER_get_offset
	add	x24, x24, x0, lsl #2
	mov	x0, x21
	bl	_SSL3_BUFFER_get_left
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_BIO_write
	mov	x23, x0
	sxtw	x8, w23
	cmp	w0, #0
	csel	x22, x22, x8, lt
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_SSL3_BUFFER_get_left
	cmp	x22, x0
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	w1, #0
	bl	_SSL3_BUFFER_set_left
	mov	x0, x21
	mov	x1, x22
	bl	_SSL3_BUFFER_add_offset
	ldrsw	x8, [x19, #28]
	cmp	x28, x8
	b.lo	LBB0_6
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x28
	b	LBB0_4
LBB0_13:
	ldr	x8, [x19, #16]
	cmp	x8, x2
	b.eq	LBB0_2
LBB0_14:
Lloh5:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _SSL_R_BAD_WRITE_RETRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_R_BAD_WRITE_RETRY@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w23, #-1
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh14:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _SSL_R_BIO_NOT_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_R_BIO_NOT_SET@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w23, #-1
LBB0_17:
	mov	x0, x19
	bl	_SSL_IS_DTLS
	cbz	x0, LBB0_15
; %bb.18:
	mov	x0, x21
	mov	w1, #0
	bl	_SSL3_BUFFER_set_left
	b	LBB0_15
LBB0_19:
Lloh23:
	adrp	x8, _SSL_NOTHING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_NOTHING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	x8, [x19, #32]
	str	x8, [x20]
	mov	w23, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ; @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_WRITE_PENDING,4,2   ; @SSL_F_SSL3_WRITE_PENDING
	.comm	_SSL_R_BAD_WRITE_RETRY,4,2      ; @SSL_R_BAD_WRITE_RETRY
	.comm	_SSL_WRITING,4,2                ; @SSL_WRITING
	.comm	_SSL_R_BIO_NOT_SET,4,2          ; @SSL_R_BIO_NOT_SET
	.comm	_SSL_NOTHING,4,2                ; @SSL_NOTHING
.subsections_via_symbols
