	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tgq_decode_mb
_tgq_decode_mb:                         ## @tgq_decode_mb
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	4(%rdi), %r13
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, %r14
	cmpl	$13, %r14d
	jl	LBB0_3
## %bb.1:
	movl	%r15d, -100(%rbp)               ## 4-byte Spill
	movl	(%r13), %r15d
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_FFMIN
	leaq	-96(%rbp), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rax
	movl	20(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tgq_decode_block
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, %ecx
	movl	-100(%rbp), %r8d                ## 4-byte Reload
	callq	_tgq_idct_put_mb
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_bytestream2_skip
	jmp	LBB0_11
LBB0_3:
	cmpl	$3, %r14d
	je	LBB0_9
## %bb.4:
	cmpl	$6, %r14d
	je	LBB0_7
## %bb.5:
	cmpl	$12, %r14d
	jne	LBB0_8
## %bb.6:
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -96(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -88(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -80(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -72(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -64(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -56(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	leaq	-96(%rbp), %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -64(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -56(%rbp)
	jmp	LBB0_10
LBB0_7:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	movl	$6, %edx
	callq	_bytestream2_get_buffer
LBB0_10:
	leaq	-96(%rbp), %r8
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_tgq_idct_put_mb_dconly
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported mb mode %i\n"

	.no_dead_strip	_tgq_decode_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tgq_decode_mb
_tgq_decode_mb:                         ; @tgq_decode_mb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x23, x0, #4
	mov	x0, x23
	bl	_bytestream2_get_byte
	mov	x24, x0
	cmp	w24, #13
	b.lt	LBB0_3
; %bb.1:
	ldr	w25, [x23]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	mov	x1, x24
	bl	_FFMIN
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x25
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #12]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #16]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #20]
	add	x2, sp, #8
	mov	x0, x22
	bl	_tgq_decode_block
	ldr	x1, [x22, #8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_tgq_idct_put_mb
	mov	x0, x23
	mov	x1, x24
	bl	_bytestream2_skip
	b	LBB0_10
LBB0_3:
	cmp	w24, #3
	b.eq	LBB0_7
; %bb.4:
	cmp	w24, #6
	b.eq	LBB0_8
; %bb.5:
	cmp	w24, #12
	b.ne	LBB0_13
; %bb.6:
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #8]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #16]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #24]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #32]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #40]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #48]
	mov	x0, x23
	mov	w1, #1
	bl	_bytestream2_skip
	b	LBB0_9
LBB0_7:
	mov	x0, x23
	bl	_bytestream2_get_byte
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #4
	bl	_memset
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #40]
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	x0, [sp, #48]
	b	LBB0_9
LBB0_8:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #6
	bl	_bytestream2_get_buffer
LBB0_9:
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tgq_idct_put_mb_dconly
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldr	x8, [sp, #56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	ldr	w0, [x22]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x24
	bl	_av_log
	mov	w0, #-1
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported mb mode %i\n"

	.no_dead_strip	_tgq_decode_mb
.subsections_via_symbols
