	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls1_prf_alg
_tls1_prf_alg:                          ## @tls1_prf_alg
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_EVP_MD_type
	movq	_NID_md5_sha1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rbx
	xorl	%eax, %eax
	callq	_EVP_md5
	movq	%r13, %r12
	shrq	%r12
	andl	$1, %r13d
	addq	%r12, %r13
	movq	16(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%rax, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_tls1_prf_P_hash
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	16(%rbp), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_sha1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%r12, %rsi
	movq	16(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	_tls1_prf_P_hash
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.5:
	cmpq	$8, %rsi
	jb	LBB0_6
## %bb.11:
	leaq	(%r15,%rsi), %rax
	cmpq	%r14, %rax
	jbe	LBB0_14
## %bb.12:
	leaq	(%r14,%rsi), %rax
	cmpq	%rax, %r15
	jae	LBB0_14
LBB0_6:
	xorl	%eax, %eax
LBB0_27:
	movq	%rax, %rcx
	notq	%rcx
	addq	%rsi, %rcx
	movq	%rsi, %rdx
	andq	$3, %rdx
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %ebx
	xorb	%bl, (%r14,%rax)
	incq	%rax
	decq	%rdx
	jne	LBB0_28
LBB0_29:
	cmpq	$3, %rcx
	jb	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %ecx
	xorb	%cl, (%r14,%rax)
	movzbl	1(%r15,%rax), %ecx
	xorb	%cl, 1(%r14,%rax)
	movzbl	2(%r15,%rax), %ecx
	xorb	%cl, 2(%r14,%rax)
	movzbl	3(%r15,%rax), %ecx
	xorb	%cl, 3(%r14,%rax)
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	LBB0_30
LBB0_31:
	movq	%r15, %rdi
	callq	_OPENSSL_clear_free
	movl	$1, %ebx
	jmp	LBB0_32
LBB0_7:
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_tls1_prf_P_hash
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_32
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_9:
	movq	_KDF_F_TLS1_PRF_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_KDFerr
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_10:
	movq	%r15, %rdi
	movq	16(%rbp), %rsi
	callq	_OPENSSL_clear_free
LBB0_32:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpq	$32, %rsi
	jae	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_16:
	movq	%rsi, %rax
	andq	$-32, %rax
	leaq	-32(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$5, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.17:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	xorl	%ecx, %ecx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rcx), %xmm0
	movups	16(%r15,%rcx), %xmm1
	movups	(%r14,%rcx), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r14,%rcx), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%r14,%rcx), %xmm1
	movups	48(%r14,%rcx), %xmm3
	movups	%xmm2, (%r14,%rcx)
	movups	%xmm0, 16(%r14,%rcx)
	movups	32(%r15,%rcx), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%r15,%rcx), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%r14,%rcx)
	movups	%xmm1, 48(%r14,%rcx)
	addq	$64, %rcx
	addq	$-2, %rdi
	jne	LBB0_18
	jmp	LBB0_20
LBB0_19:
	xorl	%ecx, %ecx
LBB0_20:
	testb	$1, %dl
	je	LBB0_22
## %bb.21:
	movups	(%r15,%rcx), %xmm0
	movups	16(%r15,%rcx), %xmm1
	movups	(%r14,%rcx), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r14,%rcx), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r14,%rcx)
	movups	%xmm0, 16(%r14,%rcx)
LBB0_22:
	cmpq	%rsi, %rax
	je	LBB0_31
## %bb.23:
	testb	$24, %sil
	je	LBB0_27
LBB0_24:
	movq	%rax, %rcx
	movq	%rsi, %rax
	andq	$-8, %rax
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx), %rdx
	xorq	%rdx, (%r14,%rcx)
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_25
## %bb.26:
	cmpq	%rsi, %rax
	je	LBB0_31
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_md5_sha1,8,3               ## @NID_md5_sha1
	.comm	_KDF_F_TLS1_PRF_ALG,4,2         ## @KDF_F_TLS1_PRF_ALG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_tls1_prf_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls1_prf_alg
_tls1_prf_alg:                          ; @tls1_prf_alg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
	bl	_EVP_MD_type
Lloh0:
	adrp	x8, _NID_md5_sha1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_md5_sha1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
	bl	_EVP_md5
	lsr	x26, x21, #1
	and	x8, x21, #0x1
	add	x25, x26, x8
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	_tls1_prf_P_hash
	cbz	w0, LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x21, x0
	bl	_EVP_sha1
	add	x1, x24, x26
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x19
	bl	_tls1_prf_P_hash
	cbz	w0, LBB0_15
; %bb.4:
	cbz	x19, LBB0_11
; %bb.5:
	cmp	x19, #8
	b.lo	LBB0_8
; %bb.6:
	add	x8, x21, x19
	cmp	x8, x20
	b.ls	LBB0_16
; %bb.7:
	add	x8, x20, x19
	cmp	x21, x8
	b.hs	LBB0_16
LBB0_8:
	mov	x8, #0
LBB0_9:
	sub	x9, x19, x8
	add	x10, x20, x8
	add	x8, x21, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #1
	ldrb	w12, [x10]
	eor	w11, w12, w11
	strb	w11, [x10], #1
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	bl	_OPENSSL_clear_free
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	_tls1_prf_P_hash
	cmp	w0, #0
	cset	w0, ne
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh3:
	adrp	x8, _KDF_F_TLS1_PRF_ALG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KDF_F_TLS1_PRF_ALG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_KDFerr
	mov	w0, #0
	b	LBB0_13
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	bl	_OPENSSL_clear_free
	mov	w0, #0
	b	LBB0_13
LBB0_16:
	cmp	x19, #64
	b.hs	LBB0_18
; %bb.17:
	mov	x8, #0
	b	LBB0_22
LBB0_18:
	and	x8, x19, #0xffffffffffffffc0
	add	x9, x21, #32
	add	x10, x20, #32
	mov	x11, x8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x11, x11, #64
	b.ne	LBB0_19
; %bb.20:
	cmp	x8, x19
	b.eq	LBB0_11
; %bb.21:
	tst	x19, #0x38
	b.eq	LBB0_9
LBB0_22:
	mov	x11, x8
	and	x8, x19, #0xfffffffffffffff8
	add	x9, x21, x11
	add	x10, x20, x11
	sub	x11, x11, x8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	ldr	d1, [x10]
	eor.8b	v0, v1, v0
	str	d0, [x10], #8
	adds	x11, x11, #8
	b.ne	LBB0_23
; %bb.24:
	cmp	x8, x19
	b.eq	LBB0_11
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_md5_sha1,8,3               ; @NID_md5_sha1
	.comm	_KDF_F_TLS1_PRF_ALG,4,2         ; @KDF_F_TLS1_PRF_ALG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_tls1_prf_alg
.subsections_via_symbols
