	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_decode_ref_pic_marking ## -- Begin function ff_h264_decode_ref_pic_marking
	.p2align	4, 0x90
_ff_h264_decode_ref_pic_marking:        ## @ff_h264_decode_ref_pic_marking
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	(%rdx), %rax
	movq	_H264_NAL_IDR_SLICE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_skip_bits1
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	$0, %r14d
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movq	_MMCO_LONG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r15)
	movl	$0, (%r15)
	movl	$1, %r14d
LBB0_3:
	movl	$1, (%rbx)
	jmp	LBB0_30
LBB0_4:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, (%rbx)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_MAX_MMCO_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %eax
	jle	LBB0_30
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_ue_golomb_31
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	_MMCO_SHORT2UNUSED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_SHORT2LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	notl	%eax
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	8(%r12), %ecx
	movq	%r13, %r12
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -4(%r15)
	movq	_MMCO_SHORT2LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rbx, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_LONG2UNUSED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_SET_MAX_LONG@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_get_ue_golomb_31
	movq	%rax, %r13
	cmpl	$31, %r13d
	ja	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$16, %r13d
	jb	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_SET_MAX_LONG@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$16, %r13d
	je	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_LONG2UNUSED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_FIELD_PICTURE
	testq	%rax, %rax
	je	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, -8(%r15)
	movq	_MMCO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %eax
	cmpq	%rbx, %rax
	jl	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MMCO_END@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movq	_MAX_MMCO_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_28:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_25:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_22
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_22:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_av_log
	movl	$-1, %eax
LBB0_29:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_30:
	movl	%r14d, 12(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H264_NAL_IDR_SLICE,8,3         ## @H264_NAL_IDR_SLICE
	.comm	_MMCO_LONG,8,3                  ## @MMCO_LONG
	.comm	_MAX_MMCO_COUNT,4,2             ## @MAX_MMCO_COUNT
	.comm	_MMCO_SHORT2UNUSED,8,3          ## @MMCO_SHORT2UNUSED
	.comm	_MMCO_SHORT2LONG,8,3            ## @MMCO_SHORT2LONG
	.comm	_MMCO_LONG2UNUSED,8,3           ## @MMCO_LONG2UNUSED
	.comm	_MMCO_SET_MAX_LONG,8,3          ## @MMCO_SET_MAX_LONG
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal long ref in memory management control operation %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"illegal memory management control operation %d\n"

	.comm	_MMCO_END,8,3                   ## @MMCO_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_decode_ref_pic_marking ; -- Begin function ff_h264_decode_ref_pic_marking
	.p2align	2
_ff_h264_decode_ref_pic_marking:        ; @ff_h264_decode_ref_pic_marking
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _H264_NAL_IDR_SLICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H264_NAL_IDR_SLICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_skip_bits1
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_19
; %bb.2:
Lloh3:
	adrp	x8, _MMCO_LONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMCO_LONG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	str	wzr, [x20]
	mov	w24, #1
	b	LBB0_20
LBB0_3:
	mov	x22, x3
	mov	x0, x21
	bl	_get_bits1
	mov	w24, #0
	str	w0, [x19]
	cbz	w0, LBB0_21
; %bb.4:
Lloh6:
	adrp	x8, _MAX_MMCO_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_MMCO_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x0, x24
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.5:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x24, #0
	add	x26, x20, #8
Lloh9:
	adrp	x28, _MMCO_SHORT2LONG@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MMCO_SHORT2LONG@GOTPAGEOFF]
Lloh11:
	adrp	x20, _MMCO_LONG2UNUSED@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MMCO_LONG2UNUSED@GOTPAGEOFF]
Lloh13:
	adrp	x27, _MMCO_LONG@GOTPAGE
Lloh14:
	ldr	x27, [x27, _MMCO_LONG@GOTPAGEOFF]
Lloh15:
	adrp	x25, _MMCO_SET_MAX_LONG@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MMCO_SET_MAX_LONG@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_ue_golomb_31
	mov	x22, x0
	str	x0, [x26]
Lloh17:
	adrp	x8, _MMCO_SHORT2UNUSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMCO_SHORT2UNUSED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
	ldr	x8, [x28]
	cmp	x9, x0
	ccmp	x8, x0, #4, ne
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w23, [x19, #4]
	mov	x0, x21
	bl	_get_ue_golomb_long
	mvn	w8, w0
	ldr	w9, [x19, #8]
	sub	w9, w9, #1
	add	w8, w23, w8
	and	w8, w9, w8
	stur	w8, [x26, #-4]
	ldr	x8, [x28]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x20]
	ldr	x9, [x27]
	ldr	x11, [x25]
	cmp	x8, x22
	ccmp	x10, x22, #4, ne
	ccmp	x9, x22, #4, ne
	ccmp	x11, x22, #4, ne
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_get_ue_golomb_31
	mov	x23, x0
	cmp	w23, #31
	b.hi	LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #16
	b.lo	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cmp	x8, x22
	ccmp	w23, #16, #0, eq
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	cmp	x8, x22
	b.ne	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_FIELD_PICTURE
	cbz	x0, LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	w23, [x26, #-8]
	ldr	w9, [x27]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, w9, uxtw
	b.gt	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x8, _MMCO_END@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMCO_END@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x22
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
Lloh23:
	adrp	x8, _MAX_MMCO_COUNT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_MMCO_COUNT@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	add	x26, x26, #16
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_18:
	mov	w0, #0
	b	LBB0_25
LBB0_19:
	mov	w24, #0
LBB0_20:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_25
LBB0_21:
	mov	x0, x24
	b	LBB0_25
LBB0_22:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str@PAGE
Lloh35:
	add	x2, x2, l_.str@PAGEOFF
LBB0_24:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x22
	bl	_av_log
	mov	w0, #-1
LBB0_25:
	str	w24, [x19, #12]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_H264_NAL_IDR_SLICE,8,3         ; @H264_NAL_IDR_SLICE
	.comm	_MMCO_LONG,8,3                  ; @MMCO_LONG
	.comm	_MAX_MMCO_COUNT,4,2             ; @MAX_MMCO_COUNT
	.comm	_MMCO_SHORT2UNUSED,8,3          ; @MMCO_SHORT2UNUSED
	.comm	_MMCO_SHORT2LONG,8,3            ; @MMCO_SHORT2LONG
	.comm	_MMCO_LONG2UNUSED,8,3           ; @MMCO_LONG2UNUSED
	.comm	_MMCO_SET_MAX_LONG,8,3          ; @MMCO_SET_MAX_LONG
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal long ref in memory management control operation %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"illegal memory management control operation %d\n"

	.comm	_MMCO_END,8,3                   ; @MMCO_END
.subsections_via_symbols
