	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_pong
_gen_pong:                              ## @gen_pong
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %ecx
	cmpl	$5, %ecx
	jg	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_RTMP_NETWORK_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTMP_PT_USER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rcx
	incq	%rcx
	leaq	-56(%rbp), %rdi
	movl	$6, %r8d
	callq	_ff_rtmp_packet_create
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_bytestream_put_be16
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_AV_RB32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bytestream_put_be32
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtmp_send_packet
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too short ping packet (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_RTMP_NETWORK_CHANNEL,4,2       ## @RTMP_NETWORK_CHANNEL
	.comm	_RTMP_PT_USER_CONTROL,4,2       ## @RTMP_PT_USER_CONTROL
	.no_dead_strip	_gen_pong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_pong
_gen_pong:                              ; @gen_pong
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w3, [x2]
	cmp	w3, #5
	b.gt	LBB0_2
; %bb.1:
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, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	mov	x20, x2
	mov	x19, x1
Lloh8:
	adrp	x8, _RTMP_NETWORK_CHANNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTMP_NETWORK_CHANNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _RTMP_PT_USER_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTMP_PT_USER_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	x8, [x20, #16]
	add	x3, x8, #1
	add	x0, sp, #8
	mov	w4, #6
	bl	_ff_rtmp_packet_create
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x8, [sp, #16]
	str	x8, [sp]
	mov	x0, sp
	mov	w1, #7
	bl	_bytestream_put_be16
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	bl	_AV_RB32
	mov	x1, x0
	mov	x0, sp
	bl	_bytestream_put_be32
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_rtmp_send_packet
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too short ping packet (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_RTMP_NETWORK_CHANNEL,4,2       ; @RTMP_NETWORK_CHANNEL
	.comm	_RTMP_PT_USER_CONTROL,4,2       ; @RTMP_PT_USER_CONTROL
	.no_dead_strip	_gen_pong
.subsections_via_symbols
