	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvdec_h264_decode_slice
_nvdec_h264_decode_slice:               ## @nvdec_h264_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	%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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movq	(%rax), %r12
	movq	(%rbx), %rdi
	leaq	32(%rbx), %rsi
	leal	3(%r15), %r13d
	movl	8(%rbx), %edx
	addl	%r13d, %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, (%rbx)
	movq	16(%rbx), %rdi
	leaq	28(%rbx), %rsi
	movl	24(%rbx), %eax
	leal	4(,%rax,4), %edx
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, 16(%rbx)
	movslq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	movl	$1, %esi
	callq	_AV_WB24
	movq	(%rbx), %rax
	movslq	8(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	8(%rbx), %eax
	movq	16(%rbx), %rcx
	movslq	24(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	addl	%r13d, 8(%rbx)
	incl	24(%rbx)
	movq	(%r12), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_AV_PICTURE_TYPE_SI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	$0, 40(%rbx)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_SI,8,3         ## @AV_PICTURE_TYPE_SI
	.no_dead_strip	_nvdec_h264_decode_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvdec_h264_decode_slice
_nvdec_h264_decode_slice:               ; @nvdec_h264_decode_slice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	x22, [x9]
	ldr	x0, [x21]
	add	x1, x21, #32
	ldr	w8, [x21, #8]
	add	w23, w2, #3
	add	w2, w23, w8
	bl	_av_fast_realloc
	cbz	x0, LBB0_6
; %bb.1:
	str	x0, [x21]
	ldr	x0, [x21, #16]
	add	x1, x21, #28
	ldr	w8, [x21, #24]
	lsl	w8, w8, #2
	add	w2, w8, #4
	bl	_av_fast_realloc
	cbz	x0, LBB0_6
; %bb.2:
	str	x0, [x21, #16]
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	x0, x8, x9, lsl #2
	mov	w1, #1
	bl	_AV_WB24
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #12
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x21, #8]
	ldr	x9, [x21, #16]
	ldrsw	x10, [x21, #24]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x21, #8]
	add	w8, w23, w8
	str	w8, [x21, #8]
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _AV_PICTURE_TYPE_SI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PICTURE_TYPE_SI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	str	xzr, [x21, #40]
LBB0_5:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_SI,8,3         ; @AV_PICTURE_TYPE_SI
	.no_dead_strip	_nvdec_h264_decode_slice
.subsections_via_symbols
