	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg1_decode_picture
_mpeg1_decode_picture:                  ## @mpeg1_decode_picture
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	leaq	32(%r13), %rbx
	shll	$3, %edx
	movq	%rbx, %rdi
	callq	_init_get_bits
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_get_bits
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$4, %eax
	jge	LBB0_2
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movq	%rax, %r15
	movl	%r15d, 4(%r13)
	movl	(%r13), %r9d
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %r14
	cmpl	(%rax), %r9d
	je	LBB0_5
## %bb.4:
	movl	(%r14), %eax
	cmpl	%eax, %r9d
	je	LBB0_5
## %bb.8:
	cmpl	%eax, %r9d
	je	LBB0_9
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	40(%r13), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	cmpl	$1, %eax
	adcl	$0, %eax
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 4(%rcx)
	movl	(%r13), %r9d
	movl	(%r14), %eax
	cmpl	%eax, %r9d
	jne	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	40(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_AV_EF_BITSTREAM@GOTPCREL(%rip), %rcx
	movq	_AV_EF_COMPLIANT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, (%r12)
	jne	LBB0_2
LBB0_11:
	cmpl	$1, %eax
	adcl	$0, %eax
	movq	8(%r13), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 4(%rcx)
	movl	(%r13), %r9d
LBB0_12:
	movq	24(%r13), %rax
	movl	%r9d, (%rax)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %r9d
	sete	%dl
	movl	%edx, 4(%rax)
	movq	_FF_DEBUG_PICT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_14
## %bb.13:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_av_log
LBB0_14:
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, 16(%r13)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_6:
	movq	_AV_EF_BITSTREAM@GOTPCREL(%rip), %rcx
	movq	_AV_EF_COMPLIANT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, (%r12)
	je	LBB0_7
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_B,4,2          ## @AV_PICTURE_TYPE_B
	.comm	_AV_EF_BITSTREAM,4,2            ## @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ## @AV_EF_COMPLIANT
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_FF_DEBUG_PICT_INFO,4,2         ## @FF_DEBUG_PICT_INFO
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vbv_delay %d, ref %d type:%d\n"

	.no_dead_strip	_mpeg1_decode_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg1_decode_picture
_mpeg1_decode_picture:                  ; @mpeg1_decode_picture
	.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, x0
	ldr	x23, [x0, #8]
	add	x22, x23, #32
	lsl	w2, w2, #3
	mov	x0, x22
	bl	_init_get_bits
	mov	x0, x22
	mov	w1, #10
	bl	_get_bits
	mov	x20, x0
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	str	w0, [x23]
	cmp	w0, #0
	ccmp	w0, #4, #0, ne
	b.lt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	mov	x0, x22
	mov	w1, #16
	bl	_get_bits
	mov	x21, x0
	str	w21, [x23, #4]
	ldr	w5, [x23]
Lloh3:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x24, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w5, w9
	ccmp	w5, w8, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_get_bits1
	ldr	x8, [x23, #40]
	str	x0, [x8]
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	cbz	w0, LBB0_13
LBB0_4:
	cmp	w0, #0
	cinc	w8, w0, eq
	ldr	x9, [x23, #8]
	ldr	x9, [x9]
	stp	w8, w8, [x9]
	ldr	w5, [x23]
	ldr	w8, [x24]
LBB0_5:
	cmp	w5, w8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_get_bits1
	ldr	x8, [x23, #40]
	str	x0, [x8, #8]
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _AV_EF_BITSTREAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_EF_BITSTREAM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _AV_EF_COMPLIANT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_EF_COMPLIANT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_1
LBB0_8:
	cmp	w0, #0
	cinc	w8, w0, eq
	ldr	x9, [x23, #8]
	ldr	x9, [x9, #8]
	stp	w8, w8, [x9]
	ldr	w5, [x23]
LBB0_9:
	ldr	x8, [x23, #24]
	str	w5, [x8]
Lloh14:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w5, w9
	cset	w9, eq
	str	w9, [x8, #4]
	ldr	w8, [x19, #4]
Lloh17:
	adrp	x9, _FF_DEBUG_PICT_INFO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FF_DEBUG_PICT_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	bl	_av_log
LBB0_11:
	mov	w0, #0
	movi.2s	v0, #8
	str	d0, [x23, #16]
LBB0_12:
	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_13:
	ldr	w8, [x19]
Lloh25:
	adrp	x9, _AV_EF_BITSTREAM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AV_EF_BITSTREAM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _AV_EF_COMPLIANT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AV_EF_COMPLIANT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_B,4,2          ; @AV_PICTURE_TYPE_B
	.comm	_AV_EF_BITSTREAM,4,2            ; @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ; @AV_EF_COMPLIANT
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_FF_DEBUG_PICT_INFO,4,2         ; @FF_DEBUG_PICT_INFO
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vbv_delay %d, ref %d type:%d\n"

	.no_dead_strip	_mpeg1_decode_picture
.subsections_via_symbols
