	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_handshake_imprint_with_digest
_rtmp_handshake_imprint_with_digest:    ## @rtmp_handshake_imprint_with_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	$772, %esi                      ## imm = 0x304
	movl	$728, %edx                      ## imm = 0x2D8
	movl	$776, %ecx                      ## imm = 0x308
	jmp	LBB0_3
LBB0_2:
	movl	$8, %esi
	movl	$728, %edx                      ## imm = 0x2D8
	movl	$12, %ecx
LBB0_3:
	callq	_ff_rtmp_calc_digest_pos
	movq	_RTMP_HANDSHAKE_PACKET_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_rtmp_player_key@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PLAYER_KEY_OPEN_PART_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movslq	%eax, %rbx
	leaq	(%r14,%rbx,4), %r9
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ff_rtmp_calc_digest
	testl	%eax, %eax
	cmovnsl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_HANDSHAKE_PACKET_SIZE,4,2 ## @RTMP_HANDSHAKE_PACKET_SIZE
	.comm	_rtmp_player_key,4,2            ## @rtmp_player_key
	.comm	_PLAYER_KEY_OPEN_PART_LEN,4,2   ## @PLAYER_KEY_OPEN_PART_LEN
	.no_dead_strip	_rtmp_handshake_imprint_with_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_handshake_imprint_with_digest
_rtmp_handshake_imprint_with_digest:    ; @rtmp_handshake_imprint_with_digest
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	w1, #772
	mov	w2, #728
	mov	w3, #776
	b	LBB0_3
LBB0_2:
	mov	w1, #8
	mov	w2, #728
	mov	w3, #12
LBB0_3:
	bl	_ff_rtmp_calc_digest_pos
	mov	x20, x0
Lloh0:
	adrp	x8, _RTMP_HANDSHAKE_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTMP_HANDSHAKE_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _rtmp_player_key@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rtmp_player_key@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w3, [x9]
Lloh6:
	adrp	x8, _PLAYER_KEY_OPEN_PART_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLAYER_KEY_OPEN_PART_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x5, x19, w0, sxtw #2
	mov	x0, x19
	mov	x2, x20
	bl	_ff_rtmp_calc_digest
	cmp	w0, #0
	csel	w0, w0, w20, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_HANDSHAKE_PACKET_SIZE,4,2 ; @RTMP_HANDSHAKE_PACKET_SIZE
	.comm	_rtmp_player_key,4,2            ; @rtmp_player_key
	.comm	_PLAYER_KEY_OPEN_PART_LEN,4,2   ; @PLAYER_KEY_OPEN_PART_LEN
	.no_dead_strip	_rtmp_handshake_imprint_with_digest
.subsections_via_symbols
