	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_write_internal             ## -- Begin function ssl_write_internal
	.p2align	4, 0x90
_ssl_write_internal:                    ## @ssl_write_internal
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 48(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	_SSL_SENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	_SSL_NOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_SSL_F_SSL_WRITE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_PROTOCOL_IS_SHUTDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_SSL_F_SSL_WRITE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_UNINITIALIZED@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_SSLerr
	movl	$-1, %eax
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %r14
	movq	8(%rbx), %rax
	movq	_SSL_EARLY_DATA_CONNECT_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_SSL_EARLY_DATA_ACCEPT_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_SSL_EARLY_DATA_READ_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.9:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ossl_statem_check_finish_init
	movq	_SSL_MODE_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	callq	_ASYNC_get_current_job
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	movq	_SSL_F_SSL_WRITE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, -40(%rbp)
	movq	%r12, -48(%rbp)
	movq	%r15, -72(%rbp)
	movq	_WRITEFUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_ssl_io_intern@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ssl_start_async_job
	movq	24(%rbx), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_WRITE_INTERNAL,4,2   ## @SSL_F_SSL_WRITE_INTERNAL
	.comm	_SSL_R_UNINITIALIZED,4,2        ## @SSL_R_UNINITIALIZED
	.comm	_SSL_SENT_SHUTDOWN,4,2          ## @SSL_SENT_SHUTDOWN
	.comm	_SSL_NOTHING,4,2                ## @SSL_NOTHING
	.comm	_SSL_R_PROTOCOL_IS_SHUTDOWN,4,2 ## @SSL_R_PROTOCOL_IS_SHUTDOWN
	.comm	_SSL_EARLY_DATA_CONNECT_RETRY,8,3 ## @SSL_EARLY_DATA_CONNECT_RETRY
	.comm	_SSL_EARLY_DATA_ACCEPT_RETRY,8,3 ## @SSL_EARLY_DATA_ACCEPT_RETRY
	.comm	_SSL_EARLY_DATA_READ_RETRY,8,3  ## @SSL_EARLY_DATA_READ_RETRY
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ## @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
	.comm	_SSL_MODE_ASYNC,4,2             ## @SSL_MODE_ASYNC
	.comm	_WRITEFUNC,4,2                  ## @WRITEFUNC
	.comm	_ssl_io_intern,4,2              ## @ssl_io_intern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_write_internal             ; -- Begin function ssl_write_internal
	.p2align	2
_ssl_write_internal:                    ; @ssl_write_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SSL_SENT_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_SENT_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _SSL_NOTHING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_NOTHING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh6:
	adrp	x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SSL_R_PROTOCOL_IS_SHUTDOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_R_PROTOCOL_IS_SHUTDOWN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SSL_R_UNINITIALIZED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_R_UNINITIALIZED@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _SSL_EARLY_DATA_CONNECT_RETRY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSL_EARLY_DATA_CONNECT_RETRY@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _SSL_EARLY_DATA_ACCEPT_RETRY@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SSL_EARLY_DATA_ACCEPT_RETRY@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _SSL_EARLY_DATA_READ_RETRY@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SSL_EARLY_DATA_READ_RETRY@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_F_SSL_WRITE_INTERNAL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x0, x20
	mov	w1, #1
	bl	_ossl_statem_check_finish_init
	ldr	w8, [x20, #16]
Lloh31:
	adrp	x9, _SSL_MODE_ASYNC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SSL_MODE_ASYNC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_ASYNC_get_current_job
	cbz	x0, LBB0_11
LBB0_10:
	ldr	x8, [x20, #32]
	ldr	x4, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	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
	add	sp, sp, #96
	br	x4
LBB0_11:
	stp	x22, x20, [sp, #32]
	str	x21, [sp, #8]
Lloh34:
	adrp	x8, _WRITEFUNC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WRITEFUNC@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh37:
	adrp	x8, _ssl_io_intern@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ssl_io_intern@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ssl_start_async_job
	ldr	x8, [x20, #24]
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_WRITE_INTERNAL,4,2   ; @SSL_F_SSL_WRITE_INTERNAL
	.comm	_SSL_R_UNINITIALIZED,4,2        ; @SSL_R_UNINITIALIZED
	.comm	_SSL_SENT_SHUTDOWN,4,2          ; @SSL_SENT_SHUTDOWN
	.comm	_SSL_NOTHING,4,2                ; @SSL_NOTHING
	.comm	_SSL_R_PROTOCOL_IS_SHUTDOWN,4,2 ; @SSL_R_PROTOCOL_IS_SHUTDOWN
	.comm	_SSL_EARLY_DATA_CONNECT_RETRY,8,3 ; @SSL_EARLY_DATA_CONNECT_RETRY
	.comm	_SSL_EARLY_DATA_ACCEPT_RETRY,8,3 ; @SSL_EARLY_DATA_ACCEPT_RETRY
	.comm	_SSL_EARLY_DATA_READ_RETRY,8,3  ; @SSL_EARLY_DATA_READ_RETRY
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ; @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
	.comm	_SSL_MODE_ASYNC,4,2             ; @SSL_MODE_ASYNC
	.comm	_WRITEFUNC,4,2                  ; @WRITEFUNC
	.comm	_ssl_io_intern,4,2              ; @ssl_io_intern
.subsections_via_symbols
