	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrapped_avframe_decode
_wrapped_avframe_decode:                ## @wrapped_avframe_decode
	.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	_AV_PKT_FLAG_TRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	cmpl	$3, 4(%rcx)
	ja	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	8(%rcx), %r12
	callq	_ff_decode_frame_props
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_av_frame_move_ref
	movq	%r15, %rdi
	callq	_ff_attach_decode_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_frame_unref
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_TRUSTED,4,2        ## @AV_PKT_FLAG_TRUSTED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wrapped_avframe_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrapped_avframe_decode
_wrapped_avframe_decode:                ; @wrapped_avframe_decode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w8, [x3]
Lloh0:
	adrp	x9, _AV_PKT_FLAG_TRUSTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_FLAG_TRUSTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x3, #4]
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x3, #8]
	bl	_ff_decode_frame_props
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	bl	_av_frame_move_ref
	mov	x0, x19
	bl	_ff_attach_decode_data
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_10
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	x21, x0
	mov	x0, x19
	bl	_av_frame_unref
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_TRUSTED,4,2        ; @AV_PKT_FLAG_TRUSTED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wrapped_avframe_decode
.subsections_via_symbols
