	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwaccel_retrieve_data
_hwaccel_retrieve_data:                 ## @hwaccel_retrieve_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	cmpl	%ebx, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, (%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_transfer_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_5
## %bb.9:
	movq	%r14, %rdi
	callq	_av_frame_unref
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_av_frame_move_ref
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	callq	_av_log
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_av_frame_unref
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to transfer data to output frame: %d.\n"

	.no_dead_strip	_hwaccel_retrieve_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwaccel_retrieve_data
_hwaccel_retrieve_data:                 ; @hwaccel_retrieve_data
	.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
	ldr	x8, [x0]
	ldr	w20, [x8]
	ldr	w8, [x1]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x1
	mov	x22, x0
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	str	w20, [x0]
	mov	x1, x19
	mov	w2, #0
	bl	_av_hwframe_transfer_data
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_av_frame_unref
	mov	x0, x19
	mov	x1, x21
	bl	_av_frame_move_ref
	add	x0, sp, #8
	bl	_av_frame_free
	mov	w20, #0
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_7:
	mov	x20, x0
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x20
	bl	_av_log
	b	LBB0_9
LBB0_8:
	mov	x20, x0
	mov	x0, x21
	bl	_av_frame_unref
LBB0_9:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to transfer data to output frame: %d.\n"

	.no_dead_strip	_hwaccel_retrieve_data
.subsections_via_symbols
