	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtp_write
_rtp_write:                             ## @rtp_write
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edx
	jg	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	$192, %eax
	andl	(%rsi), %eax
	movq	_RTP_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$6, %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_4:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.5:
	cmpl	$0, 44(%rbx)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, 36(%rbx)
	je	LBB0_15
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	44(%rbx), %r14
	movl	4(%r15), %edi
	callq	_RTP_PT_IS_RTCP
	leaq	36(%rbx), %r12
	leaq	32(%rbx), %rsi
	leaq	40(%rbx), %rdx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	%r14, %rax
	cmoveq	%r14, %r12
	movq	%rsi, %r14
	cmoveq	%rdx, %r14
	sete	%cl
	movl	(%rbx,%rcx,4), %edi
	cmpl	$0, (%r12)
	jne	LBB0_18
## %bb.8:
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	%rdx, %r12
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	callq	_RTP_PT_IS_RTCP
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_10:
	movl	4(%r15), %edi
	callq	_RTP_PT_IS_RTCP
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	16(%rbx,%rcx,8), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_ffurl_write
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_24
## %bb.11:
	cmpq	$0, 8(%rbx)
	je	LBB0_24
## %bb.12:
	movl	4(%r15), %edi
	callq	_RTP_PT_IS_RTCP
	testq	%rax, %rax
	jne	LBB0_24
## %bb.13:
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_ffurl_write
	testl	%eax, %eax
	jns	LBB0_24
## %bb.14:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movl	%r15d, %r12d
	jmp	LBB0_24
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_23
LBB0_16:
	movl	36(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	$-1, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_get_port
	addq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_set_port
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_av_log
	leaq	-64(%rbp), %r14
	movl	-60(%rbp), %edi                 ## 4-byte Reload
LBB0_18:
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.19:
	movl	%edi, %ebx
	movl	$1, %esi
	callq	_ff_network_wait_fd
	movl	%ebx, %edi
	testl	%eax, %eax
	js	LBB0_22
LBB0_20:
	movl	(%r14), %r9d
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_sendto
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_23
## %bb.21:
	xorl	%eax, %eax
	callq	_ff_neterrno
LBB0_22:
	movl	%eax, %r13d
LBB0_23:
	movl	%r13d, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTP_VERSION,4,2                ## @RTP_VERSION
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data doesn't look like RTP packets, make sure the RTP muxer is used\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to send packet to source, no packets received yet\n"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Not received any RTCP packets yet, inferring peer port from the RTP port\n"

L_.str.3:                               ## @.str.3
	.asciz	"Not received any RTP packets yet, inferring peer port from the RTCP port\n"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
L_.str.4:                               ## @.str.4
	.asciz	"Failed to send FEC\n"

	.no_dead_strip	_rtp_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtp_write
_rtp_write:                             ; @rtp_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w8, [x1]
	and	w8, w8, #0xc0
Lloh3:
	adrp	x9, _RTP_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTP_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9, lsl #6
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
LBB0_4:
	ldr	x8, [x24, #48]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x25, x24
	ldr	w8, [x25, #44]!
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x24, #36]
	cbz	w8, LBB0_15
LBB0_7:
	ldr	w0, [x20, #4]
	bl	_RTP_PT_IS_RTCP
	add	x8, x24, #36
	cmp	x0, #0
	csel	x23, x25, x8, eq
	cset	w8, eq
	add	x28, x24, #32
	add	x27, x24, #40
	csel	x26, x27, x28, eq
	ldr	w22, [x24, w8, uxtw #2]
	ldr	w8, [x23]
	cbnz	w8, LBB0_19
; %bb.8:
	ldr	w0, [x20, #4]
	bl	_RTP_PT_IS_RTCP
	cbz	x0, LBB0_17
; %bb.9:
	ldr	w8, [x25]
	str	w8, [sp, #8]
Lloh11:
	adrp	x24, l_.str.2@PAGE
Lloh12:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	w25, #1
	b	LBB0_18
LBB0_10:
	ldr	w0, [x20, #4]
	bl	_RTP_PT_IS_RTCP
	mov	w8, #24
	mov	w9, #16
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x0, [x24, x8]
	mov	x1, x20
	mov	x2, x19
	bl	_ffurl_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_25
; %bb.11:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_25
; %bb.12:
	ldr	w0, [x20, #4]
	bl	_RTP_PT_IS_RTCP
	cbnz	x0, LBB0_25
; %bb.13:
	ldr	x0, [x24, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_ffurl_write
	tbz	w0, #31, LBB0_25
; %bb.14:
	mov	x19, x0
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x21
	bl	_av_log
	b	LBB0_24
LBB0_17:
	ldr	w8, [x24, #36]
	str	w8, [sp, #8]
Lloh23:
	adrp	x24, l_.str.3@PAGE
Lloh24:
	add	x24, x24, l_.str.3@PAGEOFF
	mov	x25, #-1
	mov	x27, x28
LBB0_18:
	ldr	w8, [x27]
	str	w8, [sp, #4]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_get_port
	add	x1, x0, x25
	add	x0, sp, #8
	bl	_set_port
Lloh25:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	_av_log
	add	x26, sp, #4
LBB0_19:
	ldr	w8, [x21]
Lloh28:
	adrp	x9, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x22
	mov	w1, #1
	bl	_ff_network_wait_fd
	tbnz	w0, #31, LBB0_23
LBB0_21:
	ldr	w5, [x26]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	mov	x4, x23
	bl	_sendto
	mov	x19, x0
	tbz	w0, #31, LBB0_24
; %bb.22:
	bl	_ff_neterrno
LBB0_23:
	mov	x19, x0
LBB0_24:
	mov	x22, x19
LBB0_25:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTP_VERSION,4,2                ; @RTP_VERSION
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data doesn't look like RTP packets, make sure the RTP muxer is used\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to send packet to source, no packets received yet\n"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Not received any RTCP packets yet, inferring peer port from the RTP port\n"

l_.str.3:                               ; @.str.3
	.asciz	"Not received any RTP packets yet, inferring peer port from the RTCP port\n"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
l_.str.4:                               ; @.str.4
	.asciz	"Failed to send FEC\n"

	.no_dead_strip	_rtp_write
.subsections_via_symbols
