	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_calc_swf_verification
_rtmp_calc_swf_verification:            ## @rtmp_calc_swf_verification
	.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
	cmpl	$32, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bytestream_put_byte
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bytestream_put_byte
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_bytestream_put_be32
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_bytestream_put_be32
	movl	4(%rbx), %edi
	movq	-32(%rbp), %r9
	movl	$32, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movl	$32, %r8d
	callq	_ff_rtmp_calc_digest
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hash of the decompressed SWF file is not 32 bytes long.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtmp_calc_swf_verification
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_calc_swf_verification
_rtmp_calc_swf_verification:            ; @rtmp_calc_swf_verification
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #32
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1, #16]
	str	x8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_byte
	ldr	w1, [x20, #8]
	add	x0, sp, #8
	bl	_bytestream_put_be32
	ldr	w1, [x20, #8]
	add	x0, sp, #8
	bl	_bytestream_put_be32
	ldr	w0, [x20, #4]
	ldr	x5, [sp, #8]
	mov	w1, #32
	mov	w2, #0
	mov	x3, x19
	mov	w4, #32
	bl	_ff_rtmp_calc_digest
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hash of the decompressed SWF file is not 32 bytes long.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtmp_calc_swf_verification
.subsections_via_symbols
