	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_simple_decode_slice   ## -- Begin function ff_nvdec_simple_decode_slice
	.p2align	4, 0x90
_ff_nvdec_simple_decode_slice:          ## @ff_nvdec_simple_decode_slice
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	leaq	24(%rbx), %rsi
	movl	8(%rbx), %eax
	leal	4(,%rax,4), %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, (%rbx)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r15, 16(%rbx)
	movq	%r15, %rcx
LBB0_3:
	subq	%rcx, %r15
	shrq	$2, %r15
	movslq	8(%rbx), %rcx
	movl	%r15d, (%rax,%rcx,4)
	addl	%r14d, 12(%rbx)
	incl	8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_simple_decode_slice   ; -- Begin function ff_nvdec_simple_decode_slice
	.p2align	2
_ff_nvdec_simple_decode_slice:          ; @ff_nvdec_simple_decode_slice
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x0, [x21]
	add	x1, x21, #24
	ldr	w8, [x21, #8]
	lsl	w8, w8, #2
	add	w2, w8, #4
	bl	_av_fast_realloc
	cbz	x0, LBB0_4
; %bb.1:
	str	x0, [x21]
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	str	x20, [x21, #16]
	mov	x8, x20
LBB0_3:
	sub	x8, x20, x8
	lsr	x8, x8, #2
	ldrsw	x9, [x21, #8]
	str	w8, [x0, x9, lsl #2]
	ldp	w9, w8, [x21, #8]
	add	w8, w8, w19
	add	w9, w9, #1
	stp	w9, w8, [x21, #8]
	mov	w0, #0
	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
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
