	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rc4_hmac_md5_ctrl
LCPI0_0:
	.space	16,54
LCPI0_1:
	.space	16,106
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rc4_hmac_md5_ctrl:                     ## @rc4_hmac_md5_ctrl
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_data
	movq	%rax, %r15
	movl	$-1, %r12d
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_12
## %bb.2:
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	cmpl	$65, %r14d
	jl	LBB0_4
## %bb.3:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_MD5_Init
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_MD5_Update
	leaq	-112(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_MD5_Final
	jmp	LBB0_5
LBB0_6:
	movq	_EVP_AEAD_TLS1_AAD_LEN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.7:
	movslq	%r14d, %rcx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movzwl	-2(%rcx,%rax), %eax
	rolw	$8, %ax
	movzwl	%ax, %ebx
	movq	%r13, %rdi
	callq	_EVP_CIPHER_CTX_encrypting
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%ebx, %ecx
	jmp	LBB0_11
LBB0_4:
	leaq	-112(%rbp), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
LBB0_5:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54]
	movaps	-112(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -112(%rbp)
	movaps	-96(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -96(%rbp)
	movaps	-80(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -80(%rbp)
	xorps	-64(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_MD5_Init
	leaq	-112(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_MD5_Update
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106]
	movaps	-112(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -112(%rbp)
	movaps	-96(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -96(%rbp)
	movaps	-80(%rbp), %xmm1
	xorps	%xmm0, %xmm1
	movaps	%xmm1, -80(%rbp)
	xorps	-64(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_MD5_Init
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_MD5_Update
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_OPENSSL_cleanse
	movl	$1, %r12d
	jmp	LBB0_12
LBB0_9:
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	_MD5_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jb	LBB0_12
## %bb.10:
	movl	%ebx, %ecx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rdx, %rbx
	movb	%ch, -2(%rax,%rdx)
	movb	%cl, -1(%rax,%rdx)
LBB0_11:
	movl	%ecx, (%r15)
	movl	8(%r15), %eax
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	%eax, 4(%r15)
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_MD5_Update
	movq	_MD5_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_AEAD_TLS1_AAD_LEN,4,2      ## @EVP_AEAD_TLS1_AAD_LEN
	.comm	_MD5_DIGEST_LENGTH,4,2          ## @MD5_DIGEST_LENGTH
	.no_dead_strip	_rc4_hmac_md5_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rc4_hmac_md5_ctrl
_rc4_hmac_md5_ctrl:                     ; @rc4_hmac_md5_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_data
	mov	x19, x0
	cmp	w23, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_7
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	cmp	w20, #65
	b.lt	LBB0_8
; %bb.3:
	add	x22, x19, #8
	mov	x0, x22
	bl	_MD5_Init
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_MD5_Update
	mov	x0, sp
	mov	x1, x22
	bl	_MD5_Final
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _EVP_AEAD_TLS1_AAD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_AEAD_TLS1_AAD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.5:
	sxtw	x24, w20
	sub	x25, x24, #2
	ldrh	w8, [x21, x25]
	rev16	w23, w8
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_encrypting
Lloh6:
	adrp	x22, _MD5_DIGEST_LENGTH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MD5_DIGEST_LENGTH@GOTPAGEOFF]
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w8, [x22]
	subs	w23, w23, w8
	b.hs	LBB0_10
LBB0_7:
	mov	w0, #-1
	b	LBB0_12
LBB0_8:
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
LBB0_9:
	movi.16b	v0, #54
	ldp	q1, q2, [sp]
	eor.16b	v1, v1, v0
	eor.16b	v2, v2, v0
	stp	q1, q2, [sp]
	ldp	q1, q2, [sp, #32]
	eor.16b	v1, v1, v0
	eor.16b	v0, v2, v0
	stp	q1, q0, [sp, #32]
	add	x20, x19, #8
	mov	x0, x20
	bl	_MD5_Init
	mov	x1, sp
	mov	x0, x20
	mov	w2, #64
	bl	_MD5_Update
	movi.16b	v0, #106
	ldp	q1, q2, [sp]
	eor.16b	v1, v1, v0
	eor.16b	v2, v2, v0
	stp	q1, q2, [sp]
	ldp	q1, q2, [sp, #32]
	eor.16b	v1, v1, v0
	eor.16b	v0, v2, v0
	stp	q1, q0, [sp, #32]
	add	x19, x19, #12
	mov	x0, x19
	bl	_MD5_Init
	mov	x1, sp
	mov	x0, x19
	mov	w2, #64
	bl	_MD5_Update
	mov	x0, sp
	mov	w1, #64
	bl	_OPENSSL_cleanse
	mov	w0, #1
	b	LBB0_12
LBB0_10:
	lsr	w8, w23, #8
	sub	x9, x24, #1
	strb	w8, [x21, x25]
	strb	w23, [x21, x9]
LBB0_11:
	str	w23, [x19]
	ldr	w8, [x19, #8]
	str	w8, [x19, #4]!
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_MD5_Update
	ldr	w0, [x22]
LBB0_12:
	ldr	x8, [sp, #72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_AEAD_TLS1_AAD_LEN,4,2      ; @EVP_AEAD_TLS1_AAD_LEN
	.comm	_MD5_DIGEST_LENGTH,4,2          ; @MD5_DIGEST_LENGTH
	.no_dead_strip	_rc4_hmac_md5_ctrl
.subsections_via_symbols
