	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtmpe_compute_secret_key    ## -- Begin function ff_rtmpe_compute_secret_key
	.p2align	4, 0x90
_ff_rtmpe_compute_secret_key:           ## @ff_rtmpe_compute_secret_key
	.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	$648, %rsp                      ## imm = 0x288
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movl	$1532, %esi                     ## imm = 0x5FC
	movl	$632, %edx                      ## imm = 0x278
	movl	$772, %ecx                      ## imm = 0x304
	jmp	LBB0_3
LBB0_2:
	movl	$768, %esi                      ## imm = 0x300
	movl	$632, %edx                      ## imm = 0x278
	movl	$8, %ecx
LBB0_3:
	callq	_ff_rtmp_calc_digest_pos
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	%r15, %rdi
	movl	$768, %esi                      ## imm = 0x300
	movl	$632, %edx                      ## imm = 0x278
	movl	$8, %ecx
	callq	_ff_rtmp_calc_digest_pos
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movl	8(%r14), %edi
	movl	%ebx, %eax
	leaq	(%r12,%rax,4), %r12
	leaq	-560(%rbp), %rcx
	movq	%r12, %rsi
	movl	$128, %edx
	movl	$512, %r8d                      ## imm = 0x200
	callq	_ff_dh_compute_shared_secret_key
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	leaq	-560(%rbp), %rcx
	leaq	-688(%rbp), %r9
	movq	%r12, %rdi
	movl	$128, %esi
	xorl	%edx, %edx
	movl	$128, %r8d
	callq	_ff_rtmp_calc_digest
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	leaq	4(%r14), %rdi
	leaq	-688(%rbp), %r12
	movq	%r12, %rsi
	movl	$128, %edx
	movl	$1, %ecx
	callq	_av_rc4_init
	movl	%r13d, %eax
	leaq	(%r15,%rax,4), %rdi
	xorl	%ebx, %ebx
	leaq	-560(%rbp), %rcx
	movl	$128, %esi
	xorl	%edx, %edx
	movl	$128, %r8d
	movq	%r12, %r9
	callq	_ff_rtmp_calc_digest
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:
	leaq	-688(%rbp), %rsi
	movq	%r14, %rdi
	movl	$128, %edx
	movl	$1, %ecx
	callq	_av_rc4_init
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_9:
	movl	%r13d, %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$648, %rsp                      ## imm = 0x288
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtmpe_compute_secret_key    ; -- Begin function ff_rtmpe_compute_secret_key
	.p2align	2
_ff_rtmpe_compute_secret_key:           ; @ff_rtmpe_compute_secret_key
	.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
	sub	sp, sp, #656
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0]
	mov	x0, x1
	cbz	w3, LBB0_2
; %bb.1:
	mov	w1, #1532
	mov	w2, #632
	mov	w3, #772
	b	LBB0_3
LBB0_2:
	mov	w1, #768
	mov	w2, #632
	mov	w3, #8
LBB0_3:
	bl	_ff_rtmp_calc_digest_pos
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	x0, x20
	mov	w1, #768
	mov	w2, #632
	mov	w3, #8
	bl	_ff_rtmp_calc_digest_pos
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w0, [x19, #8]
	add	x21, x21, w22, uxtw #2
	add	x3, sp, #136
	mov	x1, x21
	mov	w2, #128
	mov	w4, #512
	bl	_ff_dh_compute_shared_secret_key
	tbnz	w0, #31, LBB0_9
; %bb.6:
	add	x3, sp, #136
	add	x5, sp, #8
	mov	x0, x21
	mov	w1, #128
	mov	w2, #0
	mov	w4, #128
	bl	_ff_rtmp_calc_digest
	tbnz	w0, #31, LBB0_9
; %bb.7:
	add	x0, x19, #4
	add	x1, sp, #8
	mov	w2, #128
	mov	w3, #1
	bl	_av_rc4_init
	add	x0, x20, w23, uxtw #2
	add	x3, sp, #136
	add	x5, sp, #8
	mov	w1, #128
	mov	w2, #0
	mov	w4, #128
	bl	_ff_rtmp_calc_digest
	tbnz	w0, #31, LBB0_9
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #128
	mov	w3, #1
	bl	_av_rc4_init
	mov	w22, #0
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	x22, x23
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x22
	add	sp, sp, #656
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
