	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_send_packet
_rtmp_send_packet:                      ## @rtmp_send_packet
	.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	$168, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movq	_RTMP_PT_INVOKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_5
## %bb.2:
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	leaq	-164(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	leaq	-160(%rbp), %rsi
	leaq	-180(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_ff_amf_read_string
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	leaq	-164(%rbp), %rdi
	leaq	-176(%rbp), %rsi
	callq	_ff_amf_read_number
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movsd	-176(%rbp), %xmm0               ## xmm0 = mem[0],zero
	leaq	-160(%rbp), %rsi
	movq	%r15, %rdi
	callq	_add_tracked_method
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	movl	20(%r15), %edi
	movl	16(%r15), %edx
	movq	(%r15), %r8
	movq	8(%r15), %rcx
	addq	$4, %rcx
	addq	$4, %r8
	movq	%r14, %rsi
	callq	_ff_rtmp_packet_write
LBB0_6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ff_rtmp_packet_destroy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_PT_INVOKE,8,3             ## @RTMP_PT_INVOKE
	.no_dead_strip	_rtmp_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_send_packet
_rtmp_send_packet:                      ; @rtmp_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	w2, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RTMP_PT_INVOKE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTMP_PT_INVOKE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldp	w2, w1, [x19, #8]
	add	x0, sp, #20
	bl	_bytestream2_init
	add	x0, sp, #20
	add	x1, sp, #24
	add	x3, sp, #4
	mov	w2, #128
	bl	_ff_amf_read_string
	tbnz	w0, #31, LBB0_6
; %bb.3:
	add	x0, sp, #20
	add	x1, sp, #8
	bl	_ff_amf_read_number
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	d0, [sp, #8]
	add	x1, sp, #24
	mov	x0, x20
	bl	_add_tracked_method
	tbnz	w0, #31, LBB0_6
LBB0_5:
	ldp	w2, w0, [x20, #16]
	ldp	x9, x8, [x20]
	add	x3, x8, #4
	add	x4, x9, #4
	mov	x1, x19
	bl	_ff_rtmp_packet_write
LBB0_6:
	mov	x21, x0
	mov	x0, x19
	bl	_ff_rtmp_packet_destroy
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_PT_INVOKE,8,3             ; @RTMP_PT_INVOKE
	.no_dead_strip	_rtmp_send_packet
.subsections_via_symbols
