	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rkmpp_send_packet
_rkmpp_send_packet:                     ## @rkmpp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	8(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rsi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_rkmpp_write_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_1:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, (%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rkmpp_write_data
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	%ebx, %r15d
	jmp	LBB0_13
LBB0_6:
	movq	8(%rbx), %rdx
LBB0_7:
	movq	$0, 8(%r12)
LBB0_8:
	movq	16(%rbx), %rsi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_rkmpp_write_data
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_13
## %bb.11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_9:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"End of stream.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send EOS to decoder (code = %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to write extradata to decoder (code = %d)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	"Failed to write data to decoder (code = %d)\n"

	.no_dead_strip	_rkmpp_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rkmpp_send_packet
_rkmpp_send_packet:                     ; @rkmpp_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	x2, [x1, #8]
	cbz	x2, LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x1, [x19, #8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x8
	bl	_rkmpp_write_data
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x20, x21
	b	LBB0_13
LBB0_5:
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_rkmpp_write_data
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.6:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_7:
	ldr	x2, [x20, #8]
LBB0_8:
	str	xzr, [x22, #8]
LBB0_9:
	ldr	x1, [x20, #16]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_rkmpp_write_data
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.10:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w20, w0
	b.eq	LBB0_13
; %bb.11:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x8, x20
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_av_log
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"End of stream.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send EOS to decoder (code = %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to write extradata to decoder (code = %d)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	"Failed to write data to decoder (code = %d)\n"

	.no_dead_strip	_rkmpp_send_packet
.subsections_via_symbols
