	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_setup_read_buffer         ## -- Begin function ssl3_setup_read_buffer
	.p2align	4, 0x90
_ssl3_setup_read_buffer:                ## @ssl3_setup_read_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_RECORD_LAYER_get_rbuf
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_SSL_IS_DTLS
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
LBB0_4:
	movq	_SSL3_RT_MAX_PLAIN_LENGTH@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_SSL3_RT_MAX_ENCRYPTED_OVERHEAD@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_ssl_allow_compression
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	addq	%rax, %rbx
	movq	8(%r14), %rax
	cmpq	%rbx, %rax
	cmovaq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rsi
	movq	%rax, (%r14)
	movq	%rbx, 16(%r14)
LBB0_9:
	movq	%r15, %rdi
	callq	_RECORD_LAYER_set_packet
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SSL_AD_NO_ALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_SETUP_READ_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_RT_HEADER_LENGTH,8,3     ## @DTLS1_RT_HEADER_LENGTH
	.comm	_SSL3_RT_HEADER_LENGTH,4,2      ## @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,8,3   ## @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_SSL3_RT_MAX_ENCRYPTED_OVERHEAD,8,3 ## @SSL3_RT_MAX_ENCRYPTED_OVERHEAD
	.comm	_SSL3_RT_MAX_COMPRESSED_OVERHEAD,8,3 ## @SSL3_RT_MAX_COMPRESSED_OVERHEAD
	.comm	_SSL_AD_NO_ALERT,4,2            ## @SSL_AD_NO_ALERT
	.comm	_SSL_F_SSL3_SETUP_READ_BUFFER,4,2 ## @SSL_F_SSL3_SETUP_READ_BUFFER
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SSL3_ALIGN_PAYLOAD,4,2         ## @SSL3_ALIGN_PAYLOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_setup_read_buffer         ; -- Begin function ssl3_setup_read_buffer
	.p2align	2
_ssl3_setup_read_buffer:                ; @ssl3_setup_read_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_RECORD_LAYER_get_rbuf
	mov	x20, x0
	mov	x0, x19
	bl	_SSL_IS_DTLS
	ldr	x1, [x20]
	cbnz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SSL3_RT_HEADER_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_RT_HEADER_LENGTH@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x9, _DTLS1_RT_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DTLS1_RT_HEADER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, #0
	csel	x21, x8, x9, eq
Lloh6:
	adrp	x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
Lloh9:
	adrp	x8, _SSL3_RT_MAX_ENCRYPTED_OVERHEAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL3_RT_MAX_ENCRYPTED_OVERHEAD@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_ssl_allow_compression
Lloh12:
	adrp	x8, _SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	add	x9, x21, x22
	add	x9, x9, x23
	ldr	x10, [x20, #8]
	add	x8, x9, x8
	cmp	x10, x8
	csel	x21, x10, x8, hi
	mov	x0, x21
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	str	x0, [x20]
	str	x21, [x20, #16]
LBB0_3:
	mov	x0, x19
	bl	_RECORD_LAYER_set_packet
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh15:
	adrp	x8, _SSL_AD_NO_ALERT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_AD_NO_ALERT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SSL_F_SSL3_SETUP_READ_BUFFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_F_SSL3_SETUP_READ_BUFFER@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_RT_HEADER_LENGTH,8,3     ; @DTLS1_RT_HEADER_LENGTH
	.comm	_SSL3_RT_HEADER_LENGTH,4,2      ; @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,8,3   ; @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_SSL3_RT_MAX_ENCRYPTED_OVERHEAD,8,3 ; @SSL3_RT_MAX_ENCRYPTED_OVERHEAD
	.comm	_SSL3_RT_MAX_COMPRESSED_OVERHEAD,8,3 ; @SSL3_RT_MAX_COMPRESSED_OVERHEAD
	.comm	_SSL_AD_NO_ALERT,4,2            ; @SSL_AD_NO_ALERT
	.comm	_SSL_F_SSL3_SETUP_READ_BUFFER,4,2 ; @SSL_F_SSL3_SETUP_READ_BUFFER
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SSL3_ALIGN_PAYLOAD,4,2         ; @SSL3_ALIGN_PAYLOAD
.subsections_via_symbols
