	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_validate_digest
_rtmp_validate_digest:                  ## @rtmp_validate_digest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leal	4(%rsi), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$728, %edx                      ## imm = 0x2D8
	callq	_ff_rtmp_calc_digest_pos
	movl	%eax, %r14d
	movq	_RTMP_HANDSHAKE_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rtmp_server_key@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SERVER_KEY_OPEN_PART_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-160(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ff_rtmp_calc_digest
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rsi
	leaq	-160(%rbp), %rdi
	movl	$32, %edx
	callq	_memcmp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovel	%r14d, %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_HANDSHAKE_PACKET_SIZE,4,2 ## @RTMP_HANDSHAKE_PACKET_SIZE
	.comm	_rtmp_server_key,4,2            ## @rtmp_server_key
	.comm	_SERVER_KEY_OPEN_PART_LEN,4,2   ## @SERVER_KEY_OPEN_PART_LEN
	.no_dead_strip	_rtmp_validate_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_validate_digest
_rtmp_validate_digest:                  ; @rtmp_validate_digest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	w3, w1, #4
	mov	w2, #728
	bl	_ff_rtmp_calc_digest_pos
	mov	x20, x0
Lloh3:
	adrp	x8, _RTMP_HANDSHAKE_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTMP_HANDSHAKE_PACKET_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _rtmp_server_key@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rtmp_server_key@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _SERVER_KEY_OPEN_PART_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SERVER_KEY_OPEN_PART_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_ff_rtmp_calc_digest
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	x1, x19, w20, sxtw #2
	add	x0, sp, #8
	mov	w2, #32
	bl	_memcmp
	cmp	w0, #0
	csel	w0, w20, wzr, eq
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_HANDSHAKE_PACKET_SIZE,4,2 ; @RTMP_HANDSHAKE_PACKET_SIZE
	.comm	_rtmp_server_key,4,2            ; @rtmp_server_key
	.comm	_SERVER_KEY_OPEN_PART_LEN,4,2   ; @SERVER_KEY_OPEN_PART_LEN
	.no_dead_strip	_rtmp_validate_digest
.subsections_via_symbols
