	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_remove_all_refs        ## -- Begin function ff_h264_remove_all_refs
	.p2align	4, 0x90
_ff_h264_remove_all_refs:               ## @ff_h264_remove_all_refs
	.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	%rdi, %r15
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$10, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$13, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$14, %esi
	xorl	%edx, %edx
	callq	_remove_long
	movq	%r15, %rdi
	movl	$15, %esi
	xorl	%edx, %edx
	callq	_remove_long
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_assert
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jg	LBB0_4
	jmp	LBB0_6
LBB0_2:
	leaq	24(%r15), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_h264_unref_picture
	movq	16(%r15), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_h264_ref_picture
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_unreference_pic
	movq	16(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	$0, 8(%r15)
	movl	12(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_remove_all_refs        ; -- Begin function ff_h264_remove_all_refs
	.p2align	2
_ff_h264_remove_all_refs:               ; @ff_h264_remove_all_refs
	.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, x0
	mov	w1, #0
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #9
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #10
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #13
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #14
	mov	w2, #0
	bl	_remove_long
	mov	x0, x19
	mov	w1, #15
	mov	w2, #0
	bl	_remove_long
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x19
	ldr	x9, [x20, #24]!
	ldr	x9, [x9]
	ldr	w9, [x9]
	cbz	w9, LBB0_3
; %bb.2:
	cmp	w8, #1
	b.ge	LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_h264_unref_picture
	ldr	x8, [x19, #16]
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_h264_ref_picture
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x21, x20, #3
	ldr	x1, [x8, x21]
	mov	x0, x19
	mov	w2, #0
	bl	_unreference_pic
	ldr	x8, [x19, #16]
	str	xzr, [x8, x21]
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	str	wzr, [x19, #8]
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	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	_memset
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
