	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_read_internal              ## -- Begin function ssl_read_internal
	.p2align	4, 0x90
_ssl_read_internal:                     ## @ssl_read_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.2:
	movq	%rdi, %rbx
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	_SSL_NOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_SSL_F_SSL_READ_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_UNINITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_4:
	movq	%rcx, %r14
	movq	8(%rbx), %rax
	movq	_SSL_EARLY_DATA_CONNECT_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_SSL_EARLY_DATA_ACCEPT_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ossl_statem_check_finish_init
	movq	_SSL_MODE_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_ASYNC_get_current_job
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	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_6:
	movq	_SSL_F_SSL_READ_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_10
LBB0_9:
	movq	%rbx, -40(%rbp)
	movq	%r12, -48(%rbp)
	movq	%r15, -72(%rbp)
	movq	_READFUNC@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)
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_READ_INTERNAL,4,2    ## @SSL_F_SSL_READ_INTERNAL
	.comm	_SSL_R_UNINITIALIZED,4,2        ## @SSL_R_UNINITIALIZED
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ## @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL_NOTHING,4,2                ## @SSL_NOTHING
	.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	_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	_READFUNC,4,2                   ## @READFUNC
	.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_read_internal              ; -- Begin function ssl_read_internal
	.p2align	2
_ssl_read_internal:                     ; @ssl_read_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_RECEIVED_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
Lloh3:
	adrp	x8, _SSL_NOTHING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_NOTHING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _SSL_F_SSL_READ_INTERNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_READ_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SSL_R_UNINITIALIZED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_R_UNINITIALIZED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _SSL_EARLY_DATA_CONNECT_RETRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SSL_EARLY_DATA_CONNECT_RETRY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _SSL_EARLY_DATA_ACCEPT_RETRY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SSL_EARLY_DATA_ACCEPT_RETRY@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _SSL_F_SSL_READ_INTERNAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_F_SSL_READ_INTERNAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
LBB0_6:
	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_7:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x0, x20
	mov	w1, #0
	bl	_ossl_statem_check_finish_init
	ldr	w8, [x20, #16]
Lloh24:
	adrp	x9, _SSL_MODE_ASYNC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SSL_MODE_ASYNC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	bl	_ASYNC_get_current_job
	cbz	x0, LBB0_10
LBB0_9:
	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_10:
	stp	x22, x20, [sp, #32]
	str	x21, [sp, #8]
Lloh27:
	adrp	x8, _READFUNC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _READFUNC@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh30:
	adrp	x8, _ssl_io_intern@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ssl_io_intern@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ssl_start_async_job
	ldr	x8, [x20, #24]
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_READ_INTERNAL,4,2    ; @SSL_F_SSL_READ_INTERNAL
	.comm	_SSL_R_UNINITIALIZED,4,2        ; @SSL_R_UNINITIALIZED
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ; @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL_NOTHING,4,2                ; @SSL_NOTHING
	.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	_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	_READFUNC,4,2                   ; @READFUNC
	.comm	_ssl_io_intern,4,2              ; @ssl_io_intern
.subsections_via_symbols
