	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h263_resync                 ## -- Begin function ff_h263_resync
	.p2align	4, 0x90
_ff_h263_resync:                        ## @ff_h263_resync
	.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, %r14
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	leaq	8(%r14), %rbx
	cmpq	$0, 32(%r14)
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_align_get_bits
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$32, %eax
	jl	LBB0_6
## %bb.3:
	movq	_SLICE_START_CODE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_show_bits_long
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$31, %eax
	jg	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_get_bits_left
	movl	$-1, %r13d
	cmpl	$32, %eax
	jl	LBB0_27
## %bb.7:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_show_bits_long
	movl	$-1, %r13d
	movq	_SLICE_START_CODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_bits_count                 ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_align_get_bits
LBB0_10:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_11
LBB0_16:
	movl	24(%r14), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	callq	_align_get_bits
	movq	%r12, %rdi
	callq	_get_bits_left
	movl	$-1, %r13d
	cmpl	$28, %eax
	jl	LBB0_27
## %bb.17:
	movl	%eax, %ebx
	addl	$8, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skip_bits
	addl	$-8, %ebx
	cmpl	$35, %ebx
	jle	LBB0_26
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_show_bits
	testq	%rax, %rax
	jne	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r12), %r15d
	movq	%r12, %rdi
	callq	_get_bits_count
	movl	%eax, %r13d
	movq	_CONFIG_MPEG4_DECODER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r14), %rax
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_ff_mpeg4_decode_video_packet_header
	testl	%eax, %eax
	js	LBB0_24
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_h263_decode_gob_header
	testl	%eax, %eax
	jns	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r15d, (%r12)
	jmp	LBB0_25
LBB0_11:
	movq	%r12, %rdi
	callq	_get_bits_count
	movq	_CONFIG_MPEG4_DECODER@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	(%r14), %rdx
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_14
## %bb.13:
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movl	%eax, %r13d
	callq	_ff_mpeg4_decode_video_packet_header
	testl	%eax, %eax
	jns	LBB0_27
	jmp	LBB0_16
LBB0_26:
	movl	$-1, %r13d
	jmp	LBB0_27
LBB0_14:
	movq	%r14, %rdi
	movl	%eax, %r13d
	callq	_h263_decode_gob_header
	testl	%eax, %eax
	js	LBB0_16
LBB0_27:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_MPEG4,8,3          ## @AV_CODEC_ID_MPEG4
	.comm	_SLICE_START_CODE,8,3           ## @SLICE_START_CODE
	.comm	_CONFIG_MPEG4_DECODER,8,3       ## @CONFIG_MPEG4_DECODER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h263_resync                 ; -- Begin function ff_h263_resync
	.p2align	2
_ff_h263_resync:                        ; @ff_h263_resync
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x19, #32]
	add	x20, x19, #8
	mov	x0, x20
	cbz	x8, LBB0_8
; %bb.2:
	bl	_align_get_bits
	mov	x0, x20
	bl	_get_bits_left
Lloh2:
	adrp	x19, _SLICE_START_CODE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _SLICE_START_CODE@GOTPAGEOFF]
	cmp	w0, #32
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #32
	bl	_show_bits_long
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #31
	b.gt	LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #32
	b.lt	LBB0_19
; %bb.6:
	mov	x0, x20
	mov	w1, #32
	bl	_show_bits_long
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_get_bits_count
LBB0_8:
	bl	_skip_bits1
	mov	x0, x20
	bl	_align_get_bits
LBB0_9:
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #16
	bl	_show_bits
	cbz	x0, LBB0_21
LBB0_10:
	ldr	w8, [x19, #24]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_align_get_bits
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #28
	b.lt	LBB0_19
; %bb.11:
	add	w23, w0, #8
Lloh4:
	adrp	x24, _CONFIG_MPEG4_DECODER@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CONFIG_MPEG4_DECODER@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_skip_bits
	sub	w23, w23, #8
	cmp	w23, #35
	b.le	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #16
	bl	_show_bits
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w25, [x20]
	mov	x0, x20
	bl	_get_bits_count
	mov	x21, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_ff_mpeg4_decode_video_packet_header
	tbnz	w0, #31, LBB0_18
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_h263_decode_gob_header
	tbz	w0, #31, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w25, [x20]
	b	LBB0_12
LBB0_19:
	mov	w21, #-1
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x20
	bl	_get_bits_count
	mov	x21, x0
Lloh6:
	adrp	x8, _CONFIG_MPEG4_DECODER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG_MPEG4_DECODER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_ff_mpeg4_decode_video_packet_header
	tbz	w0, #31, LBB0_20
	b	LBB0_10
LBB0_24:
	mov	x0, x19
	bl	_h263_decode_gob_header
	tbz	w0, #31, LBB0_20
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_MPEG4,8,3          ; @AV_CODEC_ID_MPEG4
	.comm	_SLICE_START_CODE,8,3           ; @SLICE_START_CODE
	.comm	_CONFIG_MPEG4_DECODER,8,3       ; @CONFIG_MPEG4_DECODER
.subsections_via_symbols
