	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpq	%rcx, 8(%rdi)
	ja	LBB0_26
## %bb.1:
	movl	%esi, %r15d
	movq	40(%r13), %rcx
	movq	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_2
LBB0_3:
	cmpl	%r15d, 24(%r13)
	jne	LBB0_26
## %bb.4:
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	(%rcx,%rax,4), %rbx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rsi
	callq	_SSL3_BUFFER_add_offset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SSL3_BUFFER_sub_left
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_6:                                 ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_left
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movslq	28(%r13), %rax
	decq	%rax
	cmpq	%rax, -96(%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(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_SSL_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	callq	_BIO_get_ktls_send
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_SSL3_RT_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	56(%r13), %rdi
	callq	_BIO_flush
	testl	%eax, %eax
	jle	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	56(%r13), %rdi
	callq	_BIO_get_ktls_send
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_SSL3_RT_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	56(%r13), %rdi
	movl	%r15d, %esi
	callq	_BIO_set_ktls_ctrl_msg
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	56(%r13), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_offset
	leaq	(%r15,%rax,4), %r15
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_left
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_BIO_write
	movl	%eax, %r14d
	cltq
	testl	%r14d, %r14d
	cmovnsq	%rax, %r12
	jle	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_left
	movq	%rbx, %rdi
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_left
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SSL3_BUFFER_add_offset
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movslq	28(%r13), %rax
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jb	LBB0_6
	jmp	LBB0_22
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	cmpq	%rdx, 16(%r13)
	je	LBB0_3
LBB0_26:
	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	%r13, %rdi
	callq	_SSLfatal
	movl	$-1, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	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	%r13, %rdi
	callq	_SSLfatal
	movl	$-1, %r14d
	jmp	LBB0_24
LBB0_19:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_24:
	movq	%r13, %rdi
	callq	_SSL_IS_DTLS
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_left
	jmp	LBB0_27
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_27
LBB0_22:
	movq	_SSL_NOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	32(%r13), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %r14d
	jmp	LBB0_27
	.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	_SSL3_RT_APPLICATION_DATA,4,2   ## @SSL3_RT_APPLICATION_DATA
	.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_20
; %bb.1:
	mov	x21, x1
	ldr	x10, [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_19
LBB0_2:
	ldr	w8, [x19, #24]
	cmp	w8, w21
	b.ne	LBB0_20
; %bb.3:
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x27, #0
	mov	x23, #0
Lloh3:
	adrp	x28, _SSL_WRITING@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SSL_WRITING@GOTPAGEOFF]
Lloh5:
	adrp	x26, _SSL3_RT_APPLICATION_DATA@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SSL3_RT_APPLICATION_DATA@GOTPAGEOFF]
	str	x10, [sp]                       ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x22, x10, x27, lsl #2
	add	x20, x27, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	mov	x1, x23
	bl	_SSL3_BUFFER_add_offset
	mov	x0, x22
	mov	x1, x23
	bl	_SSL3_BUFFER_sub_left
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	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	x27, x8
	b.lo	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	bl	_clear_sys_error
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x28]
	str	w8, [x19, #48]
	bl	_BIO_get_ktls_send
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x26]
	cmp	w8, w21
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [x19, #56]
	bl	_BIO_flush
	cmp	w0, #1
	b.lt	LBB0_25
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [x19, #56]
	bl	_BIO_get_ktls_send
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x26]
	cmp	w8, w21
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x0, [x19, #56]
	mov	x1, x21
	bl	_BIO_set_ktls_ctrl_msg
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x24, [x19, #56]
	mov	x0, x22
	bl	_SSL3_BUFFER_get_buf
	mov	x25, x0
	mov	x0, x22
	bl	_SSL3_BUFFER_get_offset
	add	x25, x25, x0, lsl #2
	mov	x0, x22
	bl	_SSL3_BUFFER_get_left
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_BIO_write
	mov	x24, x0
	sxtw	x8, w24
	cmp	w0, #0
	csel	x23, x23, x8, lt
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	bl	_SSL3_BUFFER_get_left
	cmp	x23, x0
	b.ne	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	mov	w1, #0
	bl	_SSL3_BUFFER_set_left
	mov	x0, x22
	mov	x1, x23
	bl	_SSL3_BUFFER_add_offset
	ldrsw	x8, [x19, #28]
	cmp	x20, x8
	b.lo	LBB0_6
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x20
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	b	LBB0_4
LBB0_19:
	ldr	x8, [x19, #16]
	cmp	x8, x2
	b.eq	LBB0_2
LBB0_20:
Lloh7:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _SSL_R_BAD_WRITE_RETRY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_R_BAD_WRITE_RETRY@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w24, #-1
LBB0_21:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
Lloh16:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_F_SSL3_WRITE_PENDING@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _SSL_R_BIO_NOT_SET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_R_BIO_NOT_SET@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w24, #-1
LBB0_23:
	mov	x0, x19
	bl	_SSL_IS_DTLS
	cbz	x0, LBB0_21
; %bb.24:
	mov	x0, x22
	mov	w1, #0
	bl	_SSL3_BUFFER_set_left
	b	LBB0_21
LBB0_25:
	mov	x24, x0
	b	LBB0_21
LBB0_26:
Lloh25:
	adrp	x8, _SSL_NOTHING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_NOTHING@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	x8, [x19, #32]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
	mov	w24, #1
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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	_SSL3_RT_APPLICATION_DATA,4,2   ; @SSL3_RT_APPLICATION_DATA
	.comm	_SSL_R_BIO_NOT_SET,4,2          ; @SSL_R_BIO_NOT_SET
	.comm	_SSL_NOTHING,4,2                ; @SSL_NOTHING
.subsections_via_symbols
